LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-13-2008, 08:45 AM   #16
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by paulsm4 View Post
Yup- you're definitely CPU bound, and you're definitely only using one of two CPUs.

I would definitely build a new VMWare image, installing Redhat explicitly allowing SMP support...
So the only way is to reinstall?

Last edited by andka16; 10-13-2008 at 08:48 AM.
 
Old 10-13-2008, 11:58 AM   #17
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I'm surprised that RedHat didn't auto-detect that you had multiple CPU's (unless, of course, your VM was only configured for one CPU when you originally installed)...

... but no, there isn't any magic configuration setting you can change.

You *can* install a new kernel.

But honestly - it might be easiest for you to save a copy of your current VMimage, and just build a new image.

IMHO .. PSM
 
Old 10-13-2008, 02:28 PM   #18
jonesr
Member
 
Registered: Feb 2008
Location: Sacramento
Distribution: RHEL AS, mostly
Posts: 44

Rep: Reputation: 18
Quote:
Originally Posted by andka16 View Post
...although i've heard...you have to reinstall the OS to make it support more than one CPU.
It's been a while since I did it last, but I believe that all I had to do was a "yum install kernel-smp" and edit grub.conf so "default" pointed to the added paragraph. It was not particularly complicated.
 
Old 10-13-2008, 02:49 PM   #19
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Is it possible to use the old disks attached to this virtual machine on a new install?

I will continue with this tomorrow tuesday.
 
Old 10-13-2008, 04:26 PM   #20
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. I believe jonesr is correct

2. I've never used ESX ... but I've used VMWare/Workstation a *lot*.

In Workstation, I'd just:
a) clone my existing image (i.e. make a backup)
b) Try installing the new kernel (e.g. "yum install kernel-smp" and editing "grub.conf")

3. I certainly wouldn't suggest that adding SMP support will necessarily "fix the problem" (I suspect you'll probably need to investigate further to find the actual problem)...
... but taking advantage of both CPUs is definitely the first thing you need to do.

'Hope that helps .. PSM
 
Old 10-14-2008, 02:41 AM   #21
rgerhards
Member
 
Registered: Sep 2003
Distribution: Fedora/Debian
Posts: 50

Rep: Reputation: 15
Installing a new kernel is probably a complete cure. However, I would suggest to also check the applications installed. Sometimes, they also discover during installation if there is a single CPU or a dual CPU. Some may use different code for each of these cases. This practice has hopefully been discontinued by now, but I know of at least some cases in the past (and, yes, this should properly be taken care of by the kernel, not the apps - but still...).

Just my 2 ct..
 
Old 10-14-2008, 03:36 AM   #22
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by paulsm4 View Post
Hi -
2. I've never used ESX ... but I've used VMWare/Workstation a *lot*.

In Workstation, I'd just:
a) clone my existing image (i.e. make a backup)
b) Try installing the new kernel (e.g. "yum install kernel-smp" and editing "grub.conf")
I will try to use VCB (Vmware Consolidated Backup) to create an image of my virtual machine, and then try to do as suggested!

I will update this post when i've done this...
 
Old 10-15-2008, 02:41 AM   #23
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I made an Imagebackup of the virtual machine and converted it into Vmware Workstation 6.
Started the server just to verify that it came online OK
Shutdown the virtual machine
Added an extra CPU and tried to start the server again...... AND IT WORKS!
when using top-command i can see that it uses 2 CPUs now.

So, i didn't have to do anything but to add an extra CPU! How is that?

I have to try this in the ESX environment before i do any changes to the "real virtual machine"
 
Old 10-22-2008, 03:04 AM   #24
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I've added an extra CPU to the server and it works.
I will await performance result after this change in config.
 
Old 10-30-2008, 03:23 AM   #25
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
The extra CPU did much in performance.
server is still kind of busy sometimes but not nearly as much as before...


Is it true that an 32 bit OS should not have more than 4GB of RAM?

I've heard that if we need more than that we should consider an 64bit OS instead.
 
Old 10-30-2008, 03:26 AM   #26
rgerhards
Member
 
Registered: Sep 2003
Distribution: Fedora/Debian
Posts: 50

Rep: Reputation: 15
Quote:
Originally Posted by andka16 View Post
Is it true that an 32 bit OS should not have more than 4GB of RAM?

I've heard that if we need more than that we should consider an 64bit OS instead.
This is right, because a 32 bit CPU (without using any tricks) can access up to 2^32 byte of memory and that is 4GB. A 64 bit CPU can address much more (but not necessarily 2^64, as the number of bits must not necessarily be propagated to the address bus size).

Rainer
 
Old 10-30-2008, 04:57 AM   #27
andka16
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rgerhards View Post
This is right, because a 32 bit CPU (without using any tricks) can access up to 2^32 byte of memory and that is 4GB. A 64 bit CPU can address much more (but not necessarily 2^64, as the number of bits must not necessarily be propagated to the address bus size).

Rainer
Could this be an performance issue as well, because we have 5.5GB RAM in this server.
 
Old 10-30-2008, 05:35 AM   #28
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,143

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
32-bit systems are not limited to 4 Gig of RAM. PAE hardware has been around for years - as have supporting kernels. Using more than that has a small impact - as the memory gets larger, the impact increases. You will not be able to measure this normally - certainly not by looking at process CPU usage.

Merely changing to a 64-bit OS will not necessarily be a solution. If the application code is still linked as 32-bit, the major benefit will not be to that application. If the distro is not multilib, the application may not work at all.
 
Old 10-30-2008, 12:24 PM   #29
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Here's a link that has collected some useful information on PAE.

http://www.spack.org/wiki/LinuxRamLimits
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU usage too high! rock.k Linux - Newbie 4 03-01-2008 04:48 AM
CPU usage constantly at 100% due to application-browser and gnome-panel Perps SUSE / openSUSE 1 05-14-2007 10:55 AM
High CPU usage ?! Why? skate Linux - Software 1 04-11-2007 05:55 AM
High Cpu usage untak Debian 21 01-23-2007 06:21 AM
cpu usage high corbintechboy VectorLinux 2 07-27-2005 08:11 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration