Re: Kernel 2.0.31pre9 memory leak (or where did all the memory go?)

Daniel Ryde (ryde@tripnet.se)
Mon, 22 Sep 1997 23:54:14 +0200 (CEST)


Ok, here is more info, gatherd just before all memory was gone and a
couple of minutes after a fresh reboot. Approx 24 concurrent users running
pppd before and after the reboot. To get these logs you have to press
Shift-ScrollLock and AltGr-ScrollLock at the console (thank to Rogier
Wolff for pointing that out):

Sep 22 22:40:45 foo kernel: Mem-info:
Sep 22 22:40:45 foo kernel: Free pages: 520kB
Sep 22 22:40:45 foo kernel: ( 24*4kB 21*8kB 2*16kB 1*32kB 1*64kB 1*128kB = 520kB)
Sep 22 22:40:45 foo kernel: Swap cache: add 117917/117917, delete 16660979/117598, find 38846/220
Sep 22 22:40:45 foo kernel: Free swap: 64744kB
Sep 22 22:40:45 foo kernel: 8192 pages of RAM
Sep 22 22:40:45 foo kernel: 133 free pages
Sep 22 22:40:45 foo kernel: 409 reserved pages
Sep 22 22:40:45 foo kernel: 3327 pages shared
Sep 22 22:40:45 foo kernel: Buffer memory: 516kB
Sep 22 22:40:45 foo kernel: Buffer heads: 533
Sep 22 22:40:45 foo kernel: Buffer blocks: 516
Sep 22 22:40:45 foo kernel: CLEAN: 278 buffers, 0 used (last=0), 0 locked, 0 protected, 0 dirty
Sep 22 22:40:45 foo kernel: LOCKED: 154 buffers, 16 used (last=143), 0 locked, 0 protected, 0 dirty
Sep 22 22:40:45 foo kernel: DIRTY: 41 buffers, 6 used (last=40), 0 locked, 0 protected, 41 dirty
Sep 22 22:40:45 foo kernel: Networking buffers in use : 104
Sep 22 22:40:45 foo kernel: Network buffers locked by drivers : 0
Sep 22 22:40:45 foo kernel: Total network buffer allocations : 14612799
Sep 22 22:40:45 foo kernel: Total failed network buffer allocs : 0
Sep 22 22:40:45 foo kernel: Total free while locked events : 0
Sep 22 22:40:45 foo kernel: IP fragment buffer size : 0
Sep 22 22:40:52 foo kernel:
Sep 22 22:40:52 foo kernel: EIP: 0010:[sys_idle+92/112] EFLAGS: 00000246
Sep 22 22:40:52 foo kernel: EAX: 00000011 EBX: 01d28b4d ECX: fffffc18 EDX: 0019cbec
Sep 22 22:40:52 foo kernel: ESI: 0019c414 EDI: 00000000 EBP: 00009000 DS: 0018 ES: 0018 FS: 002b GS: 0018

Sep 22 23:18:37 foo kernel: Mem-info:
Sep 22 23:18:37 foo kernel: Free pages: 3004kB
Sep 22 23:18:37 foo kernel: ( 9*4kB 3*8kB 2*16kB 7*32kB 14*64kB 14*128kB = 3004kB)
Sep 22 23:18:37 foo kernel: Swap cache: add 0/0, delete 186378/0, find 115/0
Sep 22 23:18:37 foo kernel: Free swap: 66492kB
Sep 22 23:18:37 foo kernel: 8192 pages of RAM
Sep 22 23:18:37 foo kernel: 754 free pages
Sep 22 23:18:37 foo kernel: 409 reserved pages
Sep 22 23:18:37 foo kernel: 5471 pages shared
Sep 22 23:18:37 foo kernel: Buffer memory: 6812kB
Sep 22 23:18:37 foo kernel: Buffer heads: 6812
Sep 22 23:18:37 foo kernel: Buffer blocks: 6812
Sep 22 23:18:37 foo kernel: CLEAN: 1889 buffers, 0 used (last=0), 0 locked, 0 protected, 0 dirty
Sep 22 23:18:37 foo kernel: LOCKED: 4829 buffers, 11 used (last=4793), 0 locked, 0 protected, 0 dirty
Sep 22 23:18:37 foo kernel: DIRTY: 44 buffers, 11 used (last=37), 0 locked, 0 protected, 44 dirty
Sep 22 23:18:37 foo kernel: Networking buffers in use : 101
Sep 22 23:18:37 foo kernel: Network buffers locked by drivers : 0
Sep 22 23:18:37 foo kernel: Total network buffer allocations : 104233
Sep 22 23:18:37 foo kernel: Total failed network buffer allocs : 0
Sep 22 23:18:37 foo kernel: Total free while locked events : 0
Sep 22 23:18:37 foo kernel: IP fragment buffer size : 0
Sep 22 23:18:42 foo kernel:
Sep 22 23:18:42 foo kernel: EIP: 0010:[sys_idle+92/112] EFLAGS: 00000246
Sep 22 23:18:42 foo kernel: EAX: 00000002 EBX: 00033e6b ECX: fffffc18 EDX: 0019cbec
Sep 22 23:18:42 foo kernel: ESI: 0019c414 EDI: 00000000 EBP: 00009000 DS: 0018 ES: 0018 FS: 002b GS: 0018
Sep 22 23:18:54 foo in.qpopper[660]: (v2.2) Unable to get canonical name of client, err = 110

Umm, I am not sure it will help much but anyway...

Is there any other undocumented keypressing or other hidden features that
might spot this out?
The memory allocation table, has it any information from where the actual
allocation took place?
Could the kernel folks please wake up from the 2.1 work for a while and
have some joyful vacation with 2.0 ;)

Best Regards

Daniel Ryde, System Administrator
__________________________________________________________________________
Tripnet AB Visit Address: Telephone: +46 31 7252500
Box 5071 Avagen 42 Fasicmile: +46 31 7252501
S-402 22 GOTEBORG GOTEBORG Email: ryde@tripnet.se
Sweden Sweden