|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-30 16:05 UTC] carb at videotron dot ca
Description:
------------
executing a command from PHP, the command does not get migrated in an openMosix cluster, even if the command migrates when it is executed from the command line.
Running "awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}' > /dev/null 2>&1 &" from a command line several times creates processes that get migrated.
Running the same thing several times from an exec in a PHP script does not get migrated.
The same problem occurs whether the script is executed from apache "http://localhost/test.php/" or the command line "php test.php"
Reproduce code:
---------------
<?PHP
exec("awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}' > /dev/null 2>&1 &");
?>
Expected result:
----------------
When executing the script several times in an openMosix cluster, some of the processes should migrate.
Actual result:
--------------
When executing the script several times in an openMosix cluster, none of the processes migrate.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Running the command with "mosrun -l" removes the lock so that it can migrate. <?PHP exec("mosrun -l awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}' > /dev/null 2>&1 &"); ?>