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

Nohup nice n 19

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 2 Post By fugu
  • 3 Post By heavy_user
  • 1 Post By markto
  • 2 Post By heavy_user
  • 2 Post By Knigge46

Reply
 
LinkBack Thread Tools Search this Thread 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: 427
Rep Power: 19
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: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
* 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: 17
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
Raphael_Santos and amuzeshi like this.
fugu is offline   Reply With Quote

Old   April 29, 2010, 10:48
Default
  #4
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
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!
amuzeshi, elham usefi and JamesCC like this.
heavy_user is offline   Reply With Quote

Old   April 12, 2011, 03: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
elham usefi likes this.
markto is offline   Reply With Quote

Old   April 18, 2011, 05:55
Default
  #6
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
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.
amuzeshi and elham usefi like this.
heavy_user is offline   Reply With Quote

Old   July 16, 2014, 07:06
Default
  #7
New Member
 
Jan N. Wieczorek
Join Date: Jul 2014
Posts: 14
Rep Power: 12
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!
elham usefi and JamesCC like this.
Knigge46 is offline   Reply With Quote

Old   May 27, 2017, 09:12
Talking
  #8
New Member
 
elham usefi
Join Date: Apr 2016
Location: tabriz,iran
Posts: 13
Rep Power: 10
elham usefi is on a distinguished road
Quote:
Originally Posted by Knigge46 View Post
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!
u know, U R my angel
u saved me tanxxxxxxxx a hundred
elham usefi is offline   Reply With Quote

Reply


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 Off
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 18:46
Nice Challenge Bilir Main CFD Forum 6 September 8, 2006 13:30
stopping a fluent job in nohup Mark FLUENT 2 June 2, 2005 10:51


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