View previous topic :: View next topic |
Author |
Message |
Houn n00b
Joined: 17 Dec 2003 Posts: 66
|
Posted: Sat May 22, 2004 6:41 pm Post subject: Diablo2 + Wine = Mem Leak? |
|
|
Using the various threads on here about running D2 under wine, I finally got it working!
http://lucidity.dyndns.org/stuff/D2_Gentoo.jpg
Runs beautifully, b.net and all.
However, there IS a problem. Whenever I run d2, I get messages like this in the console:
Code: | warn:debugstr:OutputDebugStringA Storm Error : memory never released -- C:\projects\D2\head\Diablo2\Source\D2BNClient\BNetGW.cpp, 328
warn:debugstr:OutputDebugStringA Storm Error : memory never released -- C:\projects\D2\head\Diablo2\3rdParty\STORM\SOURCE\SFILE.CPP, 4034
warn:debugstr:OutputDebugStringA Storm Error : memory never released -- C:\projects\D2\head\Diablo2\3rdParty\STORM\SOURCE\SFILE.CPP, 4034 |
Sure enough, everytime I run D2, my ram usage goes up, and keeps increasing with each run until the system bogs down. There are no idle wine threads to kill - I usually end up restarting.
Has anyone come across this before, in D2 or another wined game?
System Specs:
AthlonXP 2500+
512mb Ram
2.6.6-rc3-mm1
XFree86 Version 4.3.0.1
Wine 20040408 |
|
Back to top |
|
|
cjc n00b
Joined: 16 Mar 2004 Posts: 63 Location: Birmingham, United Kingdom
|
Posted: Sun May 23, 2004 11:49 am Post subject: Re: Diablo2 + Wine = Mem Leak? |
|
|
Houn wrote: | Sure enough, everytime I run D2, my ram usage goes up, and keeps increasing with each run until the system bogs down. There are no idle wine threads to kill - I usually end up restarting.
Has anyone come across this before, in D2 or another wined game? |
Sorry that I cannot help you, you have got me intrigued, however. It was my understanding that due to the way that Linux memory management is achieved (using VM), that it would not be possible for a process to have expired completely and have left memory around. You may want to look at the way that your memory is being used up, running 'top' can show that for you. Maybe it is shared memory with X or something similar, though I do not really know. |
|
Back to top |
|
|
Houn n00b
Joined: 17 Dec 2003 Posts: 66
|
Posted: Tue May 25, 2004 3:27 am Post subject: |
|
|
Well, here you go. I can't make sense of it.
Top before running D2:
Code: | top - 20:12:57 up 13:15, 2 users, load average: 0.12, 0.12, 0.09
Tasks: 64 total, 2 running, 62 sleeping, 0 stopped, 0 zombie
Cpu(s): 7.3% us, 0.7% sy, 0.0% ni, 91.7% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 515780k total, 347784k used, 167996k free, 44932k buffers
Swap: 506036k total, 0k used, 506036k free, 193356k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16769 houn 15 0 118m 30m 19m S 5.6 6.0 1:56.00 python
7131 root 15 0 160m 31m 136m S 1.7 6.2 9:46.91 X
1 root 16 0 1348 496 1196 S 0.0 0.1 0:05.02 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.08 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.03 kblockd/0
6 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
5 root 16 0 0 0 0 S 0.0 0.0 0:00.23 khubd
7 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
8 root 15 0 0 0 0 S 0.0 0.0 0:00.36 pdflush
10 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
9 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
124 root 21 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
128 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0
143 root 16 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
179 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 reiserfs/0
397 root 16 0 1720 948 1412 S 0.0 0.2 0:00.11 devfsd
5989 root 15 0 1612 764 1432 S 0.0 0.1 0:00.07 syslog-ng
6146 root 16 0 4648 1884 3016 S 0.0 0.4 0:00.25 cupsd
6299 lp 18 0 4212 1100 4020 S 0.0 0.2 0:00.00 pstoraster
6300 lp 16 0 5928 1164 5520 S 0.0 0.2 0:00.00 rastertoepson
6301 root 16 0 5536 1528 4384 S 0.0 0.3 0:00.12 smb
6392 lp 18 0 25708 12m 13m S 0.0 2.5 0:00.29 gs
6393 root 16 0 2352 1048 2116 S 0.0 0.2 0:00.01 lisa
6493 root 18 0 3640 1556 2408 S 0.0 0.3 0:00.00 mount.smbfs
6495 root 15 0 0 0 0 S 0.0 0.0 0:00.00 smbiod
6623 ntp 16 0 3696 3696 2832 S 0.0 0.7 0:00.03 ntpd
6925 root 18 0 6744 2640 5224 S 0.0 0.5 0:00.00 smbd
6927 root 16 0 3544 1424 2552 S 0.0 0.3 0:00.08 nmbd
6984 root 16 0 1672 668 1380 S 0.0 0.1 0:00.01 cron
7056 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7057 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7058 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7059 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7060 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7061 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7128 root 17 0 2596 724 2292 S 0.0 0.1 0:00.00 kdm
9836 rachel 16 0 4736 2684 4244 S 0.0 0.5 0:00.06 bonobo-activati
16707 root 18 0 3448 1604 2896 S 0.0 0.3 0:00.02 kdm
16757 houn 22 0 2216 972 1780 S 0.0 0.2 0:00.00 Xsession
16766 houn 15 0 7468 4880 5484 S 0.0 0.9 0:00.37 openbox
16770 houn 15 0 9032 6160 5968 S 0.0 1.2 0:01.21 pypanel
16771 houn 15 0 3556 1740 3204 S 0.0 0.3 0:00.14 aterm
16772 houn 15 0 3556 1740 3204 S 0.0 0.3 0:00.04 aterm
16773 houn 15 0 3556 1736 3204 S 0.0 0.3 0:00.07 aterm
16775 houn 16 0 2428 1312 1972 S 0.0 0.3 0:00.00 bash
16776 houn 17 0 2428 1316 1972 S 0.0 0.3 0:00.00 bash
16777 houn 16 0 2432 1324 1972 S 0.0 0.3 0:00.00 bash
16789 houn 15 0 3432 2228 2988 S 0.0 0.4 0:01.39 gconfd-2
16932 houn 16 0 3116 1604 2748 S 0.0 0.3 0:00.17 ssh
16933 houn 16 0 3116 1604 2748 S 0.0 0.3 0:00.01 ssh
16952 houn 16 0 2120 808 1764 S 0.0 0.2 0:00.00 screen
16953 houn 18 0 2268 1192 1764 S 0.0 0.2 0:00.00 screen
16954 houn 19 0 2428 1308 1972 S 0.0 0.3 0:00.00 bash
17699 houn 15 0 2216 936 1780 S 0.0 0.2 0:00.00 sh
17700 houn 16 0 3652 1928 3204 R 0.0 0.4 0:01.60 aterm
17701 houn 15 0 2428 1316 1972 S 0.0 0.3 0:00.00 bash
17704 houn 16 0 1920 1056 1712 R 0.0 0.2 0:01.18 top
17706 houn 15 0 29540 19m 25m S 0.0 3.9 0:00.85 kate
17708 houn 17 0 20712 9008 20m S 0.0 1.7 0:00.00 kdeinit
17711 houn 15 0 20844 9368 20m S 0.0 1.8 0:00.01 kdeinit
17713 houn 16 0 21720 9848 20m S 0.0 1.9 0:00.01 kdeinit
17715 houn 15 0 23452 13m 21m S 0.0 2.6 0:00.19 kdeinit
17719 houn 16 0 21928 9776 21m S 0.0 1.9 0:00.00 kdeinit |
top after running D2:
Code: | top - 20:18:42 up 13:21, 3 users, load average: 2.33, 1.71, 0.77
Tasks: 67 total, 1 running, 66 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.7% us, 0.3% sy, 0.0% ni, 93.7% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 515780k total, 428728k used, 87052k free, 45692k buffers
Swap: 506036k total, 0k used, 506036k free, 270088k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16769 houn 15 0 118m 30m 19m S 3.7 6.1 2:11.00 python
7131 root 15 0 160m 31m 136m S 2.0 6.2 10:33.35 X
16789 houn 16 0 3432 2228 2988 S 0.7 0.4 0:01.57 gconfd-2
16773 houn 15 0 3556 1740 3204 S 0.3 0.3 0:00.14 aterm
1 root 16 0 1348 496 1196 S 0.0 0.1 0:05.02 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.11 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.03 kblockd/0
6 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
5 root 16 0 0 0 0 S 0.0 0.0 0:00.23 khubd
7 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
8 root 15 0 0 0 0 S 0.0 0.0 0:00.37 pdflush
10 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
9 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
124 root 21 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
128 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0
143 root 16 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
179 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 reiserfs/0
397 root 24 0 1720 948 1412 S 0.0 0.2 0:00.11 devfsd
5989 root 15 0 1612 764 1432 S 0.0 0.1 0:00.07 syslog-ng
6146 root 16 0 4648 1884 3016 S 0.0 0.4 0:00.25 cupsd
6299 lp 18 0 4212 1100 4020 S 0.0 0.2 0:00.00 pstoraster
6300 lp 16 0 5928 1164 5520 S 0.0 0.2 0:00.00 rastertoepson
6301 root 16 0 5536 1528 4384 S 0.0 0.3 0:00.12 smb
6392 lp 18 0 25708 12m 13m S 0.0 2.5 0:00.29 gs
6393 root 16 0 2352 1048 2116 S 0.0 0.2 0:00.01 lisa
6493 root 18 0 3640 1556 2408 S 0.0 0.3 0:00.00 mount.smbfs
6495 root 15 0 0 0 0 S 0.0 0.0 0:00.00 smbiod
6623 ntp 16 0 3696 3696 2832 S 0.0 0.7 0:00.05 ntpd
6925 root 18 0 6744 2640 5224 S 0.0 0.5 0:00.00 smbd
6927 root 16 0 3544 1424 2552 S 0.0 0.3 0:00.09 nmbd
6984 root 16 0 1672 668 1380 S 0.0 0.1 0:00.01 cron
7056 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7057 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7058 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7059 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7060 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7061 root 16 0 1388 584 1220 S 0.0 0.1 0:00.00 agetty
7128 root 17 0 2596 724 2292 S 0.0 0.1 0:00.00 kdm
9836 rachel 16 0 4736 2684 4244 S 0.0 0.5 0:00.06 bonobo-activati
16707 root 18 0 3448 1604 2896 S 0.0 0.3 0:00.02 kdm
16757 houn 22 0 2216 972 1780 S 0.0 0.2 0:00.00 Xsession
16766 houn 15 0 7392 4804 5484 S 0.0 0.9 0:00.47 openbox
16770 houn 15 0 9032 6160 5968 S 0.0 1.2 0:01.46 pypanel
16771 houn 15 0 3556 1740 3204 S 0.0 0.3 0:00.21 aterm
16772 houn 15 0 3556 1740 3204 S 0.0 0.3 0:00.11 aterm
16775 houn 16 0 2428 1312 1972 S 0.0 0.3 0:00.00 bash
16776 houn 17 0 2428 1316 1972 S 0.0 0.3 0:00.00 bash
16777 houn 16 0 2432 1324 1972 S 0.0 0.3 0:00.00 bash
16932 houn 16 0 3116 1604 2748 S 0.0 0.3 0:00.17 ssh
16933 houn 16 0 3116 1604 2748 S 0.0 0.3 0:00.01 ssh
16952 houn 16 0 2120 808 1764 S 0.0 0.2 0:00.00 screen
16953 houn 16 0 2408 1324 1764 S 0.0 0.3 0:00.01 screen
16954 houn 16 0 2432 1356 1972 S 0.0 0.3 0:00.00 bash
17699 houn 15 0 2216 936 1780 S 0.0 0.2 0:00.00 sh
17700 houn 15 0 3652 1928 3204 S 0.0 0.4 0:01.78 aterm
17701 houn 15 0 2428 1316 1972 S 0.0 0.3 0:00.00 bash
17704 houn 16 0 1920 1056 1712 R 0.0 0.2 0:01.73 top
17706 houn 15 0 29680 19m 25m S 0.0 4.0 0:00.93 kate
17708 houn 17 0 20712 9008 20m S 0.0 1.7 0:00.00 kdeinit
17711 houn 16 0 20844 9368 20m S 0.0 1.8 0:00.01 kdeinit
17713 houn 16 0 21728 9860 20m S 0.0 1.9 0:00.01 kdeinit
17715 houn 15 0 23452 13m 21m S 0.0 2.6 0:00.30 kdeinit
17719 houn 16 0 21936 9788 21m S 0.0 1.9 0:00.00 kdeinit
17969 houn 16 0 2428 1316 1972 S 0.0 0.3 0:00.00 bash
17974 root 18 0 2080 984 1648 S 0.0 0.2 0:00.00 su
17977 root 15 0 2164 1320 1972 S 0.0 0.3 0:00.00 bash |
I can't see anything that's changed much, but it's jumped from 347m to 428m. Strange...
I forgot to mention above I'm running NPTL. Not sure if that changes anything or not, heh. |
|
Back to top |
|
|
nand n00b
Joined: 11 Nov 2005 Posts: 35
|
Posted: Sun Dec 03, 2006 10:54 am Post subject: |
|
|
Hi,
You cannot rely on top for memory statistics.
$ cat /proc/meminfo
Will tell you what is really going on. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|