how to bind a process to a CPU


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users how to bind a process to a CPU
# 8  
Old 03-06-2006
Java

Quote:
When do you use pbind & when do you use resource manager?
well, pbind is a traditional unix/solaris tool which is, on my opinion, one of the basic tools which should come with an OS....

the resource management is a control layer which comes from sun. in solaris 8 you had to pay for it, since solaris9 it is included. the basic idea of resource management is allocate computing resources, such as processor time, monitor how the allocations are being used, then adjust the allocations as necessary, restrict access to a specific resource, offer resources to workloads on a preferential basis or isolate workloads from each another.... you could deny resources or prefer one application over another for a larger set of allocations than otherwise permitted or prevent an application from consuming resources indiscriminately.

a very nice implementation was done in solaris 10 and the solaris-containers. you can bind these virtual OS instances to processor sets and to a preconfigured value of memory. zone1 only works on CPU0 and CPU1 with 2G RAM, zone2 zone3 and zone4 have to share CPU2 - CPU7 and the rest of memory. one thing my costumers really like is the "fair scheduling" rule. e.g: every zone could have as much resources as my machine is able provide but if zone1 needs more power, the other instances "have to give" the resources back, controlled by the kernel, preconfigured by rule-sets, no interaction needed..... anyhow, you are able to change this allocation live. this could be very important e.g if one process hangs and eat up the whole CPUs or memory, no problem with RM....

just try it, it works great. i found a very nice tutorial with zones and resource management for solaris 10 from Brendan Gregg...

regards PRESSY
# 9  
Old 03-06-2006
tks for the reply. I am familiar with resource manager, 1st time encounter with pbind .
# 10  
Old 08-16-2007
Hello pressy,

read your post, pretty intersting. I tried accessing the manual "zones and resource management" but had no luck. Is there another?

Thank you
# 11  
Old 08-17-2007
Certainly there is Smilie. On topic, for Linux you may use "schedutils" for binding process to a given processor.
# 12  
Old 08-17-2007
Java

oh, that's a pity... that's one reason why i took a backup Smilie
and guess what! i found it in my 10gig docu collection Smilie
perhabs i will find some time and rewrite it for my wiki... old but still a good work...
see the attachment...

regards
- PRESSY
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies

2. Solaris

process CPU time

We are using JAVA program and strange thing is it takes 100% CPU when not in use. The program function is to stream a file on output port (one direction). It checks one directory and when there is a file in it, starts. While it is streaming the CPU usage is normal, about 20%. But, if... (9 Replies)
Discussion started by: orange47
9 Replies

3. Shell Programming and Scripting

CPU Usage of a process

Hi guys, I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever. Now i can pull back any... (0 Replies)
Discussion started by: matt9949
0 Replies

4. Red Hat

Process by CPU

Hello All, I am preparing a script to capture the processes consuming more CPU. So is there any way that i can sort & redirect to file only those processes consuming more than 5.0 % using ps command itself. Regards Ankit (3 Replies)
Discussion started by: ajaincv
3 Replies

5. Shell Programming and Scripting

Capturing the CPU% used by a process

Hi, I just wonder I need to write a script where I can check if a particular process is consuming X amount of CPU. I was thinking of using the ps command but doesn't seems to work. Any ideas. Thanks. (2 Replies)
Discussion started by: arizah
2 Replies

6. Solaris

Bind hang up when process is reaching to 500 Mb, Solaris 10u8, Sun T5140

Hi all, I use latest bind 9.6.1, brand-new T5140 Sun Server, 10u8 Solaris OS, Mar-2010 OS patch to configure a caching dns server. But bind always hang up when process/cache is reaching to 500 Mb ( Though 'prstat -a' check ) Can anyone help me a solution for this problem, i will greatly... (0 Replies)
Discussion started by: tien86
0 Replies

7. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

8. UNIX for Advanced & Expert Users

How to bind interrupts on a specific CPU

Hello, we practise our server with operating system ReliantUNIX 5.45 and we are using Informix Dynamic Server 7.31. I ascertained a lot of cpu interrupts per second (int/s). The count of int/s exceeds critical maximum value considerably. Machine specific notes for Informix Dynamic Server... (1 Reply)
Discussion started by: urbale
1 Replies

9. UNIX for Dummies Questions & Answers

process not using enough cpu

I am running solaris 9 on a SUn 480r. It is running SAS statistical software, these processes in full flow normally run at about 50-60% cpu (theres nothing else really running on the box) this is fine, and the SAS jobs get run nice and quick. However over the last few weeks everytime a SAS job is... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

10. UNIX for Advanced & Expert Users

process -> 1 cpu

Is there a way I can assign processes to different processors? I know in windows xp you can set process affinity, and wondered if there is a *nix equivelant. (2 Replies)
Discussion started by: Solitare
2 Replies
Login or Register to Ask a Question