Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ncpus(1) [debian man page]

NCPUS(1)							   User Commands							  NCPUS(1)

NAME
ncpus - print the number of virtual CPUs SYNOPSIS
ncpus [ +n | n | -n ] DESCRIPTION
ncpus prints the number of virtual CPUs to standard output. With the +n argument, it prints the number of processors +n; with the -n argu- ment, it prints the number of processors -n (if the result is less than 1, ncpus prints 1). With the n argument, ncpus prints n. ncpus ignores malformed argument. This program is a part of the Middleman System (mdm). EXIT STATUS
The exit status of ncpus is 0. SEE ALSO
mdm.screen(1) Linux 2009-03-10 NCPUS(1)

Check Out this Related Man Page

MDM-RUN(1)							   User Commands							MDM-RUN(1)

NAME
mdm-run - run a command in parallel with mdm-master SYNOPSIS
mdm-run command mdm-sync command DESCRIPTION
mdm-run annotates command as a candidate for parallel execution. If an mdm-master process is present (i.e., the environment variable MDM_CMD_SOCK is defined), mdm-run submits command to the mdm-master, and it exits when the master issues the command to an mdm-slave process (which may be connected to another terminal) for execution. mdm-sync runs command in place, but it coordinates with mdm-master to ensure that executing command does not interfere with commands that are currently executing in parallel. If there is no mdm-master process present (i.e., the environment variable MDM_CMD_SOCK is not defined), both mdm-run and mdm-sync simply run command as if you entered command all by itself. These programs are a part of the Middleman System (mdm). OPTIONS
Neither mdm-run nor mdm-sync accepts any options. EXIT STATUS
If there is no mdm-master process present, the exit status of mdm-run is the exit status of command. If an mdm-master process is present, the exit status is 0 if and only if command is successfully issued to an mdm-slave process for execution. The exit status of mdm-sync is always the exit status of command. ENVIRONMENT
The mdm system uses the following environment variable for internal communication, and thus you should not try to set them yourself. MDM_CMD_SOCK mdm-run uses this environment variable to decide whether a mdm-master process is present. EXAMPLE
See mdm.screen(1) for an example use of mdm-run. SEE ALSO
mdm.screen(1) Linux 2009-03-06 MDM-RUN(1)
Man Page

13 More Discussions You Might Find Interesting

1. Solaris

T5140 and zones

Hi, I need configure this server for two zones (oracle and glassfish). Server has 2CPU 8cores = 128vcpu and 16 GB RAM. I am interested in mainly the division of the processor and memory. What was the configuration that best for Oracle zones? (4 Replies)
Discussion started by: bieszczaders
4 Replies

2. Solaris

cpu- requirements for non-global zones

Hello Admins, Does anyone has any idea on how to assign no. of cpu and memory to non-global zones on solaris 10..... We have few zones in our environment. We wanted to assign memory and no of cpu's ..(e.g. 4Gb / 2 CPU's) Thanks... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

3. Shell Programming and Scripting

parsing simple output help needed

Goal: for each hostname (mars, phobos, and deimos grab the value of state = in a variable so I work on it further. I figured I'll need to use sed to find the target host name, then substitute the "linefeed and what I am assuming is a tab state =" to null and grab the state (in this case "free")... (3 Replies)
Discussion started by: graysky
3 Replies

4. Solaris

rcapd and /etc/project

I've often added entries to the /etc/project file, and it's always worked fine. However, I've run into an application that's been having resource problems, and I've been trying to research causes. My question is how does rcapd relate to /etc/project? I see references to how it manages resource... (6 Replies)
Discussion started by: christr
6 Replies

5. HP-UX

How to start X window?

hi, here is a HP workstation C9000 with HP-UX system in my office. couple days ago we shutdown the system. when trying to turn the it on, the system failed to start X window. my boss ask me fix it, but i am new of unix world. please be kindly to teach me how to get error message and fix... (19 Replies)
Discussion started by: ethandaddy
19 Replies

6. Shell Programming and Scripting

Replicating jobs, renaming outout

Can anyone tell me if it's possible to write a script that will repeat the same job several times but give the output a slightly different name each time (i.e. change or add a number at the end of the output file)? Here is the script I use to run a single job: #!/bin/bash #PBS -N job0 #PBS -l... (1 Reply)
Discussion started by: peterjb100
1 Replies

7. Solaris

Check Solaris Zones Processor & Memory allocations

Hi, I am a newbee in the solaris administration. My question is how to 1. Check the total CPU and memory of a global zone. 2. Check the allocated CPU and memory for each of the residing non-global zones. I have already tried prtconf which gives the following output /usr/sbin/prtconf... (4 Replies)
Discussion started by: poga
4 Replies

8. Shell Programming and Scripting

Calculating the average of scores

Hi I have 2 files file1 aac 23 25 aac 87 90 aac 33 67 file2 23 0.9 24 0.8 25 0.4 ........ 67 0.55 ........ I want to get output as (11 Replies)
Discussion started by: anurupa777
11 Replies

9. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones. if I were to do this manually here's what I would do: zonecfg -z zone1 select... (2 Replies)
Discussion started by: os2mac
2 Replies

10. Solaris

Need to understand CPU capping in Zones

Hi All I am using below command to do zone capping #zonecfg -z zone1 zonecfg:zone1> zonecfg:zone1>add capped-cpu zonecfg:zone1>capped-cpu> set ncpus=2 zonecfg:zone1>capped-cpu> end zonecfg:zone1> commit zonecfg:zone1> exit It means that it can used two CPUs in zone1 then I run... (5 Replies)
Discussion started by: sb200
5 Replies

11. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

12. Solaris

Solaris non-global zone cpu pinning

Am new on solaris :):confused: Have below questions for dedicated-cpu cores 1. For licensing I want to assign 2 core per non-global zone one from each processor. Am using below but seems it's not supported . root@solaris-test:~# psrinfo 0 on-line since 04/25/2016... (3 Replies)
Discussion started by: Shirishlnx
3 Replies

13. Solaris

How to calculate total number of cores on my servers ?

Hi, I want to get total number of cores on my all non-global zones on Solaris 10. I got two methods and both are giving different results. Below link is a script, which tells me that total cores are 8 Mandalika's scratchpad: Oracle Solaris: Show Me the CPU, vCPU, Core Counts and the... (4 Replies)
Discussion started by: ron323232
4 Replies