Operating System - Linux
1831099 Members
2542 Online
110019 Solutions
New Discussion

Linux performance - Please suggest.

 
GnanaShekar
Regular Advisor

Linux performance - Please suggest.

Hi,

Please give your suggestion or opinion.

We are running grep command on a 256MB file from a diskless client (SuSE) and the VMware virtual machine (RHEL4, VM is on ESX host). The file resides on an NFS share and both the servers have NFS share mounted on them. With respect to resources (CPU - 1 X 2GHz & memory - 1GB), both are similar.

The diskless client is better off than the VMware virtual machine. Find below the details:

Diskless client
===============
time grep -c "MESSAGES"
/crawls/crawl02/bviewer-new/boards/www.weightwatchers.com/boardviewer.script | sort | uniq -c

1 5394438



real 0m1.229s

user 0m1.080s

sys 0m0.150s




VMware Virtual Machine
======================

time grep -c "MESSAGES"
/crawls/bviewer-sync/boards/www.weightwatchers.com/boardviewer.script | sort | uniq -c

1 5394438



real 0m23.688s

user 0m23.112s

sys 0m0.520s
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: Linux performance - Please suggest.

.. except one is a virtual machine going through various levels of abstraction before it gets to hardware (in particular network) devices, where as the other one might not have a disk, but it has direct access to the network ..

At no time have you said how big the 'boardviewer.script' file is. Nor have you stated how busy the network is, or what sort of network connections are in use.

You've also not said how much memory each machine is currently using, or is swapped on each device.
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: Linux performance - Please suggest.

Shalom,

Al I/O is going through the host system. I am not surprised at all with the results. I'm guessing the host OS is Windows which is using a lot of system resources for itself.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Venilton Junior
Valued Contributor

Re: Linux performance - Please suggest.

How is your vmfs file? There are two posibilities to use it, as a "fat" file, looks like a oracle or sql datafile. In this mode you can gain a little bit of I/O.

But remember, there's a virtualization layer. All the I/O process in virtualization are lower then the bare-metal. Virtualization was designed for better utilization of procs, memory and disks, not for performance.

Rgds
RTFM
dirk dierickx
Honored Contributor

Re: Linux performance - Please suggest.

what did you expect? Virtualization surely has a price, unless you believe the marketing/sales talk ofcourse.

you are sharing resources to start with, the devices presented in your VM are 'virtual' as well.

could be that there are some params you can tune in the RH running in a VM to make it perform better, but i wouldn't count in it too much.