Solved

How many processes per processor

Posted on 2013-05-22
2
322 Views
Last Modified: 2013-05-30
Hi ,
I have a customer who is asking

How many concurrent processes can you run on a single quad?
-         How much memory can be allocated to each process?
We are using Intel Processors.

Any input would be appreciated.
0
Comment
Question by:c_hockland
2 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
Comment Utility
A processor core can only handle one task at a time.  With Hyperthreading, it can basically do two at a time.  But a preemptive multitasking operating system (which all x86/x64 OSs are these days as far as I know) will schedule time for each process on each processor core.

I'd suggest reviewing the comments and links here:
http://superuser.com/questions/168114/how-much-memory-can-a-64bit-machine-address-at-a-time
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 250 total points
Comment Utility
With a quad, you can certainly have 4 threads actually executing concurrently. That's why it's important to use proper locking mechanisms between threads in a process - otherwise a variable being used by one thread could literally change in value between instructions in that thread because of the actions of another thread running in a different core.
There is a limit to how many processes a kernel can support: it is given by
08:30:23$ cat /proc/sys/kernel/pid_max 
32768
08:31:49$ 

Open in new window

I.e. on my 32-bit system it is 32768. Multiple threads actually consume 1 pid each, but this is hidden (unless you have a very old system).
This limit is independent of the number of cores.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now