ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] sysctl и tcp_available_congestion_control
Date: Tue, 7 Jul 2009 19:47:58 +0400
Message-ID: <20090707154758.GA7997@atlas.home> (raw)
In-Reply-To: <20090707113918.02f04098@narod.ru>

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

On Tue, Jul 07, 2009 at 11:39:18AM +0400, Владимир Гусев wrote:
> Для выяснения списка поддерживаемых алгоритмов управления перегрузкой
> делаю так:
> 
> [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).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-07-07 15:47 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 [this message]
2009-07-08  8:36   ` Владимир Гусев

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=20090707154758.GA7997@atlas.home \
    --to=vsu@altlinux.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