search for: shmem_hash_size

Displaying 2 results from an estimated 2 matches for "shmem_hash_size".

1998 Sep 15
1
SUNOS: Samba grabs all semaphores, breaking other softwares (PR#9755)
...S specific problem. We'd really like to > get this bug under control... > It's not actually a bug really, more a questionable design decision. The solution for Samba 1.9.18pXX is to set the number of semaphores manually in shmem_sysv.c, ie. change the lines: #ifdef SEMMSL #define SHMEM_HASH_SIZE (SEMMSL-1) #else #define SHMEM_HASH_SIZE 63 #endif to be just : #define SHMEM_HASH_SIZE <whatever you want here> Samba-2 won't have this problem as it is much more conservative about SYSV semaphore use. I'm CC:ing this reply to the mailing list as I think people might be interested...
1998 Apr 01
0
[Fwd: Semaphore problem on HP-UX ?]
...--------------------------------------- DEBUG(4,("Trying sysv shmem open of size %d\n", shm_size)); /* first the semaphore */ sem_id = semget(SEMAPHORE_KEY, 0, 0); if (sem_id == -1) { if (read_only) return NULL; hash_size = SHMEM_HASH_SIZE; DEBUG(4,("semaphore : initial hash-size = %d \n", hash_size)); while (hash_size > 1) { sem_id = semget(SEMAPHORE_KEY, hash_size+1, IPC_CREAT|IPC_EXCL|SEMAPHORE_PERMS);...