memory - Linux not freeing the file buffer when we execute rm or > (redirection) operator -
i have router embedded-linux, kernel version 2.4.22. know old version have deal it. following free
command output on 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 problem whenever execute commands , redirects output file using >
operator buffer size increased 4kb , if remove same file using rm -rf
buffer again increase 4kb. due when buffer size reaches @ near 5.3mb of size oom problem occurs can see have 128mb ram available. think kernel not reclaiming buffer space. please tell me can done rid of problem. have researched setting drop_caches value in /proc/sys/vm
command not available @ kernel version.
here proc/meminfo dump may can help.
[8300002902-3] debug> cat /proc/meminfo
total: used: free: shared: buffers: cached: mem: 131178496 126545920 4632576 0 2211840 54927360 swap: 0 0 0 memtotal: 128104 kb memfree: 4524 kb memshared: 0 kb buffers: 2160 kb cached: 53640 kb swapcached: 0 kb active: 66628 kb inactive: 36692 kb hightotal: 0 kb highfree: 0 kb lowtotal: 128104 kb lowfree: 4524 kb swaptotal: 0 kb swapfree: 0 kb
Comments
Post a Comment