Date: Tue, 30 Oct 2001 11:55:51 +0200 From: Mihai Chelaru <mihai@romtelenet.org> To: freebsd-questions@FreeBSD.ORG Subject: Pthread implementation Message-ID: <3BDE7927.66CB49FA@romtelenet.org>
next in thread | raw e-mail | index | archive | help
Hello, I have a problem using freebsd pthreads. After i launch a number of aprox. 10000 threads (not concomitent but in a period of 1 day) the process suddenly goes up to 99% of CPU. i did a truss on that process and look what i got: gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x253a) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x253a) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x253a) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2538) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2537) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2537) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2537) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2537) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2536) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2536) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2536) = 1 (0x1) gettimeofday(0x28125188,0x0) = 0 (0x0) poll(0x8070000,0x4,0x2535) = 1 (0x1) First i thought the problem was in my program but after a couple of days i saw that mysql entered the same loop. I tested this on i386 architecture (single and multiprocessor machines) with FreeBSD 4.3 and 4.4. Any ideas ? Thank you, Mihai Chelaru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BDE7927.66CB49FA>