Is 'nice' inherited to child processes? e.g. bash script/php script that calls MySQL
Is the priority set by the 'nice' command inherited by processes that are called by the script being run?
For instance, say you do 'nice bash mysql.sh' or 'nice php mysql.php', and those scripts call a MySQL command like optimizing tables.
Would that MySQL command have a lower, 'nice' priority? And if not, is it possible to have a 'nice' type behavior that is inherited by child processes?
Basically, yes ... with MySQL (or other client/server processes)
the problem is that your .sh will only kick of a query. This will
*NOT* impact on the priority of the server process, and the only
thing that will be less CPU intense will be the post-processing
of the result set (if you do any).
|All times are GMT -5. The time now is 01:35 AM.|