scsh-users
[Top] [All Lists]

Re: Problems with Ports and Memory

To: Heath Putnam <hp@heathputnam.com>
Subject: Re: Problems with Ports and Memory
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon, 28 Feb 2005 13:33:32 +0100
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
Heath Putnam <hp@heathputnam.com> writes:

> Dear Scsh Maintainers,
>
> I'm trying to get my tftp server to work with the recent patch to
> network1.c
>
> I'm having other trouble related to memory now, and it seems
> proportional to the amount of bytes transferred.
>
> This is odd, -- I really think my program should run with bounded
> space (and not so much -- just the single buffer). I believe my
> program is tail-recrsive where it needs to be.
>
> I tried to isolate the problem to the reading, writing or socket I/O,
> but I was unsuccessful, so I'm providing the whole program.

I did not yet find the time to look at your program but I wanted to
point out that S48/scsh come with two tools for debugging problems
related to memory consumption. They are defined in the structures
SPATIAL and TRAVERSE. See the following page "Debugging with scsh" at
http://www.scsh.net/docu/debug.html for some more information.

-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>