CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Nohup nice n 19

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2008, 03:39
Default Dear friends: i can not un
  #1
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 260
Rep Power: 8
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Dear friends:
i can not understand what is the meaning of "nohup nice -n 19 " when i run the case, woudl sombody give me some information
regards
ztdep is offline   Reply With Quote

Old   March 26, 2008, 05:02
Default * man nohup * man nice both
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
* man nohup
* man nice
both give fairly good information.
As an alternative, you can also try
* info nohup
* info nice
olesen is offline   Reply With Quote

Old   March 26, 2008, 05:46
Default 1) When you run something from
  #3
New Member
 
Luca Liberti
Join Date: Mar 2009
Location: Rome, Italy
Posts: 22
Rep Power: 7
fugu is on a distinguished road
1) When you run something from a shell without any specific option it will run as a foreground task. The shell will be locked until the process ends.
To prevent this you can issue the command as
myCommand &
this way the process will be forked from the shell
leaving the shell free.
2) Using the ampersand & the process will still be attached to the shell meaning that it will die when the shell dies. This is particularly relevant when running long jobs on remote machines: you want to keep the process running even when you are logged out. The nohup puts the process in background i.e. it won't die with the shell.
The nice command with an appropriate option change s the priority of a job leaving leaving more or less horsepower to other processes running on the machine.
FYI http://www.code.ucsd.edu/local/HelpDocs/NohupHelp.html

Regards
Luca
fugu is offline   Reply With Quote

Old   April 29, 2010, 09:48
Default
  #4
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 6
heavy_user is on a distinguished road
Hey There,

the nohup command works fine for me running a single application e.g.

nohup solvername

But trying to use it in parallel was not successful so far.

If I use the command:

nohup mpirun -np 2 solvername -parallel

or
nohup mpirun -np 2 solvername -parallel >log

the job dies once i close the terminal/log off.

So how do I have to modify the command to make it work in parallel?

regards!
heavy_user is offline   Reply With Quote

Old   April 12, 2011, 02:28
Default
  #5
New Member
 
Mark
Join Date: Jan 2011
Posts: 2
Rep Power: 0
markto is on a distinguished road
Quote:
Originally Posted by heavy_user View Post
Hey There,

the nohup command works fine for me running a single application e.g.

nohup solvername

But trying to use it in parallel was not successful so far.

If I use the command:

nohup mpirun -np 2 solvername -parallel

or
nohup mpirun -np 2 solvername -parallel >log

the job dies once i close the terminal/log off.

So how do I have to modify the command to make it work in parallel?

regards!
Hallo,

I have the same problem right now, i can not keep the job alive when I'm running in parallel with nohup.

Did you solve this problem?

Thanks a lot,
Mark
markto is offline   Reply With Quote

Old   April 18, 2011, 04:55
Default
  #6
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 6
heavy_user is on a distinguished road
Quote:
Originally Posted by markto View Post
Hallo,

I have the same problem right now, i can not keep the job alive when I'm running in parallel with nohup.

Did you solve this problem?

Thanks a lot,
Mark
Hi Mark,

fill a script with the commands to run openfoam.
You can execute the script with nohup.

best.
heavy_user is offline   Reply With Quote

Old   July 16, 2014, 06:06
Default
  #7
New Member
 
Jan N. Wieczorek
Join Date: Jul 2014
Posts: 4
Rep Power: 2
Knigge46 is on a distinguished road
Also works, if you pause the process with "CTRL+Z" and then disown it by just typing

disown -h

This gives the process(es) over to the shell and they won't be closed if you close your terminal window.
Then simply send it to background by doing

bg %1

(where %1 stands for your process which you paused recently) and you can close the terminal while the processes keep running!
Knigge46 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wow.. nice to be the first one here.. :) Sean Lin FLOW-3D 2 September 30, 2008 17:46
Nice Challenge Bilir Main CFD Forum 6 September 8, 2006 12:30
stopping a fluent job in nohup Mark FLUENT 2 June 2, 2005 09:51


All times are GMT -4. The time now is 16:09.