Changes between Initial Version and Version 3 of Ticket #7431
- Timestamp:
- Sep 6, 2010 3:27:30 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7431 – Description
initial v3 1 1 Steps 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 {{{ 8 9 javac SerTest.java 9 10 java SerTest 1000 100 0 11 }}} 10 12 11 13 I get output like this: 12 14 {{{ 13 15 Creating 1000 objects... Done in 0.026094316000000003 seconds. 14 16 Writing to test.ser... Done in 0.23731131500000002 seconds. 15 17 Reading from test.ser... Done in 7.03051558 seconds. 16 18 Checksum: -406759103 17 19 }}} 18 20 The 7 seconds for reading the file is an enormously long time. 19 21 20 22 If 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 {{{ 22 24 Creating 1000 objects... Done in 0.017042552000000002 seconds. 23 25 Writing to test.ser... Done in 0.11916187800000001 seconds. 24 26 Reading from test.ser... Done in 0.36389537600000005 seconds. 25 27 Checksum: -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 }}} 29 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 30 29 31 The host is 64-bit Windows 7 with 4 GB RAM and Intel Core2 Duo E6400 processor.