Hi Jay,
"Austad, Jay" wrote:
>
> I grabbed the source rpm and just applied the patch to it and
> rebuilt it. Works great.
Congrats!
Please teach me how you did it!
> Except, FD_SET is limited to 1024 descriptors.
Don't you hate it when that happens? ;)
> How do I change this? I assume I can't just echo something into
> /proc... I want to be able to do more than 509 concurrency.
I did succeed to raise the concurrency level to 1000,
but its an unofficial "dirty hack" and I can't be liable
for any damages but here's what I did:
(BTW, I am thinking of writing up a mini-howto)
This was originally posted to the qmail list at about
Mon, 18 Sep 2000 20:36:09 +0900 with the title :
Re: conf-spawn and FD_SET SUCCESS!
but updated a little since I forgot to include some
more info.
Warning/Disclaimer:
This worked for me. I am not responsible if something breaks,
or causes any damage to everything or anything related to the
person following the steps below to modify their system and/or
qmail setup (or whatever...).
This was originally posted to the qmail list at about
Mon, 18 Sep 2000 20:36:09 +0900 with the title :
Re: conf-spawn and FD_SET SUCCESS!
but updated since I forgot to include some more info.
linux kernel 2.2.17
qmail-1.03
procmail rc file
(install was accomplished by closely following lwq :)
plus localtime, DNS, big-todo, big-concurrency patches
in that order
changes in qmail configuration:
$qmailhome/control/concurrencylocal 500
$qmailhome/control/concurrencyremote 500
$qmailsrc/conf-spawn set to 1000
$qmailsrc/conf-split set to 100
$qmailsrc/conf-cc set to cc -O2 -D__FD_SETSIZE=2048
ucspi-tcp-0.88
daemontools-0.70
1. Inside the big-concurrency patch:
it said to modify
"/usr/src/linux/include/linux/tasks.h
NR_TASKS from 512 to e.g. 2048"
- directly quoted - which I did.
2. As P.Y. Adi Prasaja mentioned:
raised the __FD_SETSIZE value in
/usr/include/bits/types.h
from 1024 to 2048
3. Just to be sure:
raised the __FD_SETSIZE value in
/usr/src/linux/include/linux/posix_types.h
from 1024 to 2048
4. As Peter van Dijk mentioned:
added -D__FD_SETSIZE=2048 to $qmailsrc/conf-cc
5. Edit the following:
$qmailhome/control/concurrencylocal 500
$qmailhome/control/concurrencyremote 500
$qmailsrc/conf-spawn set to 1000
$qmailsrc/conf-split set to 100
$qmailsrc/conf-cc set to cc -O2 -D__FD_SETSIZE=2048
6. make setup:
bingo!
no compile errors.
qmail is idling ok.
7. Change sources back to default value:
(incase I break something ;)
/usr/include/bits/types.h
/usr/src/linux/include/linux/posix_types.h
both back to 1024
#---------#---------#---------#---------#---------#---------#---------#
-- If somebody can help create a search engine for my room,
I will call them a Saint...
GUI == Graphical User Interference