Memory Leaks or just normal?

Hello All,

I ran out of memory last night on my QNX system. I was running several of
my own apps and at first assumed I must have a memory leak. I then killed
all my apps and exited out of every user started programming leaving me with
just one terminal running. I then checked my memory and I had only freed it
down to 82%. It is 34% on startup and usually no more than 40%.

Anyone know a way I can try to find out where/who/what is the memory hog(s)?
I took a ‘pidin mem’ before and after a reboot as well as a ‘sin’ before and
after. The files with .82 as the extension are the ones before I did a
reboot. The .34 extension files are what my system looks like after I did a
reboot.

If anyone could look at these and let me know where my almost 50 megabytes
of memory went (I have 98megs on this machine) I would appreciate it. Any
other ideas or hints would also be appreciated.

My applications were socket servers if that helps although I had no errors.
I opened and closed 2.5 million sockets last night if that info helps.

Thanks,

Jim

sin34.txt

procnto 1 0 0 0 0 78357
tinit 2 8K 36K 4K 128M 5
slogger 3 8K 68K 4K 128M 10
pci-bios 5 36K 40K 4K 128M 31
devb-eide 6 28K 12960K 36K 612K 8344
devc-con 7 44K 72K 8K 528K 71
fs-pkg 8 108K 704K 76K 1309K 3822
pipe 4105 12K 56K 36K 1057K 85
mqueue 12292 12K 36K 4K 128M 4
devc-pty 45067 28K 132K 12K 524K 67
devc-par 77836 28K 388K 12K 648K 9
spooler 77838 16K 36K 12K 524K 12
devc-ser8250 77839 28K 52K 8K 524K 5
io-net 77842 52K 576K 180K 1233K 753
devb-fdc 114701 24K 264K 28K 588K 17
random 126986 20K 1053K 28K 792K 15
inetd 139280 16K 52K 12K 532K 13
nmbd 147475 332K 292K 20K 528K 15
smbd 155668 744K 328K 16K 648K 8
dumper 159761 20K 52K 4K 524K 3
Photon 221207 64K 128K 8K 516K 579
phfontFA 258074 336K 1012K 12K 516K 667
fontsleuth 266264 20K 104K 24K 924K 16
io-graphics 299035 80K 312K 8K 516K 1297
devi-hirun 315421 68K 96K 16K 780K 596
pwm 426006 76K 468K 148K 656K 172
shelf 471065 48K 640K 28K 257M 424
bkgdmgr 507934 12K 200K 8K 516K 541
wmswitch 507935 8K 432K 8K 516K 42
saver 507936 12K 432K 8K 516K 72
Xphoton 524322 964K 968K 132K 516K 191
gtwm 524323 84K 844K 12K 516K 133
pterm 544789 48K 188K 156K 680K 153
ksh 544796 148K 72K 8K 516K 15
sh 577569 148K 80K 8K 516K 7
sin 610340 72K 88K 8K 516K 37

sin82.txt

procnto 1 0 0 0 0 29109074
tinit 2 8K 36K 4K 516K 5
slogger 3 8K 68K 4K 516K 11
pci-bios 5 36K 40K 4K 516K 34
devb-eide 6 28K 56M 36K 612K 2687787
devc-con 7 44K 72K 8K 528K 6755
fs-pkg 8 108K 784K 80K 1309K 603228
pipe 4105 12K 72K 36K 1057K 2223
mqueue 12292 12K 36K 4K 516K 5
devc-pty 45067 28K 148K 12K 524K 300153
devc-par 77836 28K 388K 12K 648K 24458
spooler 77838 16K 36K 12K 524K 6026
devc-ser8250 77839 28K 52K 8K 524K 8
io-net 77842 52K 1361K 180K 1233K 10130995
devb-fdc 114701 24K 264K 28K 588K 13
random 126986 20K 1149K 28K 792K 2992
inetd 139280 16K 52K 12K 532K 9
smbd 155668 744K 376K 12K 516K 7
dumper 159761 20K 40K 24K 528K 69
Photon 221207 64K 160K 8K 516K 1089302
phfontFA 258074 336K 1285K 12K 516K 268089
fontsleuth 266264 20K 120K 28K 1057K 440
io-graphics 299035 80K 312K 8K 516K 31660398
devi-hirun 315421 68K 96K 16K 780K 10336
pwm 426006 76K 516K 148K 656K 12890
shelf 471065 48K 780K 28K 257M 14975
bkgdmgr 507934 12K 200K 8K 516K 619
wmswitch 507935 8K 432K 8K 516K 3567
saver 507936 12K 432K 8K 516K 8358
Xphoton 524322 964K 968K 4K 516K 199
gtwm 524323 84K 844K 12K 516K 3248
(unavailable) 2326589 0 0 0 0 20
(unavailable) 2326590 0 0 0 0 23
smbd 5193764 744K 516K 28K 516K 365
pterm 8531987 48K 188K 156K 680K 53
ksh 8531989 148K 84K 8K 516K 21
sin 8572956 72K 56K 8K 516K 30

pidin34.txt

pid tid name prio STATE code data
stack
1 1 procnto 0f READY 1384K 0
0(320)*
1 2 procnto 15r RECEIVE 1384K 0 0(4096)
1 3 procnto 63r RECEIVE 1384K 0 0(4096)
1 4 procnto 10r RECEIVE 1384K 0 0(4096)
1 5 procnto 15r RECEIVE 1384K 0 0(4096)
1 6 procnto 10r RECEIVE 1384K 0 0(4096)
1 7 procnto 10r RECEIVE 1384K 0 0(4096)
1 8 procnto 6r NANOSLEEP 1384K 0 0(128K)
1 9 procnto 10r RUNNING 1384K 0 0(4096)
1 10 procnto 10r RECEIVE 1384K 0 0(4096)
1 11 procnto 10r RECEIVE 1384K 0 0(4096)
1 12 procnto 10r RECEIVE 1384K 0 0(4096)
zero @cfbf4000 12K 12K
zero @cfbfa000 12K
2 1 sbin/tinit 10o REPLY 8192 20K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
3 1 proc/boot/slogger 15o RECEIVE 8192 52K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
12292 1 sbin/mqueue 10o RECEIVE 12K 20K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
5 1 proc/boot/pci-bios 12o RECEIVE 36K 24K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
6 1 roc/boot/devb-eide 10o SIGWAITINFO 28K 12M
8192(516K)*
6 2 roc/boot/devb-eide 21r RECEIVE 28K 12M 4096(8192)
6 3 roc/boot/devb-eide 21r RECEIVE 28K 12M 4096(8192)
6 4 roc/boot/devb-eide 10o RECEIVE 28K 12M 4096(16K)
6 5 roc/boot/devb-eide 10r CONDVAR 28K 12M 4096(16K)
6 7 roc/boot/devb-eide 10o RECEIVE 28K 12M 4096(16K)
6 8 roc/boot/devb-eide 10o RECEIVE 28K 12M 4096(16K)
6 9 roc/boot/devb-eide 10o RECEIVE 28K 12M 4096(16K)
ldqnx.so.2 @b0300000 296K 16K
libcam.so.2 @b034e000 40K 8192
cam-disk.so @b035a000 12K 4096
io-blk.so @b035e000 104K 8192
cam-cdrom.so @b037a000 12K 4096
fs-cd.so @b037e000 32K 4096
fs-qnx4.so @b0387000 40K 4096
7 1 /x86/sbin/devc-con 10o RECEIVE 44K 56K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
/dev/mem @40100000 ( 0) 4096
/dev/mem @40101000 ( b8000) 32K
8 1 .2/x86/sbin/fs-pkg 10o RECEIVE 108K 680K 12K(132K)
8 2 .2/x86/sbin/fs-pkg 10o SIGWAITINFO 108K 680K 4096(132K)
8 3 .2/x86/sbin/fs-pkg 12o RECEIVE 108K 680K 12K(132K)
8 4 .2/x86/sbin/fs-pkg 10o RECEIVE 108K 680K 12K(132K)
8 5 .2/x86/sbin/fs-pkg 10o RECEIVE 108K 680K 12K(132K)
8 6 .2/x86/sbin/fs-pkg 10o RECEIVE 108K 680K 12K(132K)
ldqnx.so.2 @b0300000 296K 16K
4105 1 sbin/pipe 10o RECEIVE 12K 40K 4096(132K)
4105 2 sbin/pipe 10o RECEIVE 12K 40K 4096(132K)
4105 3 sbin/pipe 10o RECEIVE 12K 40K 4096(132K)
4105 4 sbin/pipe 10o RECEIVE 12K 40K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
126986 1 usr/sbin/random 10o SIGWAITINFO 20K 340K
8192(516K)*
126986 2 usr/sbin/random 10o RECEIVE 20K 340K 4096(132K)
126986 3 usr/sbin/random 10o NANOSLEEP 20K 340K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
libm.so.2 @b034e000 60K 8192
libz.so.2 @b035f000 44K 8192
45067 1 sbin/devc-pty 10o RECEIVE 28K 116K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
77836 1 sbin/devc-par 10o RECEIVE 28K 36K
8192(516K)*
77836 2 sbin/devc-par 9r CONDVAR 28K 36K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
114701 1 sbin/devb-fdc 10o SIGWAITINFO 24K 204K
8192(516K)*
114701 2 sbin/devb-fdc 21r RECEIVE 24K 204K 4096(8192)
114701 3 sbin/devb-fdc 10o RECEIVE 24K 204K 4096(16K)
114701 4 sbin/devb-fdc 10o CONDVAR 24K 204K 4096(16K)
114701 5 sbin/devb-fdc 10o RECEIVE 24K 204K 4096(16K)
114701 6 sbin/devb-fdc 10o RECEIVE 24K 204K 4096(16K)
ldqnx.so.2 @b0300000 296K 16K
libcam.so.2 @b034e000 40K 8192
cam-disk.so @b035a000 12K 4096
io-blk.so @b035e000 104K 8192
77838 1 usr/sbin/spooler 10o NANOSLEEP 16K 20K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
77839 1 sbin/devc-ser8250 24o RECEIVE 28K 36K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
139280 1 usr/sbin/inetd 10o SIGWAITINFO 16K 24K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libsocket.so.2 @b034e000 60K 12K
159761 1 usr/sbin/dumper 10o RECEIVE 20K 24K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
77842 1 sbin/io-net 10o SIGWAITINFO 52K 500K
8192(516K)*
77842 2 sbin/io-net 10o RECEIVE 52K 500K 4096(12K)
77842 3 sbin/io-net 10o RECEIVE 52K 500K 4096(12K)
77842 6 sbin/io-net 20o RECEIVE 52K 500K 4096(132K)
77842 7 sbin/io-net 10o RECEIVE 52K 500K 4096(132K)
77842 8 sbin/io-net 21o RECEIVE 52K 500K 4096(132K)
77842 9 sbin/io-net 10o RECEIVE 52K 500K 4096(12K)
77842 10 sbin/io-net 9o RECEIVE 52K 500K 4096(12K)
77842 14 sbin/io-net 10o CONDVAR 52K 500K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
npm-tcpip.so @b034e000 184K 44K
devn-speedo.so @b0387000 40K 4096
npm-pppmgr.so @b0392000 24K 8192
npm-qnet.so @b039a000 132K 4096
147475 1 cal/samba/bin/nmbd 10o SIGWAITINFO 332K 268K
16K(9K)*
ldqnx.so.1 @b0300000 300K 12K
libsocket.so.1 @b034e000 52K 12K
155668 1 cal/samba/bin/smbd 10o SIGWAITINFO 744K 304K
8192(9K)*
ldqnx.so.1 @b0300000 300K 12K
libsocket.so.1 @b034e000 52K 12K
544789 1 r/photon/bin/pterm 10r RECEIVE 48K 104K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libAp.so.2 @b035e000 56K 4096
libph.so.2 @b036d000 916K 44K
libphrender.so.2 @b045d000 204K 4096
libm.so.2 @b0491000 60K 8192
426006 1 usr/photon/bin/pwm 10r RECEIVE 76K 136K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libph.so.2 @b035e000 916K 44K
221207 1 /photon/bin/Photon 10r RECEIVE 64K 56K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
266264 1 ton/bin/fontsleuth 6o RECEIVE 20K 44K 4096(132K)
266264 2 ton/bin/fontsleuth 6o RECEIVE 20K 44K 4096(132K)
266264 3 ton/bin/fontsleuth 10o RECEIVE 20K 44K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
libph.so.2 @b034e000 916K 44K
471065 1 r/photon/bin/shelf 10r RECEIVE 48K 456K
12K(516K)*
471065 2 r/photon/bin/shelf 10r CONDVAR 48K 456K 16K(132K)
ldqnx.so.2 @b0300000 296K 16K
libAp.so.2 @b034e000 56K 4096
libph.so.2 @b035d000 916K 44K
libphrender.so.2 @b044d000 204K 4096
libm.so.2 @b0481000 60K 8192
launchmenu.so @b0492000 32K 4096
libphimg.so.2 @b049b000 16K 4096
libexpat.so.2 @b04a0000 60K 8192
taskbar.so @b04b1000 24K 4096
clock.so @b04b8000 12K 4096
ptrcam.so @b04bc000 16K 4096
launcher.so @b04c1000 12K 4096
pi_io_pcx.so @b04c5000 8192 4096
pload.so @b04c8000 12K 12K
pi_io_png.so @b04ce000 156K 4096
libz.so.2 @b04f6000 44K 8192
pi_io_jpeg.so @b0503000 8192 4096
libjpeg.so.2 @b0506000 112K 8192
pi_io_gif.so @b0524000 8192 4096
cdplayer.so @b0527000 16K 8192
libmedia.so.2 @b052d000 44K 8192
libasound.so.2 @b053a000 104K 4096
volume.so @b0555000 12K 4096
worldview.so @b0559000 20K 8192
/dev/mem @40100000 ( 0) 4096
/dev/mem @40101000 ( 0) 8192
258074 1 hoton/bin/phfontFA 12r RECEIVE 336K 948K
12K(516K)*
ldqnx.so.2 @b0300000 296K 16K
/dev/mem @40100000 ( 0) 32K
299035 1 on/bin/io-graphics 12r REPLY 80K 148K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphrender.so.2 @b034e000 204K 4096
devg-rage.so @b0382000 28K 4096
libffb.so.2 @b038a000 28K 8192
libdisputil.so.2 @b0393000 28K 4096
/dev/mem @40100000 ( 0) 32K
/dev/mem @40108000 ( 0) 4096
/dev/mem @40109000 ( 4000) 128K
/dev/mem @40129000 ( 0) 4096
/dev/mem @4012a000 ( 0) 8192K
/dev/mem @4092a000 (e47ff000) 4096
/dev/mem @4092b000 ( 0) 3840K
/dev/mem @40ceb000 ( 0) 8192
544796 1 bin/ksh 10r SIGSUSPEND 148K 56K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
315421 1 ton/bin/devi-hirun 15o RECEIVE 68K 28K
8192(516K)*
315421 2 ton/bin/devi-hirun 10o REPLY 68K 28K 4096(132K)
315421 3 ton/bin/devi-hirun 12o SIGWAITINFO 68K 28K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
libph.so.2 @b034e000 916K 44K
507934 1 photon/bin/bkgdmgr 10r RECEIVE 12K 36K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libph.so.2 @b034e000 916K 44K
libphexlib.so.2 @b043e000 56K 8192
libphimg.so @b044e000 16K 4096
pi_io_pcx.so @b0453000 8192 4096
pi_io_png.so @b0456000 156K 4096
libm.so.2 @b047e000 60K 8192
libz.so.2 @b048f000 44K 8192
pi_io_jpeg.so @b049c000 8192 4096
libjpeg.so.2 @b049f000 112K 8192
/dev/mem @40100000 ( 0) 3840K
507935 1 hoton/bin/wmswitch 10r RECEIVE 8192 40K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libAp.so.2 @b035e000 56K 4096
libph.so.2 @b036d000 916K 44K
libphrender.so.2 @b045d000 204K 4096
libm.so.2 @b0491000 60K 8192
507936 1 r/photon/bin/saver 10r RECEIVE 12K 40K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libAp.so.2 @b035e000 56K 4096
libph.so.2 @b036d000 916K 44K
libphrender.so.2 @b045d000 204K 4096
libm.so.2 @b0491000 60K 8192
577569 1 bin/sh 10r SIGSUSPEND 148K 56K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
524322 1 /X11R6/bin/Xphoton 10r SIGWAITINFO 964K 836K
132K(516K)*
ldqnx.so.2 @b0300000 296K 16K
libsocket.so.2 @b034e000 60K 12K
libm.so.2 @b0360000 60K 8192
libph.so.2 @b0371000 916K 44K
libphexlib.so.2 @b0461000 56K 8192
libphrender.so.2 @b0471000 204K 4096
/dev/mem @40100000 ( 0) 4096
524323 1 usr/X11R6/bin/gtwm 10r SIGWAITINFO 84K 348K
12K(516K)*
ldqnx.so.2 @b0300000 296K 16K
libSM.so.6.0 @b034e000 28K 4096
libICE.so.6.3 @b0356000 68K 12K
libXt.so.6.0 @b036a000 248K 16K
libXext.so.6.3 @b03ad000 32K 8192
libXmu.so.6.0 @b03b7000 64K 4096
libX11.so.6.1 @b03c8000 584K 24K
libsocket.so.2 @b0460000 60K 12K
libph.so.2 @b0472000 916K 44K
libphrender.so.2 @b0562000 204K 4096
593956 1 bin/pidin 10r REPLY 24K 32K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K

pidin82.txt

pid tid name prio STATE code data
stack
1 1 procnto 0f READY 1384K 0
0(320)*
1 2 procnto 15r RECEIVE 1384K 0 0(4096)
1 3 procnto 15r RECEIVE 1384K 0 0(4096)
1 4 procnto 10r RECEIVE 1384K 0 0(4096)
1 6 procnto 10r RUNNING 1384K 0 0(4096)
1 7 procnto 15r RECEIVE 1384K 0 0(4096)
1 9 procnto 10r NANOSLEEP 1384K 0 0(128K)
1 10 procnto 15r RECEIVE 1384K 0 0(4096)
1 11 procnto 15r RECEIVE 1384K 0 0(4096)
1 12 procnto 15r RECEIVE 1384K 0 0(4096)
1 13 procnto 15r RECEIVE 1384K 0 0(4096)
1 17 procnto 10r RECEIVE 1384K 0 0(4096)
zero @cfbf4000 12K 12K
zero @cfbfa000 12K
2 1 sbin/tinit 10o REPLY 8192 20K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
3 1 proc/boot/slogger 10o RECEIVE 8192 52K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
12292 1 sbin/mqueue 10o RECEIVE 12K 20K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
5 1 proc/boot/pci-bios 10o RECEIVE 36K 24K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
6 1 roc/boot/devb-eide 10o SIGWAITINFO 28K 56M
8192(516K)*
6 2 roc/boot/devb-eide 21r RECEIVE 28K 56M 4096(8192)
6 3 roc/boot/devb-eide 21r RECEIVE 28K 56M 4096(8192)
6 4 roc/boot/devb-eide 10o RECEIVE 28K 56M 4096(16K)
6 5 roc/boot/devb-eide 10r CONDVAR 28K 56M 4096(16K)
6 6 roc/boot/devb-eide 10o RECEIVE 28K 56M 4096(16K)
6 7 roc/boot/devb-eide 10o RECEIVE 28K 56M 4096(16K)
6 10 roc/boot/devb-eide 10o RECEIVE 28K 56M 4096(16K)
ldqnx.so.2 @b0300000 296K 16K
libcam.so.2 @b034e000 40K 8192
cam-disk.so @b035a000 12K 4096
io-blk.so @b035e000 104K 8192
cam-cdrom.so @b037a000 12K 4096
fs-cd.so @b037e000 32K 4096
fs-qnx4.so @b0387000 40K 4096
7 1 /x86/sbin/devc-con 10o RECEIVE 44K 56K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
/dev/mem @40100000 ( 0) 4096
/dev/mem @40101000 ( b8000) 32K
8 1 .2/x86/sbin/fs-pkg 10o RECEIVE 108K 760K 16K(132K)
8 2 .2/x86/sbin/fs-pkg 10o SIGWAITINFO 108K 760K 4096(132K)
8 3 .2/x86/sbin/fs-pkg 10o RECEIVE 108K 760K 12K(132K)
8 4 .2/x86/sbin/fs-pkg 11o RECEIVE 108K 760K 12K(132K)
8 5 .2/x86/sbin/fs-pkg 11o RECEIVE 108K 760K 12K(132K)
8 6 .2/x86/sbin/fs-pkg 11o RECEIVE 108K 760K 12K(132K)
ldqnx.so.2 @b0300000 296K 16K
4105 2 sbin/pipe 10o RECEIVE 12K 56K 4096(132K)
4105 3 sbin/pipe 10o RECEIVE 12K 56K 4096(132K)
4105 4 sbin/pipe 11o RECEIVE 12K 56K 4096(132K)
4105 5 sbin/pipe 11o RECEIVE 12K 56K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
126986 1 usr/sbin/random 10o SIGWAITINFO 20K 340K
8192(516K)*
126986 2 usr/sbin/random 10o RECEIVE 20K 340K 4096(132K)
126986 3 usr/sbin/random 10o NANOSLEEP 20K 340K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
libm.so.2 @b034e000 60K 8192
libz.so.2 @b035f000 44K 8192
45067 1 sbin/devc-pty 20o RECEIVE 28K 132K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
77836 1 sbin/devc-par 10o RECEIVE 28K 36K
8192(516K)*
77836 2 sbin/devc-par 9r CONDVAR 28K 36K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
114701 1 sbin/devb-fdc 10o SIGWAITINFO 24K 204K
8192(516K)*
114701 2 sbin/devb-fdc 21r RECEIVE 24K 204K 4096(8192)
114701 3 sbin/devb-fdc 10o RECEIVE 24K 204K 4096(16K)
114701 4 sbin/devb-fdc 10o CONDVAR 24K 204K 4096(16K)
114701 5 sbin/devb-fdc 10o RECEIVE 24K 204K 4096(16K)
114701 6 sbin/devb-fdc 10o RECEIVE 24K 204K 4096(16K)
ldqnx.so.2 @b0300000 296K 16K
libcam.so.2 @b034e000 40K 8192
cam-disk.so @b035a000 12K 4096
io-blk.so @b035e000 104K 8192
77838 1 usr/sbin/spooler 10o NANOSLEEP 16K 20K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
77839 1 sbin/devc-ser8250 24o RECEIVE 28K 36K
4096(516K)*
ldqnx.so.2 @b0300000 296K 16K
139280 1 usr/sbin/inetd 10o SIGWAITINFO 16K 24K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libsocket.so.2 @b034e000 60K 12K
159761 1 usr/sbin/dumper 10o RECEIVE 20K 24K
12K(516K)*
ldqnx.so.2 @b0300000 296K 16K
77842 1 sbin/io-net 10o SIGWAITINFO 52K 1284K
8192(516K)*
77842 2 sbin/io-net 10o RECEIVE 52K 1284K 4096(12K)
77842 3 sbin/io-net 18o RECEIVE 52K 1284K 4096(12K)
77842 6 sbin/io-net 10o RECEIVE 52K 1284K 4096(132K)
77842 7 sbin/io-net 10o RECEIVE 52K 1284K 4096(132K)
77842 8 sbin/io-net 21o RECEIVE 52K 1284K 4096(132K)
77842 9 sbin/io-net 10o RECEIVE 52K 1284K 4096(12K)
77842 10 sbin/io-net 18o RECEIVE 52K 1284K 4096(12K)
77842 14 sbin/io-net 10o CONDVAR 52K 1284K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
npm-tcpip.so @b034e000 184K 44K
devn-speedo.so @b0387000 40K 4096
npm-pppmgr.so @b0392000 24K 8192
npm-qnet.so @b039a000 132K 4096
8503315 1 bin/pidin 10r REPLY 24K 32K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
155668 1 cal/samba/bin/smbd 10o SIGWAITINFO 744K 304K
8192(9K)*
ldqnx.so.1 @b0300000 300K 12K
libsocket.so.1 @b034e000 52K 12K
426006 1 usr/photon/bin/pwm 10r RECEIVE 76K 184K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libph.so.2 @b035e000 916K 44K
221207 1 /photon/bin/Photon 10r RECEIVE 64K 88K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
266264 1 ton/bin/fontsleuth 6o RECEIVE 20K 60K 4096(132K)
266264 2 ton/bin/fontsleuth 10o RECEIVE 20K 60K 4096(132K)
266264 4 ton/bin/fontsleuth 6o RECEIVE 20K 60K 4096(132K)
266264 5 ton/bin/fontsleuth 6o RECEIVE 20K 60K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
libph.so.2 @b034e000 916K 44K
471065 1 r/photon/bin/shelf 10r RECEIVE 48K 488K
12K(516K)*
471065 2 r/photon/bin/shelf 10r CONDVAR 48K 488K 16K(132K)
ldqnx.so.2 @b0300000 296K 16K
libAp.so.2 @b034e000 56K 4096
libph.so.2 @b035d000 916K 44K
libphrender.so.2 @b044d000 204K 4096
libm.so.2 @b0481000 60K 8192
launchmenu.so @b0492000 32K 4096
libphimg.so.2 @b049b000 16K 4096
libexpat.so.2 @b04a0000 60K 8192
taskbar.so @b04b1000 24K 4096
clock.so @b04b8000 12K 4096
ptrcam.so @b04bc000 16K 4096
launcher.so @b04c1000 12K 4096
pi_io_pcx.so @b04c5000 8192 4096
pi_io_png.so @b04c8000 156K 4096
libz.so.2 @b04f0000 44K 8192
pload.so @b04fd000 12K 12K
pi_io_jpeg.so @b0503000 8192 4096
libjpeg.so.2 @b0506000 112K 8192
pi_io_gif.so @b0524000 8192 4096
cdplayer.so @b0527000 16K 8192
libmedia.so.2 @b052d000 44K 8192
libasound.so.2 @b053a000 104K 4096
volume.so @b0555000 12K 4096
worldview.so @b0559000 20K 8192
/dev/mem @40100000 ( 0) 4096
/dev/mem @40101000 ( 0) 8192
258074 1 hoton/bin/phfontFA 12r RECEIVE 336K 1124K
12K(516K)*
ldqnx.so.2 @b0300000 296K 16K
/dev/mem @40100000 ( 0) 32K
299035 1 on/bin/io-graphics 12r REPLY 80K 148K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphrender.so.2 @b034e000 204K 4096
devg-rage.so @b0382000 28K 4096
libffb.so.2 @b038a000 28K 8192
libdisputil.so.2 @b0393000 28K 4096
/dev/mem @40100000 ( 0) 32K
/dev/mem @40108000 ( 0) 4096
/dev/mem @40109000 ( 4000) 128K
/dev/mem @40129000 ( 0) 4096
/dev/mem @4012a000 ( 0) 8192K
/dev/mem @4092a000 (e47ff000) 4096
/dev/mem @4092b000 ( 0) 3840K
8421404 1 r/photon/bin/pterm 10r RECEIVE 48K 104K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libAp.so.2 @b035e000 56K 4096
libph.so.2 @b036d000 916K 44K
libphrender.so.2 @b045d000 204K 4096
libm.so.2 @b0491000 60K 8192
315421 1 ton/bin/devi-hirun 15o RECEIVE 68K 28K
8192(516K)*
315421 2 ton/bin/devi-hirun 10o REPLY 68K 28K 4096(132K)
315421 3 ton/bin/devi-hirun 12o SIGWAITINFO 68K 28K 4096(132K)
ldqnx.so.2 @b0300000 296K 16K
libph.so.2 @b034e000 916K 44K
507934 1 photon/bin/bkgdmgr 10r RECEIVE 12K 36K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libph.so.2 @b034e000 916K 44K
libphexlib.so.2 @b043e000 56K 8192
libphimg.so @b044e000 16K 4096
pi_io_pcx.so @b0453000 8192 4096
pi_io_png.so @b0456000 156K 4096
libm.so.2 @b047e000 60K 8192
libz.so.2 @b048f000 44K 8192
pi_io_jpeg.so @b049c000 8192 4096
libjpeg.so.2 @b049f000 112K 8192
/dev/mem @40100000 ( 0) 3840K
507935 1 hoton/bin/wmswitch 10r RECEIVE 8192 40K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libAp.so.2 @b035e000 56K 4096
libph.so.2 @b036d000 916K 44K
libphrender.so.2 @b045d000 204K 4096
libm.so.2 @b0491000 60K 8192
507936 1 r/photon/bin/saver 10r RECEIVE 12K 40K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
libphexlib.so.2 @b034e000 56K 8192
libAp.so.2 @b035e000 56K 4096
libph.so.2 @b036d000 916K 44K
libphrender.so.2 @b045d000 204K 4096
libm.so.2 @b0491000 60K 8192
8421409 1 bin/ksh 10r SIGSUSPEND 148K 56K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
524322 1 /X11R6/bin/Xphoton 10r SIGWAITINFO 964K 836K
0(516K)*
ldqnx.so.2 @b0300000 296K 16K
libsocket.so.2 @b034e000 60K 12K
libm.so.2 @b0360000 60K 8192
libph.so.2 @b0371000 916K 44K
libphexlib.so.2 @b0461000 56K 8192
libphrender.so.2 @b0471000 204K 4096
/dev/mem @40100000 ( 0) 4096
524323 1 usr/X11R6/bin/gtwm 10r SIGWAITINFO 84K 348K
12K(516K)*
ldqnx.so.2 @b0300000 296K 16K
libSM.so.6.0 @b034e000 28K 4096
libICE.so.6.3 @b0356000 68K 12K
libXt.so.6.0 @b036a000 248K 16K
libXext.so.6.3 @b03ad000 32K 8192
libXmu.so.6.0 @b03b7000 64K 4096
libX11.so.6.1 @b03c8000 584K 24K
libsocket.so.2 @b0460000 60K 12K
libph.so.2 @b0472000 916K 44K
libphrender.so.2 @b0562000 204K 4096
5193764 1 cal/samba/bin/smbd 10o SIGWAITINFO 744K 464K
28K(9K)*
ldqnx.so.1 @b0300000 300K 12K
libsocket.so.1 @b034e000 52K 12K
8454181 1 bin/sh 10r SIGSUSPEND 148K 56K
8192(516K)*
ldqnx.so.2 @b0300000 296K 16K
2326589 (Zombie)
2326590 (Zombie)

“Jim Lambert” <jlambert@futurex.com> wrote in message
news:9v86n1$5i1$1@inn.qnx.com

Hello All,

I ran out of memory last night on my QNX system. I was running several of
my own apps and at first assumed I must have a memory leak. I then killed
all my apps and exited out of every user started programming leaving me
with
just one terminal running. I then checked my memory and I had only freed
it
down to 82%. It is 34% on startup and usually no more than 40%.

Anyone know a way I can try to find out where/who/what is the memory
hog(s)?
I took a ‘pidin mem’ before and after a reboot as well as a ‘sin’ before
and
after. The files with .82 as the extension are the ones before I did a
reboot. The .34 extension files are what my system looks like after I did
a
reboot.

If anyone could look at these and let me know where my almost 50 megabytes
of memory went (I have 98megs on this machine) I would appreciate it. Any
other ideas or hints would also be appreciated.

My applications were socket servers if that helps although I had no
errors.
I opened and closed 2.5 million sockets last night if that info helps.

Thanks,

Jim

sin34.txt
devb-eide 6 28K 12960K 36K 612K
8344

[cut]

sin82.txt

devb-eide 6 28K 56M 36K 612K
2687787

Notice how devb-eide is now taking 56M. There is a thread
about this (can’t find it). From memory it was a bug with 6.0
that was fix with 6.1(A?). What version do you have?

“Mario Charest” <mcharest@clipzinformatic.com> wrote in message
news:9v8dht$a8a$1@inn.qnx.com

“Jim Lambert” <> jlambert@futurex.com> > wrote in message
news:9v86n1$5i1$> 1@inn.qnx.com> …
Hello All,

I ran out of memory last night on my QNX system. I was running several
of
my own apps and at first assumed I must have a memory leak. I then
killed
all my apps and exited out of every user started programming leaving me
with
just one terminal running. I then checked my memory and I had only
freed
it
down to 82%. It is 34% on startup and usually no more than 40%.

Anyone know a way I can try to find out where/who/what is the memory
hog(s)?
I took a ‘pidin mem’ before and after a reboot as well as a ‘sin’ before
and
after. The files with .82 as the extension are the ones before I did a
reboot. The .34 extension files are what my system looks like after I
did
a
reboot.

If anyone could look at these and let me know where my almost 50
megabytes
of memory went (I have 98megs on this machine) I would appreciate it.
Any
other ideas or hints would also be appreciated.

My applications were socket servers if that helps although I had no
errors.
I opened and closed 2.5 million sockets last night if that info helps.

Thanks,

Jim

sin34.txt
devb-eide 6 28K 12960K 36K 612K
8344

[cut]

sin82.txt

devb-eide 6 28K 56M 36K 612K
2687787

Notice how devb-eide is now taking 56M. There is a thread
about this (can’t find it). From memory it was a bug with 6.0
that was fix with 6.1(A?). What version do you have?

I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin ver’ on
QNX 4 but I don’t know the equivalent QNX 6 command.

This would definitely make sense though and I thank you for pointing it out.

Jim

[cut]

I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!

This would definitely make sense though and I thank you for pointing it
out.

My pleasure.

Jim
\

I thought I’d jump in on this “sin” thing. Is the use message for sin wrong
in 6.1A? I get all these photon-related options (x, y positions) but no
real useful commands. I even tested the parameters and tried passing the
parameters in the use message to try it out, and I got invalid parameter
errors.

-Ron


“Mario” <goto@nothingness.com> wrote in message
news:9v9589$p38$1@inn.qnx.com

[cut]


I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin
ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!


This would definitely make sense though and I thank you for pointing it
out.


My pleasure.

Jim


\

It’s okay now…sin is not what it used to be on qnx4. It was basically
written to give debug output for psin (the photon one). It’s useful, but
not overly well documented because it falls into a grey area between
supported and not supported. The normal front end to sin is psin and the
normal text based system information utility is pidin. One of the things
I’m looking at is taking features from sin that pidin is lacking (ie sin fd)
and putting them into pidin. That way we don’t need to worry about sin
and it’s lack of useful docs, column titles, etc.

Either way, the problem with sin having psin’s use message has been fixed and
should appear in the next release.

cheers,

Kris

Ron Cococcia <request@qnx.com> wrote:

I thought I’d jump in on this “sin” thing. Is the use message for sin wrong
in 6.1A? I get all these photon-related options (x, y positions) but no
real useful commands. I even tested the parameters and tried passing the
parameters in the use message to try it out, and I got invalid parameter
errors.

-Ron



“Mario” <> goto@nothingness.com> > wrote in message
news:9v9589$p38$> 1@inn.qnx.com> …
[cut]


I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin
ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!


This would definitely make sense though and I thank you for pointing it
out.


My pleasure.

Jim



\


Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
“Computer science is no more about computers than astronomy is about telescopes”
–E.W.Dijkstra

“Mario” <goto@nothingness.com> wrote in message
news:9v9589$p38$1@inn.qnx.com

[cut]


I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin
ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!

Not!

There is no equivlent in RTP to the QNX4 ‘sin ve’. I really think they need
to add one.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

Bill Caroselli <qtps@earthlink.net> wrote:

“Mario” <> goto@nothingness.com> > wrote in message
news:9v9589$p38$> 1@inn.qnx.com> …
[cut]


I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin
ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!

Not!

There is no equivlent in RTP to the QNX4 ‘sin ve’. I really think they need
to add one.

use -i

comes pretty close. I’m told that it’ll be implemented RSN on in-core executables
as well…

-RK

\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Consulting and Training at www.parse.com
Email my initials at parse dot com.

<nospam93@parse.com> wrote in message news:9vb39b$8ja$1@inn.qnx.com

Bill Caroselli <> qtps@earthlink.net> > wrote:
“Mario” <> goto@nothingness.com> > wrote in message
news:9v9589$p38$> 1@inn.qnx.com> …
[cut]


I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin
ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!

Not!

There is no equivlent in RTP to the QNX4 ‘sin ve’. I really think they
need
to add one.

use -i <executable

I tryed “use use” and it worked :wink:

How do we go about inserting information to make use -i work?

Mario Charest <mcharest@clipzinformatic.com> wrote:

nospam93@parse.com> > wrote in message news:9vb39b$8ja$> 1@inn.qnx.com> …
Bill Caroselli <> qtps@earthlink.net> > wrote:
“Mario” <> goto@nothingness.com> > wrote in message
news:9v9589$p38$> 1@inn.qnx.com> …
[cut]


I think I have 6.0 but I’m not sure. I used to be able to do a ‘sin
ver’
on
QNX 4 but I don’t know the equivalent QNX 6 command.

uname -a will do the trick!

Not!

There is no equivlent in RTP to the QNX4 ‘sin ve’. I really think they
need
to add one.

use -i <executable


I tryed “use use” and it worked > :wink:

How do we go about inserting information to make use -i work?

For that I’d recommend “use usemsg” :slight_smile: :slight_smile:

Here’s a sample from one of my Makefiles:

\

ID Section

ID_Name = “-iNAME=EXECUTABLENAME”
ID_Desc = “-iDESCRIPTION=DESCRIPTION OF EXECUTABLENAME HERE”
ID_Copy = “-iCOPYRIGHT=(C) Copyright 2001 by 1230599 Ontario Inc dba PARSE Software Devices”
ID_Vers = “-iVERSION=sed \"1s/.*\\"\\(.*\\)\\";/\\1/\" version.c
ID = $(ID_Name) $(ID_Desc) $(ID_Copy) $(ID_Vers)

EXECUTABLENAME : $(OBJECTS) main.use
usemsg $(ID) EXECUTABLENAME main.use

You replace “EXECUTABLENAME” with whatever you’re building. I also have a one-line
“version.c” file that simply contains:

const char *version = “0.000”;

and a build manager (bm) utility that increments the numeric content of the version
string – hence the “sed” magic in the ID_Vers line…

But the long and short of it is that you use “-i=” for usemsg…

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Consulting and Training at www.parse.com
Email my initials at parse dot com.

I tryed “use use” and it worked > :wink:

How do we go about inserting information to make use -i work?

For that I’d recommend “use usemsg” > :slight_smile: > > :slight_smile:

[cut]

Thanks Robert!

Doc group: -i option of use and usemsg matching capability
are not documented.

Mario Charest <mcharest@clipzinformatic.com> wrote:
: Doc group: -i option of use and usemsg matching capability
: are not documented.

I’ve been following this thread. We’ll update the docs. Now, to find the
developer who added it but didn’t tell us…


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems