NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/53998 CVS commit: src/sys



	Hello Christos,

	I have built a new kernel with your patches (-current, not -8 as I
haven't time enough to try to put your patches in -8 kernel, I have
tried without success). Thus, my test workstation now run -8 userland
with -current kernel :

schwarz:[~] > uname -a
NetBSD schwarz.systella.fr 8.99.35 NetBSD 8.99.35 (GENERIC) #2: Fri Mar
8 13:08:03 CET 2019
root%legendre.systella.fr@localhost:/usr/src/netbsd-current/obj/sys/arch/amd64/compile/GENERIC
amd64

	My RPL/2 test aborts, but not in sem_init(). I have rebuilt my quick
and dirty stress test semaphore.c (and I have added before sem_destroy()
in thread() a new ligne with sleep(1) to be sure that forked process is
terminated before end of parent thread.).

	Now, semaphore.c aborts with :
Free slot : 6 (911 threads)
Free slot : 7 (912 threads)
< 905 >
< 907 >
< 906 >
< 910 >
< 908 >
< 909 >
< 911 >
< 912 >
Free slot : 0 (913 threads)
Free slot : 1 (914 threads)
Free slot : 2 (915 threads)
Free slot : 3 (916 threads)
Free slot : 4 (917 threads)
Free slot : 5 (918 threads)
Free slot : 6 (919 threads)
Free slot : 7 (920 threads)
< 913 >
< 914 >
fork(): Resource temporarily unavailable

	I suppose that one second is enough to run "echo <thread>". That's
being said, when semaphore.c aborts, you can see that there is no more 8
forked processes.

	Please note that program aborts always after 900 or 1000 forked processes.

	Best regards,

	JB


Home | Main Index | Thread Index | Old Index