Changes between Initial Version and Version 1 of Ticket #2370
- Timestamp:
- Oct 6, 2008 7:48:58 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2370 – Description
initial v1 1 HostOS - SunOS jcc-one 5.10 Generic_137112-07 i86pc i386 i86pc[[BR]] 2 3 GuestOS - OpenSolaris 200805[[BR]] 4 1 '''HostOS:''' SunOS jcc-one 5.10 Generic_137112-07 i86pc i386 i86pc[[BR]] 2 '''GuestOS:''' !OpenSolaris 200805[[BR]] 5 3 6 4 I start off with the long term stable memory usage of[[BR]] 5 {{{ 6 jcc-one> memcheck 7 Total memory = 3068 MB 8 Used memory = 1652 MB 9 Free memory = 1416 MB 10 jcc-one> 11 }}} 7 12 8 jcc-one> memcheck[[BR]] 13 Then I fire up !VirtualBox and after a couple of minutes it settles to look like this 14 {{{ 15 jcc-one> memcheck 16 Total memory = 3068 MB 17 Used memory = 2460 MB 18 Free memory = 608 MB 19 jcc-one> 20 }}} 21 which is what I would expect given the 1024MB memory size configured in !VirtualBox. 9 22 10 Total memory = 3068 MB[[BR]] 23 Let the system sit idle for about 6 hours and we get 24 {{{ 25 jcc-one> memcheck 26 Total memory = 3068 MB 27 Used memory = 2796 MB 28 Free memory = 272 MB 29 jcc-one> 30 }}} 31 and if I let it continue on for another 6 we hit the death of swap city. 11 32 12 Used memory = 1652 MB[[BR]] 33 FYI - memcheck is this simple beastie that I wrote long ago to track database thrash on a large web site: 34 {{{ 35 jcc-one> cat memcheck.c 36 #include <stdio.h> 37 #include <unistd.h> 38 void main () 39 { 40 long total; 41 long free; 42 long page_size; 13 43 14 Free memory = 1416 MB[[BR]] 44 /* convert pages to kilo-pages */ 45 total = sysconf(_SC_PHYS_PAGES) / 1024; 46 free = sysconf(_SC_AVPHYS_PAGES) / 1024; 15 47 16 jcc-one>[[BR]] 48 /* convert page size to KB */ 49 page_size = sysconf(_SC_PAGESIZE) / 1024; 17 50 51 total *= page_size; 52 free *= page_size; 18 53 19 Then I fire up VirtualBox and after a couple of minutes it settles to look like this[[BR]] 54 printf ("Total memory = %ld MB\n", total); 55 printf (" Used memory = %ld MB\n", total - free); 56 printf (" Free memory = %ld MB\n", free); 20 57 21 jcc-one> memcheck[[BR]] 22 23 Total memory = 3068 MB[[BR]] 24 25 Used memory = 2460 MB[[BR]] 26 27 Free memory = 608 MB[[BR]] 28 29 jcc-one>[[BR]] 30 31 32 which is what I would expect given the 1024MB memory size configured in VirtualBox.[[BR]] 33 34 35 Let the system sit idle for about 6 hours and we get[[BR]] 36 37 jcc-one> memcheck[[BR]] 38 39 Total memory = 3068 MB[[BR]] 40 41 Used memory = 2796 MB[[BR]] 42 43 Free memory = 272 MB[[BR]] 44 45 jcc-one>[[BR]] 46 47 48 and if I let it continue on for another 6 we hit the death of swap city.[[BR]] 49 50 51 FYI - memcheck is this simple beastie that I wrote long ago[[BR]] 52 53 to track database thrash on a large web site:[[BR]] 54 55 56 jcc-one> cat memcheck.c[[BR]] 57 58 #include <stdio.h>[[BR]] 59 60 #include <unistd.h>[[BR]] 61 62 63 void main ()[[BR]] 64 65 {[[BR]] 66 67 long total;[[BR]] 68 69 long free;[[BR]] 70 71 long page_size;[[BR]] 72 [[BR]] 73 74 75 /* convert pages to kilo-pages */[[BR]] 76 77 total = sysconf(_SC_PHYS_PAGES) / 1024;[[BR]] 78 79 free = sysconf(_SC_AVPHYS_PAGES) / 1024;[[BR]] 80 [[BR]] 81 82 /* convert page size to KB */[[BR]] 83 84 page_size = sysconf(_SC_PAGESIZE) / 1024;[[BR]] 85 [[BR]] 86 87 88 total *= page_size;[[BR]] 89 90 free *= page_size;[[BR]] 91 92 [[BR]] 93 94 printf ("Total memory = %ld MB\n", total);[[BR]] 95 96 printf (" Used memory = %ld MB\n", total - free);[[BR]] 97 98 printf (" Free memory = %ld MB\n", free);[[BR]] 99 100 [[BR]] 101 102 exit(0);[[BR]] 103 104 }[[BR]] 105 58 exit(0); 59 } 60 }}}