VirtualBox

Changes between Initial Version and Version 3 of Ticket #7431


Ignore:
Timestamp:
09/06/10 15:27:30 (4 years ago)
Author:
frank
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7431 – Description

    initial v3  
    11Steps to reproduce: 
    2 1. Download Ubuntu 10.04 32-bit Live CD ISO 
    3 2. Create a virtual machine with 2048 MB RAM and that ISO as CD-ROM and no hard drive 
    4 3. Run the virtual machine 
    5 4. Run "sudo apt-get install openjdk-6-jdk" on the guest to install Java 
    6 5. Copy the file SerTest.java (in attachment) to the guest's home directory 
    7 6. Run the following commands on the guest: 
     2 1. Download Ubuntu 10.04 32-bit Live CD ISO 
     3 2. Create a virtual machine with 2048 MB RAM and that ISO as CD-ROM and no hard drive 
     4 3. Run the virtual machine 
     5 4. Run "sudo apt-get install openjdk-6-jdk" on the guest to install Java 
     6 5. Copy the file !SerTest.java (in attachment) to the guest's home directory 
     7 6. Run the following commands on the guest: 
     8{{{ 
    89javac SerTest.java 
    910java SerTest 1000 100 0 
     11}}} 
    1012 
    1113I get output like this: 
    12  
     14{{{ 
    1315Creating 1000 objects... Done in 0.026094316000000003 seconds. 
    1416Writing to test.ser... Done in 0.23731131500000002 seconds. 
    1517Reading from test.ser... Done in 7.03051558 seconds. 
    1618Checksum: -406759103 
    17  
     19}}} 
    1820The 7 seconds for reading the file is an enormously long time. 
    1921 
    2022If I change the virtual machine's RAM size to 700 MB and and repeat points 3-6 then I get the following, much better time: 
    21  
     23{{{ 
    2224Creating 1000 objects... Done in 0.017042552000000002 seconds. 
    2325Writing to test.ser... Done in 0.11916187800000001 seconds. 
    2426Reading from test.ser... Done in 0.36389537600000005 seconds. 
    2527Checksum: -884318403 
    26  
    27 Increasing the object count in the test program increases run time proportionally, e. g. for "java SerTest 10000 100 0" the times are 70 seconds and 3 seconds for 2 GB RAM and 700 MB RAM, respectively. 
     28}}} 
     29Increasing the object count in the test program increases run time proportionally, e. g. for "java !SerTest 10000 100 0" the times are 70 seconds and 3 seconds for 2 GB RAM and 700 MB RAM, respectively. 
    2830 
    2931The host is 64-bit Windows 7 with 4 GB RAM and Intel Core2 Duo E6400 processor. 

www.oracle.com
ContactPrivacy policyTerms of Use