Hello,
maybe you still recall about problem with ftpd memory allocation I posted
here few days before. Since then I tried to do more "research" and found
same issue on two different HW boxes both with OpenBSD 4.5 and OpenBSD 4.6.
To summarize it, I found that built-in ftpd server takes too much memory
while clients are downloading files and this memory is not freed neither
when downloads are finished nor when I kill ftpd. What's more, top, ps,
vmstat does not show by which process is memory allocated. All I can see
during ftp downloads initiated by clients it's just decreasing free memory
and increasing allocated memory from top command output. After few minutes
of downloading I lost about 800MB real memory. Allocated memory shown by top
command is a part of real memory behind the "/". This should be something
like allocated memory which is not currently used if I'm not mistaken.
Although I'm not sure if this could be intentional behavior I have three
main questions:
1. Is it normal that memory is not freed after I kill ftpd daemon?
2. Is it normal ftpd can take about 800MB of real memory while serving GET
requests? (only 1 client is able to consume that portion of memory)
3. Is it normal that this memory seems to be lost from the system? It's not
visible as allocated by some process.
Thank you for your help.
MK