bin/173332: [patch] watchdogd wires over 10MB of memory after r239769

Ian Lepore freebsd at damnhippie.dyndns.org
Sat Nov 3 17:36:23 UTC 2012


On Sat, 2012-11-03 at 17:20 +0000, FreeBSD-gnats-submit at FreeBSD.org
wrote:
> Thank you very much for your problem report.
> It has the internal identification `bin/173332'.
> The individual assigned to look at your
> report is: freebsd-bugs. 
> 
> You can access the state of your problem report at any time
> via this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=173332
> 
> >Category:       bin
> >Responsible:    freebsd-bugs
> >Synopsis:       [patch] watchdogd wires over 10MB of memory after r239769
> >Arrival-Date:   Sat Nov 03 17:20:00 UTC 2012

Comparison of ps -u and procstat -v output with and without the
mlockall(2) call in watchdogd...

With mlockall:

USER  PID %CPU %MEM   VSZ   RSS TT  STAT STARTED    TIME COMMAND
root  1299  0.0 15.5 10236 10164  -  Ss    2:57PM   0:00.19 /usr/sbin/watchdogd -t 100

tflex# procstat -v `pgrep watchdogd`
  PID      START        END PRT  RES PRES REF SHD   FL TP PATH
 1299     0x8000     0xa000 r-x    2    0   1   0 CN-- vn /usr/sbin/watchdogd
 1299    0x11000    0x12000 rw-    1    0   1   0 C--- df 
 1299 0x20011000 0x20027000 r-x   22    0  53  26 CN-- vn /libexec/ld-elf.so.1
 1299 0x2002e000 0x2002f000 rw-    1    0   1   0 C--- vn /libexec/ld-elf.so.1
 1299 0x2002f000 0x20038000 rw-    9    0   1   0 C--- df 
 1299 0x20038000 0x20060000 r-x   40    0  20  10 CN-- vn /lib/libm.so.5
 1299 0x20060000 0x20067000 ---    0    0   1   0 CN-- df 
 1299 0x20067000 0x20068000 rw-    1    0   1   0 C--- vn /lib/libm.so.5
 1299 0x20068000 0x20078000 r-x   16    0  19   9 CN-- vn /lib/libutil.so.9
 1299 0x20078000 0x2007f000 ---    0    0   1   0 CN-- df 
 1299 0x2007f000 0x20080000 rw-    1    0   1   0 C--- vn /lib/libutil.so.9
 1299 0x20080000 0x20082000 rw-    2    0   1   0 ---- df 
 1299 0x20082000 0x201a8000 r-x  294    0  53  26 CN-- vn /lib/libc.so.7
 1299 0x201a8000 0x201af000 ---    0    0   1   0 CN-- df 
 1299 0x201af000 0x201b6000 rw-    7    0   1   0 C--- vn /lib/libc.so.7
 1299 0x201b6000 0x201f4000 rw-   62    0   1   0 C--- df 
 1299 0x20400000 0x20c00000 rw- 2048    0   1   0 C--- df 
 1299 0xbffe0000 0xc0000000 rwx   32    0   1   0 C--D df 


Without mlockall:

USER  PID %CPU %MEM   VSZ   RSS TT  STAT STARTED    TIME COMMAND
root  1276  0.0  1.3 10236   840  -  Ss    2:56PM   0:00.02 /usr/sbin/watchdogd -t 100

tflex# procstat -v `pgrep watchdogd`
  PID      START        END PRT  RES PRES REF SHD   FL TP PATH
 1276     0x8000     0xa000 r-x    2    0   1   0 CN-- vn /usr/sbin/watchdogd
 1276    0x11000    0x12000 rw-    1    0   1   0 C--- df 
 1276 0x20011000 0x20027000 r-x   22    0  53  26 CN-- vn /libexec/ld-elf.so.1
 1276 0x2002e000 0x2002f000 rw-    0    0   1   0 CN-- vn /libexec/ld-elf.so.1
 1276 0x2002f000 0x20038000 rw-    8    0   1   0 C--- df 
 1276 0x20038000 0x20060000 r-x    5    0  20  10 CN-- vn /lib/libm.so.5
 1276 0x20060000 0x20067000 ---    0    0   1   0 CN-- df 
 1276 0x20067000 0x20068000 rw-    0    0   1   0 CN-- vn /lib/libm.so.5
 1276 0x20068000 0x20078000 r-x   16    0  19   9 CN-- vn /lib/libutil.so.9
 1276 0x20078000 0x2007f000 ---    0    0   1   0 CN-- df 
 1276 0x2007f000 0x20080000 rw-    1    0   1   0 C--- vn /lib/libutil.so.9
 1276 0x20080000 0x20082000 rw-    0    0   0   0 ---- -- 
 1276 0x20082000 0x201a8000 r-x  135    0  53  26 CN-- vn /lib/libc.so.7
 1276 0x201a8000 0x201af000 ---    0    0   1   0 CN-- df 
 1276 0x201af000 0x201b6000 rw-    7    0   1   0 C--- vn /lib/libc.so.7
 1276 0x201b6000 0x201f4000 rw-    5    0   1   0 C--- df 
 1276 0x20400000 0x20c00000 rw-    2    0   1   0 CN-- df 
 1276 0xbffe0000 0xc0000000 rwx    3    0   1   0 C--D df 




More information about the freebsd-bugs mailing list