flylehe
October 1st, 2009, 07:18 PM
Hi,
I am just wondering how I can find out in bash how many cpu cores a user is now using on a linux server (KUbuntu)?
I am submitting a fair amount of background jobs to the server, so I like to write a bash script to check before I submit a job if the running jobs(processes) submit by me are too many, because I have to let other users have enough cores to use for their jobs. So I like to know what bash command(s) can tell me how many cores my jobs are using now.
Thanks and regards!
I am just wondering how I can find out in bash how many cpu cores a user is now using on a linux server (KUbuntu)?
I am submitting a fair amount of background jobs to the server, so I like to write a bash script to check before I submit a job if the running jobs(processes) submit by me are too many, because I have to let other users have enough cores to use for their jobs. So I like to know what bash command(s) can tell me how many cores my jobs are using now.
Thanks and regards!