VirtualBox

Opened 16 years ago

Last modified 15 years ago

#2370 closed defect

Memory leak with Solaris Host for 2.0.2 — at Version 1

Reported by: Dan Jones Owned by:
Component: other Version: VirtualBox 2.0.4
Keywords: Cc:
Guest type: Solaris Host type: Solaris

Description (last modified by Frank Mehnert)

HostOS: SunOS jcc-one 5.10 Generic_137112-07 i86pc i386 i86pc
GuestOS: OpenSolaris 200805

I start off with the long term stable memory usage of

jcc-one> memcheck
Total memory = 3068 MB
 Used memory = 1652 MB
 Free memory = 1416 MB
jcc-one>

Then I fire up VirtualBox and after a couple of minutes it settles to look like this

jcc-one> memcheck
Total memory = 3068 MB
 Used memory = 2460 MB
 Free memory = 608 MB
jcc-one>

which is what I would expect given the 1024MB memory size configured in VirtualBox.

Let the system sit idle for about 6 hours and we get

jcc-one> memcheck
Total memory = 3068 MB
 Used memory = 2796 MB
 Free memory = 272 MB
jcc-one>

and if I let it continue on for another 6 we hit the death of swap city.

FYI - memcheck is this simple beastie that I wrote long ago to track database thrash on a large web site:

jcc-one> cat memcheck.c
#include <stdio.h>
#include <unistd.h>
void main ()
{
        long total;
        long free;
        long page_size;

        /* convert pages to kilo-pages */
        total = sysconf(_SC_PHYS_PAGES) / 1024;
        free = sysconf(_SC_AVPHYS_PAGES) / 1024;

        /* convert page size to KB */
        page_size = sysconf(_SC_PAGESIZE) / 1024;

        total *= page_size;
        free *= page_size;

        printf ("Total memory = %ld MB\n", total);
        printf (" Used memory = %ld MB\n", total - free);
        printf (" Free memory = %ld MB\n", free);

        exit(0);
}

Change History (1)

comment:1 by Frank Mehnert, 16 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use