LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-16-2006, 05:39 PM   #1
dggoldst
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
Is it unusual for something to run faster under vmware than native?


I have a Dell Optiplex Gx620 dual-core pentium 4 machine.

I'm dual booting ubuntu 6.06 in one partition, windows XP in another.

using VMWare's browser appliance (basically ubuntu) under XP, if I execute in a terminal

date; factor 18446744073709551557; date

it terminates in about 35 seconds

Booting into ubuntu native, the same call takes 55 seconds. I took both measurements a few times.

Is it that Ubuntu's basic install doesn't properly exploit the dual-core?

Thanks!

Last edited by dggoldst; 09-16-2006 at 06:06 PM.
 
Old 09-18-2006, 01:58 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Check out whether your Ubuntu's kernel has SMP built in or not. If it doesn't have, then you can't take advantage of more than one processing unit..
 
Old 09-19-2006, 09:47 AM   #3
dggoldst
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Hi B0ouncer,

I have a stupid question, how would I check if it has SMP? Ubuntu 6.06 is very common so it might be easy to find out, right? I figured on a questions site other people might benefit from the answer as well.
 
Old 09-19-2006, 11:03 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by dggoldst
Hi B0ouncer,

I have a stupid question, how would I check if it has SMP? Ubuntu 6.06 is very common so it might be easy to find out, right? I figured on a questions site other people might benefit from the answer as well.
uname -a will tell you your running kernel.. look for SMP in the output.
 
Old 10-07-2006, 05:50 AM   #5
dggoldst
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Ok, this is strange, I've now got an SMP kernel running

$ uname -a
Linux box 2.6.17 #4 SMP PREEMPT Wed May 10 13:53:45 CEST 2006 i686 GNU/Linux

and it's detecting dual-core,and still the thing runs faster in virtualization under XP than native (52 vs 35 seconds) I really wish this weren't so. I wonder for how many people this is true.
 
Old 10-07-2006, 06:46 AM   #6
dggoldst
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Figured it out!

It acutally doesn't run faster under virtualization, it's just that you can't trust timekeeping under virtualization. When you execute the following script, it works out about the same (about 55 seconds) virtualized or native.

Code:
#!/bin/sh
ntpdate tick.usno.navy.mil
hwclock -w
date
factor 18446744073709551557
ntpdate tick.usno.navy.mil
hwclock -w
date
Equaling native is impressive for virtualization, though...
 
  


Reply

Tags
native, smp, vmware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert vmware guest os to native partition ? pleasehelpme Linux - General 1 06-29-2005 09:36 AM
i need to applications to run faster paimpozhil General 22 06-02-2004 12:05 PM
is there a way to make vmware run faster? spyghost Linux - General 4 01-16-2004 01:20 PM
codes run slower on the faster machine xudeyong Programming 12 05-03-2003 05:09 PM
Can I make Linux run faster?? justiceisblind Linux - Newbie 3 06-17-2002 01:25 AM


All times are GMT -5. The time now is 01:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration