* [Comm] sysctl и tcp_available_congestion_control
@ 2009-07-07 7:39 Владимир Гусев
2009-07-07 15:47 ` Sergey Vlasov
0 siblings, 1 reply; 3+ messages in thread
From: Владимир Гусев @ 2009-07-07 7:39 UTC (permalink / raw)
To: ALT Linux Community general discussions
Для выяснения списка поддерживаемых алгоритмов управления перегрузкой
делаю так:
[root@wind ~]# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bic reno
т.е. только bic и reno... А где cubic, westwood (который и нужен был
мне)?
[root@wind ~]# uname -a
Linux wind.gusev.ru 2.6.30-std-def-alt3 #1 SMP Sat Jul 4 07:09:22 UTC
2009 i686 GNU/Linux
--
С уважением,
Владимир Гусев
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] sysctl и tcp_available_congestion_control
2009-07-07 7:39 [Comm] sysctl и tcp_available_congestion_control Владимир Гусев
@ 2009-07-07 15:47 ` Sergey Vlasov
2009-07-08 8:36 ` Владимир Гусев
0 siblings, 1 reply; 3+ messages in thread
From: Sergey Vlasov @ 2009-07-07 15:47 UTC (permalink / raw)
To: community
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] sysctl и tcp_available_congestion_control
2009-07-07 15:47 ` Sergey Vlasov
@ 2009-07-08 8:36 ` Владимир Гусев
0 siblings, 0 replies; 3+ messages in thread
From: Владимир Гусев @ 2009-07-08 8:36 UTC (permalink / raw)
To: community
> > Для выяснения списка поддерживаемых алгоритмов управления
> > перегрузкой делаю так:
> >
> > [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).
Огромное спасибо за развернутый ответ!
--
С уважением,
Владимир Гусев
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-08 8:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-07 7:39 [Comm] sysctl и tcp_available_congestion_control Владимир Гусев
2009-07-07 15:47 ` Sergey Vlasov
2009-07-08 8:36 ` Владимир Гусев
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