[696] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: mysql: File Descriptors?

daemon@ATHENA.MIT.EDU (Michael J. Maravillo)
Mon Aug 4 13:22:55 1997

Date: Tue, 5 Aug 1997 01:09:44 +0800 (GMT+0800)
From: "Michael J. Maravillo" <mmj@philonline.com.ph>
Reply-To: Michael.Maravillo@philonline.com.ph
To: "Andrew N. Edmond" <edmond@shaman.lycaeum.org>
Cc: mysql@tcx.se, pthreads@MIT.EDU
In-Reply-To: <Pine.BSF.3.96.970803203358.1586A-100000@necropolis.org>

On Sun, 3 Aug 1997, Andrew N. Edmond wrote:

>I am trying desperately to figure out how to get mit-pthreads (v1.60b6) to
>use more than FreeBSD's 256 default (FD_SETSIZE) file descriptors. 
>
>When I try to set a higher number by including this before the sys/types.h
>include (like so:)
>
>#define   FD_SETSIZE	1024
>
>it still doesn't work.

The squid faq has a section regarding increasing file descriptors for
several OSes.

	http://squid.nlanr.net/Squid/FAQ/FAQ-10.html#ss10.4

>So I went in and did an entire OS recompile with
>1024 FD_SETSIZE for standard libraries, and built mitpthreads again.
>Still, I get the following error message:
>
>/usr/ports/databases/mysql/work/mysql-3.20.22/mit-pthreads/pthreads/fd_kern.c:179:
>Phtreads kernel panic.
>Abort (core dumped)
>
>The section of code at fault:
>
>----- fd_kern.c ---------
>  while ((count = machdep_sys_select(dtablesize, &fd_set_read,
>                                     &fd_set_write, &fd_set_except,
>                                     timeout)) < OK)
>  {
>    if (count == -EINTR)
>      return 0;
>    PANIC();
>  }
>-------------------------
>
>Anybody have any clue on how to fix/remedy this problem?


Mike
__
Michael J. Maravillo                                   Philippines Online
System Administrator      PGP KeyID: 470AED9D      InfoDyne, Incorporated
http://www.philonline.com.ph/~mmj/  4A N&M Bldg, 1184 Chino Roces, Makati



home help back first fref pref prev next nref lref last post