[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-10-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: -1 IMHO, implementing SysV semaphores would be a step backwards, plus the API is a real pain. I think there's no reason to complicate the code to accomodate such corner cases, especially since the systems that don't support POSIX

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Charles-François. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10348 ___

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-10-04 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Charles and Antoine's votes match my own, therefore closing the bug wont fix -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Martin fixed test_concurrent_futures (#10798), this issue can be implemented later. -- type: - feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: More info about FreeBSD. sysctl p1003_1b.sem_nsems_max gives the maximum number of POSIX semaphores (per process? system wide?). Since FreeBSD 8.1, sudo sysctl -w p1003_1b.sem_nsems_max=256 can be used to change this limit at

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: NetBSD. Extract of the sem_close() manpage http://www.daemon-systems.org/man/sem_close.3.html --- STANDARDS The sem_open(), sem_close(), and sem_unlink() functions conform to ISO/IEC 9945-1:1996 (``POSIX.1''). HISTORY

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Darwin (Mac OS X). According to the following email (July 2010), Darwin supports POSIX semaphores and the default limit is 10,000 semaphores. http://osdir.com/ml/darwin-dev/2010-07/msg00012.html The limit is configurable via

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: OpenBSD. According to Martin, OpenBSD doesn't implement POSIX semaphores. --- I don't have an installation of OpenBSD, but... In FreeBSD, POSIX semaphores are implemented in sys/kern/uipc_sem.c. In

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-29 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Adding, or moving, to SYSV semaphores is very low on the list of things to do. If someone were to provide a patch, I'm sure we could consider it. -- ___ Python tracker rep...@bugs.python.org

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Informations about SysV semaphores: - functions: semget(), semop(), semctl(), ftok() - http://perldoc.perl.org/IPC/SysV.html - http://beej.us/guide/bgipc/output/html/multipage/semaphores.html --

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Examples of programs using SysV semaphores: http://firebird.cvs.sourceforge.net/viewvc/firebird/firebird2/src/jrd/isc_sync.cpp?revision=HEADview=markup (Firebird, search #ifdef USE_SYS5SEMAPHORE sections)

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #5725. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10348 ___ ___

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also http://semanchuk.com/philip/sysv_ipc/: System V IPC for Python - Semaphores, Shared Memory and Message Queues -- ___ Python tracker rep...@bugs.python.org

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10348 ___ ___ Python-bugs-list mailing

[issue10348] multiprocessing: use SYSV semaphores on FreeBSD

2010-11-07 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Support POSIX semaphore on FreeBSD is recent, optional (eg. disabled by default in FreeBSD 7) and limited (30 semaphores). SYSV should be used instead because they are less limited or more adjustable (at runtime: POSIX semaphore

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-11-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It looks like SysV semaphores are also preferred on Darwin. So I suppose that Mac OS X would also benefit of this issue. Maybe also other OSes (Solaris?). See also issue #7272. -- nosy: +jnoller title: multiprocessing: use