Jump to content

Running Mantra In Nice Mode


aracid

Recommended Posts

hey all

does anyone here run mantra with

"nice -10 mantra" - in linux

to use low priority for rendering,

came across this and it really helps my machine handle background processing

does anyone know how to have linux run only this command automatically at this level of priority?

:blink:

Link to comment
Share on other sites

hey all

does anyone here run mantra with

"nice -10 mantra" - in linux

to use low priority for rendering,

came across this and it really helps my machine handle background processing

does anyone know how to have linux run only this command automatically at this level of priority?

:blink:

24583[/snapback]

Use "alias"

Normally you launch Houdini from a terminal ok?

Well, put in you $HOME/.bashrc this:

alias mantra='nice -10 mantra'

You can do the same with commands like i3dgen for example.

Hope this helps.

Link to comment
Share on other sites

I'm not sure that will work as Houdini can't launch aliases. You could just replace the render command maybe?

24599[/snapback]

You are right edward, aliases doesn't work.

So the only option i guess is to use a script to wrap the mantra command, something like:

#!/bin/bash

# mantra

exec nice -n 10 ./mantra.bin $@

Save the script with the name mantra, and save the original mantra command with the name mantra.bin, always in the Houdini's binary directory.

Anyway it would be great to have the option to choose the render priority, even more any render drive or ROP, priority execution.

Link to comment
Share on other sites

You are right edward, aliases doesn't work.

So the only option i guess is to use a script to wrap the mantra command, something like:

#!/bin/bash

# mantra

exec nice -n 10 ./mantra.bin $@

Save the script with the name mantra, and save the original mantra command with the name mantra.bin, always in the Houdini's binary directory.

Anyway it would be great to have the option to choose the render priority, even more any render drive or ROP, priority execution.

24695[/snapback]

Better use this code:

#!/bin/bash
# mantra wraper
exec nice -n 10 vmantra $@

Don't forget to give exec permissions to your new mantra wraper

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...