This was my last msg on this subject to the expert list... can someone verify that this is either still there or fixed in cooker...?
Thanks, Pierre Tom Badran wrote: > > Pierre Fortin wrote: > > > Update: the graphing is off; but the memory usage keeps climbing nonetheless > > indicating a memory leak is likely... > > Ok, then this is almost certainly the case. Is the memory usage > definately kppp, and not pppd? If it is the first, then it is probably > quite easy to fix. Ill take a look at the source and see if i cant track > it down. # top p 26306 p 26307 p 1816 11:37am up 23 days, 14:54, 4 users, load average: 1.50, 1.52, 1.51 3 processes: 3 sleeping, 0 running, 0 zombie, 0 stopped CPU states: 84.4% user, 13.6% system, 1.9% nice, 0.0% idle Mem: 78372K av, 75184K used, 3188K free, 0K shrd, 704K buff Swap: 255488K av, 126672K used, 128816K free 19696K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 26306 lonna 9 0 13064 11M 6104 S 0.0 15.3 0:32 kppp 26307 root 9 0 928 4 4 S 0.0 0.0 0:00 kppp 1816 root 8 0 724 652 568 S 0.0 0.8 0:00 pppd When I was on-site (2 hours east of here), I started kppp as "lonna" which also starts the root process. At that time, the size was just over 3MB. At around 10PM last night, it was around 7MB... right now, the system has been online since 7:46AM doing only fetchmail checks every 5 minutes (plus my analysis of the past few minutes) and the size is now over 13MB... I've run: # lsof | grep ppp # cat /proc/26306/maps # cat /proc/26306/stat* <--<< stat, statm, status a number of times and ran diff on the first/last outputs and these are the results: *** kppp.1 Thu Dec 27 12:07:27 2001 --- kppp.2 Thu Dec 27 12:08:31 2001 ### NOTE: lsof output never changes *************** *** 120,126 **** # cat /proc/26306/maps 08048000-080b9000 r-xp 00000000 16:09 175549 /usr/bin/kppp 080b9000-080c1000 rw-p 00070000 16:09 175549 /usr/bin/kppp ! 080c1000-08b30000 rwxp 00000000 00:00 0 40000000-40015000 r-xp 00000000 16:08 77828 /lib/ld-2.2.4.so 40015000-40016000 rw-p 00014000 16:08 77828 /lib/ld-2.2.4.so 40016000-40017000 rw-p 00000000 00:00 0 --- 120,126 ---- # cat /proc/26306/maps 08048000-080b9000 r-xp 00000000 16:09 175549 /usr/bin/kppp 080b9000-080c1000 rw-p 00070000 16:09 175549 /usr/bin/kppp ! 080c1000-08b4d000 rwxp 00000000 00:00 0 40000000-40015000 r-xp 00000000 16:08 77828 /lib/ld-2.2.4.so 40015000-40016000 rw-p 00014000 16:08 77828 /lib/ld-2.2.4.so 40016000-40017000 rw-p 00000000 00:00 0 *************** *** 208,215 **** 40e63000-40e65000 rw-p 00008000 16:08 77862 /lib/libnss_files-2.2.4.so bffec000-c0000000 rwxp fffed000 00:00 0 # cat /proc/26306/stat* ! 26306 (kppp) S 1 23122 23122 0 -1 256 4624 142 3382 425 3093 185 8 3 9 0 0 0 194163565 26714112 3086 4294967295 134512640 134974680 3221223616 3221221744 1086141614 0 0 16389 67242 3222536150 0 0 17 0 ! 3379 3086 1436 22 0 3064 2621 Name: kppp State: S (sleeping) Pid: 26306 --- 208,215 ---- 40e63000-40e65000 rw-p 00008000 16:08 77862 /lib/libnss_files-2.2.4.so bffec000-c0000000 rwxp fffed000 00:00 0 # cat /proc/26306/stat* ! 26306 (kppp) S 1 23122 23122 0 -1 256 4630 142 3382 425 3093 185 8 3 9 0 0 0 194163565 26738688 3092 4294967295 134512640 134974680 3221223616 3221221744 1086141614 0 0 16389 67242 3222536150 0 0 17 0 ! 3385 3092 1436 22 0 3070 2627 Name: kppp State: S (sleeping) Pid: 26306 *************** *** 219,228 **** Gid: 501 501 501 501 FDSize: 256 Groups: 501 22 43 80 81 504 ! VmSize: 26088 kB VmLck: 0 kB ! VmRSS: 12344 kB ! VmData: 11048 kB VmStk: 80 kB VmExe: 452 kB VmLib: 13664 kB --- 219,228 ---- Gid: 501 501 501 501 FDSize: 256 Groups: 501 22 43 80 81 504 ! VmSize: 26112 kB VmLck: 0 kB ! VmRSS: 12368 kB ! VmData: 11072 kB VmStk: 80 kB VmExe: 452 kB VmLib: 13664 kB In the time I was gathering this info, the size has grown by almost 600KB: 12:16pm up 23 days, 15:34, 5 users, load average: 1.61, 1.51, 1.51 3 processes: 3 sleeping, 0 running, 0 zombie, 0 stopped CPU states: 0.9% user, 0.5% system, 0.8% nice, 0.9% idle Mem: 78372K av, 74144K used, 4228K free, 0K shrd, 704K buff Swap: 255488K av, 126852K used, 128636K free 18940K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 26306 lonna 9 0 13640 12M 5744 S 0.0 15.9 0:32 kppp 26307 root 9 0 928 4 4 S 0.0 0.0 0:00 kppp 1816 root 8 0 464 364 308 S 0.0 0.4 0:00 pppd Interesingly, pppd has shrunk from 724 to 464 in this same period... HTH, Pierre