Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Squid out of filedescriptor


  • Subject: Re: lug-bg: Squid out of filedescriptor
  • From: danchev@xxxxxxxxx (George Danchev)
  • Date: Tue, 4 Dec 2001 18:17:57 +0200



On Tuesday 04 December 2001 17:39, you wrote:
> One more thing you need to do before compiling squid is raise the number
> of file descriptors on your system. This requires two steps in recent
> 2.2.x series kernels. First you need to edit this line in the
> /usr/include/bits/types.h file:
>
> ------------------------------------------------------------------------
> --------
> #define __FD_SETSIZE    8192
> ------------------------------------------------------------------------
> --------
>
> propusni tazi stypka ako si s 2.4 kernel :)

Tava s razlikata dali ste e 2.2 ili 2.4 source vazhi samo ako polzva kernel 
headers pri kompilaciqta, a v slu4aq za kompilaciqta na squid-a , pyk i koeto 
i da e drugo user space prilozhenie si ima glibc /usr/include/. Taka 4e ne bi 
trqbvalo da zavisi ot source na kernela. Tiq ne sa si update-vali 
dokumentaciqta naj-veroqtno.
Naj-veroqtno oste systestvuva tazi prostotiq v nqkoj stari bazirani na 2.2 
qdro distribycii  s symlinkovete ot /usr/include/linux   da so4at kym files i 
dirs ot /usr/src/linux/include/linux . Edno vreme si spomnqm 4e redhat 
praveshe takiva prostotij, ama hajde da kazhem 4e sa imali nqkakvo opravdanie 
4e takava bila tradiciqta ot 1.0 kernel.
Taka pri compilaciqta na naj-obiknoveno obiknoveno user-space prilozhenie se 
polzvat kernel headers (da umresh ot smqh ;), kojto trqbva da se polzvat samo 
za kernelski nesta (device drivers i t.n.) . Ama kakto i da e de. 

Na kernela susto mozhe da se obesni 
echo 65536 > /proc/sys/kernel/file-max
echo 65536 > /proc/sys/kernel/inode-max

na shella susto:
ulimit -n 65536 
(taka li beshe syntax?)
maj prekalih s tova 65536 :)

> > -----Original Message-----
> > From: Boris Jordanov [mailto:borj@xxxxxxxxx]
> > Sent: Tuesday, December 04, 2001 5:20 PM
> > To: lug-bg@xxxxxxxxxxxxxxxxxx
> > Subject: Re: lug-bg: Squid out of filedescriptor
> >
> >
> > http://www.devshed.com/Server_Side/Administration/SQUID/print
> >
> >
> > On Tue, 4 Dec 2001 16:57:02 +0200
> >
> > Stoian Mishev wrote:
> > > Squid mi wadi slednoto syobshtenie:
> > > squid[89]: WARNING! Your cache is running out of filedescriptor
> > >
> > > sled kato se porazrowih nasam-natam za kakwo stawa duma
> >
> > stana qsno che se
> >
> > > dostiga limita za otworeni file-owe w systemata (1024 koeto
> >
> > maj e default)
> >
> > > ako restartiram squd-a se oprawia za izwesten period ot
> >
> > wreme ama sled towa
> >
> > > pak pishti :-(
> > >
> > > nqkoj sblyskwal li se e s tozi problem i kak e naj
> >
> > elegantno toj da byde
> >
> > > reshen taka che da ne se poluchi nqkoj gaf, kato naprimer
> >
> > da se iztrie
> >
> > > cache-a :-))
> > >
> > > system: linux 2.2.19, squid 2.4.STABLE2
> > >
> > > --
> > > Stoian Mishev
> > > Internet Administraror, Dolphin-3 BG.
> > > e-mail: stuckoff@xxxxxxxxxxxx
> > > ICQ #: 5079105
> > > GSM: +359-88-435168
> >
> > ==============================================================
> > =============
> >
> > > A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> > > http://www.linux-bulgaria.org/ Hosted by Internet Group
> >
> > Ltd. - Stara Zagora
> >
> >
> >
> > Take care
> >
> >
> > Boris Jordanov (borj) <borj@xxxxxxxxx>
> > ICQ 10751645
> >
> > PGP-key-fingerprint:------------------------------
> > CB23 8B52 5FBC F36A 1B61  F1ED 2831 E52D AAFF 7B08
> > --------------------------------------------------
> > Public-key:---------------------------------------
> > http://borj.freeshell.org/borj.asc
> > --------------------------------------------------
> > To err is human...
> > to really foul up requires the root password.
>
> ===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora


-- 
Greets, 
fr11zb1
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.