LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2011, 01:14 AM   #1
jmdennis1987
LQ Newbie
 
Registered: Nov 2010
Location: Vancouver, WA
Posts: 28

Rep: Reputation: 0
Need help with a script


Looking at writing a script to find a process number for a running task then take that and set it to a dedicated core?

so i have a game server apache 2 mysql phpmy admin a stats deamon that checks game server logs and takes that and puts it into stats. a web page running off it with a forum all on a core 2 duo 1.8 Ghz im wondering if i dedicate the game server to one core and let the os determine the rest of the tasks.

and also i was wondering i know the 775 Pentium D 950 Presler 3.40GHz 800MHz 4MB is a older chip set but i was wondering if i replaced the core 2 duo with the Pentium D 950 would give it better performance? am i correct on that?

thanks for any and all help.
 
Old 01-20-2011, 01:46 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You're *much* better off just letting the kernel scheduler decide which tasks to run on which core.

IMHO ...

PS:
There *is* a command to assign a PID's CPU affinity: "taskset"

PPS:
Please endeavor to use better grammar, punctuation, and proper capitalization. It makes your posts easier to read (especially for non-English speakers), and it's simply a matter of courtesy.

Last edited by paulsm4; 01-20-2011 at 01:54 AM.
 
1 members found this post helpful.
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get full path to script file inside script itself? And in case of sym links? maggus Linux - Newbie 3 05-28-2009 09:40 AM
MySQL Updates With Null When Perl Script Run From Shell Script ThisGuyIKnow Programming 6 08-12-2008 10:56 AM
Shell Script: want to insert values in database when update script runs ring Programming 2 10-25-2007 11:48 PM
i get an error message running php script inside a cgi script. repolona Linux - Software 0 02-22-2007 10:10 PM


All times are GMT -5. The time now is 06:41 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration