Moderator: chirpa
warewolf wrote:More searching around on task_struct leakage:
http://lkml.org/lkml/2006/8/22/246
I still havn't found a method to test or accelerate the speed of the memory leak
audetto wrote: total used free shared buffers cached
Mem: 487840 481552 6288 0 22816 416752
-/+ buffers/cache: 41984 445856
Swap: 767904 0 767904
warewolf wrote:More searching around on task_struct leakage:
http://lkml.org/lkml/2006/8/22/246
I still havn't found a method to test or accelerate the speed of the memory leak
mstensgaard wrote:It was the 'munin-node' that caused the memory leak! (At least the memory leak I have experienced).
#!/bin/sh
for i in $(seq 1 10000); do
echo "memleak test" | grep -v "//"
done
#!/bin/csh
@ y = 1
while( $y < 10000 )
echo "memleak test" | grep -v "//"
end
mstensgaard wrote:The problems seems to be in the bash shell, or at least it seems to be the bash shell that triggers the leak
Can you reproduce the problem?
./getdata.sh
./leak.sh
./getdata.sh
# about an hour later
./getdata.sh
#!/bin/sh
DATE=`date +%Y%m%d-%H%M`
mkdir $DATE
uptime > $DATE/uptime
cat /etc/raidiator_version > $DATE/version
/usr/share/munin/plugins/memory > $DATE/memory
memstat > $DATE/memstat
cat /proc/meminfo > $DATE/meminfo
ps aux > $DATE/ps
#!/bin/sh
for i in $(seq 1 10000); do
echo "memleak test" | grep -v "//"
done
nas-02:~# cat 20081022-1606/memory
slab.value 94191616
swap_cache.value 344064
page_tables.value 0
vmalloc_used.value 5095424
apps.value 74465280
free.value 11239424
buffers.value 595984384
cached.value 253657088
swap.value 458752
committed.value 65355776
mapped.value 42434560
active.value 455999488
inactive.value 420364288
nas-02:~# cat 20081022-1629/memory
slab.value 94945280
swap_cache.value 344064
page_tables.value 0
vmalloc_used.value 5095424
apps.value 86933504
free.value 9846784
buffers.value 596115456
cached.value 241696768
swap.value 458752
committed.value 65355776
mapped.value 42434560
active.value 447397888
inactive.value 417136640
nas-02:~# cat 20081022-1723/memory
slab.value 94928896
swap_cache.value 344064
page_tables.value 0
vmalloc_used.value 5095424
apps.value 87113728
free.value 10076160
buffers.value 596623360
cached.value 240795648
swap.value 458752
committed.value 65519616
mapped.value 42483712
active.value 447627264
inactive.value 416563200
Return to Public RAIDiator Beta for ReadyNAS NV+/Duo/1100
Users browsing this forum: Daumoa [Crawler], F.L., InTheShires and 4 guests