ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: Sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Как побороть тормознутость lightsquid?
Date: Thu, 29 May 2008 00:58:41 +0300
Message-ID: <20080528215841.GS21621@osdn.org.ua> (raw)
In-Reply-To: <993739921.20080523163545@rambler.ru>

On Fri, May 23, 2008 at 04:35:45PM +0400, Kharitonov A. Dmitriy wrote:
> Как побороть тормознутость lightsquid?
> Что имеем? router 300МГц 64М

Обрабатывать логи на другой машинке, отдав их туда по NFS?

> страничка с 100 серверами открывается ~3 мин, до того, как
> выгрузил htppd-alterator грузилась ~5 мин.
> Что ещё можно отключить?
> 
>              total       used       free     shared    buffers     cached
> Mem:         61512      57828       3684          0       9264      21676
> -/+ buffers/cache:      26888      34624
> Swap:       215732         56     215676

Негусто, но нормально...

> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> root       664  0.0  0.9   1660   556 ?        S<s  May22   0:00 /sbin/udevd --daemon

Можно попробовать 

chkconfig udevd off; service udevd stop

> rpc       2823  0.0  0.9   1672   592 ?        Ss   May22   0:00 /sbin/portmap -l
> named     2864  0.0  4.7   5480  2900 ?        Ss   May22   0:07 /usr/sbin/named
> dhcpd     4222  0.0  2.4   2784  1524 ?        Ss   May22   0:00 /usr/sbin/dhcpd
> root      4472  0.0  1.6   2064   988 ?        Ss   May22   0:00 /usr/libexec/postfix/master
> postfix   4480  0.0  2.1   3232  1292 ?        S    May22   0:00 qmgr -l -t fifo -u -c
> root      4492  0.0  2.4   4128  1520 ?        Ss   May22   0:00 /usr/sbin/httpd
> ntpd      4530  0.0  1.3   2844   848 ?        S    May22   0:00 ntpd: ntp engine
> root      4531  0.0  0.9   3112   568 ?        Ss   May22   0:00 ntpd: [priv]

Это всё настроено/используется? (судя по portmap -l -- вряд ли)

> root      4763  0.0  0.0      0     0 ?        S    May22   0:00 [vzmond]

Если контейнеров нет -- может быть удобней поставить ядро std-smp
(заодно из updates -- так понимаю, что там дистрибутивное?).

> root      4922  0.0  0.7   1520   432 tty1     Ss+  May22   0:00 /sbin/mingetty --noclear tty1
> root      4923  0.0  0.7   1520   436 tty2     Ss+  May22   0:00 /sbin/mingetty tty2
> root      4924  0.0  0.7   1516   436 tty3     Ss+  May22   0:00 /sbin/mingetty tty3
> root      4925  0.0  0.7   1520   432 tty4     Ss+  May22   0:00 /sbin/mingetty tty4
> root      4930  0.0  0.7   1516   436 tty5     Ss+  May22   0:00 /sbin/mingetty tty5
> root      4931  0.0  0.7   1520   432 tty6     Ss+  May22   0:00 /sbin/mingetty tty6

Можно оставить штуки три (см. /etc/inittab)...

> root      5050  0.0  2.2   6504  1368 ?        Ss   May22   0:08 /usr/sbin/nmbd -D
> root      5052  0.0  4.6   9940  2832 ?        Ss   May22   0:00 /usr/sbin/smbd -D
> root      5060  0.0  1.8   9940  1108 ?        S    May22   0:00 /usr/sbin/smbd -D

Самба используется?

> apache   19224  0.0  2.4   4300  1508 ?        S    04:02   0:00 /usr/sbin/httpd
> apache   19225  0.0  2.5   4300  1540 ?        S    04:02   0:00 /usr/sbin/httpd
> apache   19226  0.0  2.4   4300  1508 ?        S    04:02   0:00 /usr/sbin/httpd
> apache   19227  0.0  2.5   4300  1560 ?        S    04:02   0:00 /usr/sbin/httpd
> apache   19229  0.0  2.5   4300  1576 ?        S    04:02   0:00 /usr/sbin/httpd
> apache   25420  0.0  2.4   4300  1512 ?        S    10:40   0:00 /usr/sbin/httpd
> apache   25421  0.0  2.6   4300  1604 ?        S    10:40   0:00 /usr/sbin/httpd
> apache   25422  0.0  2.4   4300  1512 ?        S    10:40   0:00 /usr/sbin/httpd
> apache   25434  0.0  2.4   4300  1512 ?        S    10:42   0:00 /usr/sbin/httpd

Если не нужен -- chkconfig httpd2 off; service httpd2 stop.
Не для таких машинок apache2 лепился :-(

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  reply	other threads:[~2008-05-28 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23 12:35 Kharitonov A. Dmitriy
2008-05-28 21:58 ` Michael Shigorin [this message]
2008-05-28 21:58 ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080528215841.GS21621@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=Sysadmins@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git