Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Aug 09, 2010 6:01 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Hello,

I am setting up a configuration file for nginx and there is the directive worker_processes. I understand that it is best to set it to the number of cpu cores. FOr instance for a dual-core to 2 and for a quad-core to 4.

(1) how do I know how may cores my linode is running on?

(2) does it make sense to apply the above rule of thumb on a linode?

Thanks


Top
   
PostPosted: Mon Aug 09, 2010 6:09 pm 
Offline
Senior Member
User avatar

Joined: Sun Mar 23, 2008 10:10 am
Posts: 71
Website: http://frontseed.com/
jcr wrote:
Hello,

I am setting up a configuration file for nginx and there is the directive worker_processes. I understand that it is best to set it to the number of cpu cores. FOr instance for a dual-core to 2 and for a quad-core to 4.

(1) how do I know how may cores my linode is running on?

(2) does it make sense to apply the above rule of thumb on a linode?

Thanks

In short:
(1) grep processor /proc/cpuinfo | wc -l
(2) yes


Top
   
 Post subject:
PostPosted: Mon Aug 09, 2010 6:22 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
I'm pretty sure all linodes have 4 xeon cores which I imagine comes from two dual core processors.

You should also check out the the worker_connections directive for nginx (http://wiki.nginx.org/NginxHttpEventsModule) it allows you to calculate your max_clients, I have 4 nginx workers with 1024 connections in a reverse proxy situation which will allow 1024 clients at one time.


Top
   
 Post subject:
PostPosted: Mon Aug 09, 2010 6:34 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
The host has 2 Quad core processors, each node has access to 4 virtual cores.

~JW


Top
   
 Post subject:
PostPosted: Mon Aug 09, 2010 7:45 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Oo even more than I thought, no wonder these things are so darn quick ;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group