Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux on multi processor machine

Status
Not open for further replies.

alfer

Programmer
Jun 12, 2003
41
PL
I have Linux on machine with two processors.

How can I check how Linux uses this processors?

Can I decide that one of processors shuld be only used by some processes? (One for system services and the second for database engine)

Is this possible to separate processes created by one user in one session?

I am trying to find out how to configure computer to get the best performace. Add processors? Add memory? My questions are isuued by looking for the best configuration.
Computer will be used as database server and samba server.

Thanks in advance!
 

1. cat /proc/cpuinfo

2. No

3. ? What do you mean?

4. Lots of disks (not IDE) and put a lot of consideration into filesystem layout. Also consider striping.
Plenty of memory.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Running top will show you what each processor is doing ( if you only see one then maybe you do not have a dual CPU kernel (SMP) loaded?

From my experience what you are asking “to split the two CPU’s between specific processes /applications” is not possible unless you are using hardware that can handle this task for you (like the Sun E10k ->).

Anyway why would you want a CPU sitting doing nothing other than waiting for a dB query while some web-app was hammering the other CPU @100%? If that’s what you want build two single CPU servers.

Your best option is as Henric has described:
A good “Clean” kernel with all unnecessary elements removed.
Quality fast disks
A reasonable amount of memory.
And
An efficient file system layout.

Useful site: Good Luck
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top