Opened 14 years ago
Closed 14 years ago
#6918 closed defect (fixed)
Memory leak 3.2.2 -> fixed in SVN.
Reported by: | tholin | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 3.2.10 |
Keywords: | memory leak | Cc: | thomas.lindroth@… |
Guest type: | other | Host type: | other |
Description
Since upgrading to 3.2.0 I started experiencing a memory leak. I'm using a windows xp guest on a linux host. The guest got 512 mb ram but after a few hours of usage the VM use a few gb of ram. Restarting the VM frees the memory. The problem also exists on 3.2.2.
I'm using the VM for file sharing so it use the network and shared folder a lot. I'm using the intel desktop NIC in NAT mode.
I've attached the log of a typical run where the VM started using so much ram I had to restart it.
Attachments (3)
Change History (26)
by , 14 years ago
Attachment: | VBox.log.1 added |
---|
comment:1 by , 14 years ago
follow-up: 5 comment:2 by , 14 years ago
I have the seem problem with my gentoo host and windows XP guest, with virtualbox version 3.2.0 to 3.2.4, XP with SP3 and latest patch applied.
the memory rising too fast, at speed about 1MB/5s, that is crazy.
comment:4 by , 14 years ago
The guest is running a Japanese file sharing app named "share". It a fairly standard p2p app.
I've looked at the memory usage under different usage patterns and I believe the memory only increase when network data is sent. Receiving packages and accessing the shared folder doesn't seem to increase the memory usage.
comment:5 by , 14 years ago
Replying to ming_zym:
I have the seem problem with my gentoo host and windows XP guest, with virtualbox version 3.2.0 to 3.2.4, XP with SP3 and latest patch applied.
the memory rising too fast, at speed about 1MB/5s, that is crazy.
Could you please uninstall GA and replace VBox Shared Folders with SMB shares (general network shares)? Will it change the memory consumption?
by , 14 years ago
Ubuntu 10.04 host (3.2.4 VirtualBox), Windows XP guest (3.2.4 guest additions), running iTunes sync to iPhone
comment:6 by , 14 years ago
Same problem on mine:
Host: Ubuntu 10.04 (2.6.32-22-generic SMP) with VirtualBox 3.2.4 (3.2.0 also bad). CPU: Core i7 920. Guest: Windows XP (3.2.4 guest additions) Activity: iTunes sync to iPhone with media library in a shared folder
Guest memory explodes to 3.9GB before it stalls in a swap storm. (I have 6GB total.) The 1MB/s is about accurate.
3.1.8 works just fine.
comment:7 by , 14 years ago
Host at 3.1.8 with guest having 3.2.4 additions also works fine.
(Not the best configuration to run admittedly, but I wanted to see whether it was the guest addition's fault.)
comment:9 by , 14 years ago
We fixed some minor leaks in the 3.2.6 Beta 1. Any chance to check if you still observe the memory leak with this Beta?
comment:10 by , 14 years ago
iOS4 release means my runs aren't exactly the same as before, but I have yet to get uncontrolled memory allocation during the OS update or the subsequent 13GB of transfers back to the phone afterward to restore it, so it is probably fixed.
comment:11 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the feedback. Please reopen if the problem persists with VBox 3.2.6.
comment:12 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I've been out traveling so I didn't have time to test the new version until now. I tried 3.2.6 now and I still experience the same problem. I'll try to set up a samba share for debugging but I have little time right now so it could take a few days.
comment:14 by , 14 years ago
Everybody who encounters this problem: Is RDP involved, that is, is the RDP server of the VM enabled?
comment:15 by , 14 years ago
I experience the same problem with VB 3.2.8 PUEL on F13 host with heavy network load (VMDK on an NFS share and VRDP session with video running). The VM gets killed by kernel due to memory overallocation. (I've also posted this on forums: http://forums.virtualbox.org/viewtopic.php?f=7&t=34702&p=155557#p155557).
comment:16 by , 14 years ago
I tested 3.2.10_OSE today and I still have the same problem. I tried to uninstall the guest additions and used a samba share instead of the shared folder but I still got the leak. I don't use RDP so I don't think this problem is related to RDP. Does the open source edition even have the RDP server?
Most of the traffic in the guest go through a VPN tunnel and it uses UDP packages to tunnel the TCP connections. I don't get so much memory leak if I disable to VPN so maybe only UDP/ICMP packages cases the leaks.
The 3.1.8 kernel modules no longer compile with resent kernels so it would be good if someone could look at this.
comment:17 by , 14 years ago
I did some debugging and I'm now certain that outgoing UDP packages and only outgoing UDP packages cause the memory leak. Below are some easy steps to reproduce the bug.
- Create a VM and install Windows XP (other OS should also work)
- Set the network to NAT using any of the Intel or PCnet cards (I haven't tested the virtio card)
- Download and start TPTEST v3.12 or any other UDP generating test tool. (TPTEST is small and doesn't require installation) http://www.bredbandskollen.se/download/tp312swe.exe
- Go to arkiv->advance mode.
- Pick a server, tick the Send box and input some crazy values for the UDP test. I use 1000pack/sec, 1000B/pack and 30sec test time.
- Start the UDP test and watch the VM memory usage increase.
Part of TPTEST:s interface is written in Swedish but that shouldn't be a problem.
Running the TCP send/receive or UDP receive test doesn't increase the memory usage in any significant way.
I'm willing to test any debug patches to get to the bottom of this.
by , 14 years ago
Attachment: | r66677.patch added |
---|
follow-up: 19 comment:18 by , 14 years ago
Could you please check if attached patch fixes issue for you?
comment:19 by , 14 years ago
Replying to Hachiman:
Could you please check if attached patch fixes issue for you?
YES! This patch fix the problem. Thanks.
comment:21 by , 14 years ago
Summary: | Memory leak 3.2.2 → Memory leak 3.2.2 -> fixed in SVN. |
---|---|
Version: | VirtualBox 3.2.2 → VirtualBox 3.2.10 |
comment:22 by , 14 years ago
Component: | other → network/NAT |
---|
I'm having the same issue using Ubuntu 10.04 x86 as host and Windows XP Pro as guest on 3.2.2. I'm doing a lot of reading/writing to a shared folder and I'm using 2 usb-devices.