ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Владимир Гусев" <vova1971@narod.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] sysctl и tcp_available_congestion_control
Date: Wed, 8 Jul 2009 12:36:29 +0400
Message-ID: <20090708123629.1f88ef53@narod.ru> (raw)
In-Reply-To: <20090707154758.GA7997@atlas.home>

> > Для выяснения списка поддерживаемых алгоритмов управления
> > перегрузкой делаю так:
> > 
> > [root@wind ~]# sysctl net.ipv4.tcp_available_congestion_control
> > net.ipv4.tcp_available_congestion_control = bic reno
> > 
> > т.е. только bic и reno... А где cubic, westwood (который и нужен был
> > мне)?
> 
> Как обычно, в модулях.  Если требуется поставить алгоритм по
> умолчанию, работает автозагрузка:
> 
> # sysctl net.ipv4.tcp_available_congestion_control
> net.ipv4.tcp_available_congestion_control = bic reno
> # sysctl -w net.ipv4.tcp_congestion_control=westwood
> # sysctl net.ipv4.tcp_congestion_control
> net.ipv4.tcp_congestion_control = westwood
> # sysctl net.ipv4.tcp_available_congestion_control
> net.ipv4.tcp_available_congestion_control = westwood bic reno
> # lsmod | head -n2
> Module                  Size  Used by
> tcp_westwood            3136  0 
> 
> Если нужно установить net.ipv4.tcp_allowed_congestion_control (набор
> алгоритмов, доступных для установки непривилегированому пользователю
> через setsockopt(fd, SOL_TCP, TCP_CONGESTION, ...) для отдельного
> сокета), необходимо предварительно загрузить все требуемые модули (в
> этом случае автозагрузка уже не работает, за исключением случая, когда
> процесс, вызывающий setsockopt, имеет CAP_SYS_MODULE - тогда
> запрошенный модуль будет загружен, но для его использования ещё
> потребуется CAP_NET_ADMIN).

Огромное спасибо за развернутый ответ!

-- 
С уважением,
Владимир Гусев


      reply	other threads:[~2009-07-08  8:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07  7:39 Владимир Гусев
2009-07-07 15:47 ` Sergey Vlasov
2009-07-08  8:36   ` Владимир Гусев [this message]

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=20090708123629.1f88ef53@narod.ru \
    --to=vova1971@narod.ru \
    --cc=community@lists.altlinux.org \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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