I have one router which has embedded-linux with kernel version 2.4.22 running on it. I know its very old version but i have to deal with it. Please take a look at the free command output when i run it on my box
[8300002902-3] Debug> free
total used free shared buffers Mem: 128104 123928 4176 0 2164 Swap: 0 0 0 Total: 128104 123928 4176
Now my problem is that whenever it execute some commands and redirects its output to some file using the > operator the buffer size is incresed by 4KB and even if i remove the same file using tm -rf the buffer again increase by 4 KB. due to this when my buffer size reaches at near 5.3MB of size the OOM problem occurs as u can see that i have only 128MB ram space available. I think the kernel is not reclaiming the buffer space. Please tell me what can be done to get rid of this problem. I have tried many things that are present over the internet like by setting the drop_caches value in the /proc/sys/vm this comamnd is not avalaible at my kernel version.Please suggest Thanks in advance.