Bug #17172 Updated: highload system got error:
| From: | mfischer@php.net | Date: | Tue, 04 Jun 2002 08:21:32 +0000 |
| Subject: | Bug #17172 Updated: highload system got error: | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9419@lists.php.net to get a copy of this message | ||
ID: 17172
Updated by: mfischer@php.net
Reported By: sunjh@163.net
-Status: Open
+Status: Feedback
Bug Type: Semaphore related
Operating System: redhat
PHP Version: 4.1.2
New Comment:
Please try CVS HEAD, there has been a bit of work on this lately.
Previous Comments:
------------------------------------------------------------------------
[2002-05-13 03:04:18] sunjh@163.net
please run this scripts 10 clone at BG.
------------------------------------------------------------------------
[2002-05-13 02:51:57] sunjh@163.net
highload system:
when I run this script:
for($i = 0; $i < 20000; $i++){
$semid = sem_get ( 0xf01, 1, 0666 );
if ( !$semid ) {
echo "mem.mem: Can't get semaphore<BR>";
return;
}
if ( !sem_acquire( $semid ) ) {
echo "mem.mem: Can't acquire semaphore<BR>";
return;
}
if( !sem_release( $semid ) ) {
echo "mem: Can't release semaphore";
}
}
shell is return:
semop() failed acquiring SYSVSEM_SETVAL for key 0xf01: Numerical result
out of range
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17172&edit=1