From: "Boronin Sergey" <analisys@quality.s2.ru>
To: "'Serge Ryabchun'" <sr@ustar.ua>
Cc: sisyphus@altlinux.ru
Subject: RE: [sisyphus] Как ускорить работу с потоками?
Date: Tue, 31 Aug 2004 13:23:21 +0400
Message-ID: <000901c48f3c$29364a10$4d0010ac@aprcity.com> (raw)
In-Reply-To: <200408311202.33325.sr@ustar.ua>
> к ниткам имеет отношение другие цифры
> $ cat /proc/sys/kernel/threads-max
> 3967
> и то, что в linuxThreads на каждую нитку выделяется стек в 2M, тебе
просто
> не хватает памяти.
>
Хм.. У меня 512Мб, если грубо считать, что на один поток выделяется 2Мб,
то у меня должно было запуститься 256 потоков, а спокойно запускалось
1012.
Причем, в swap система не лазила...
А значение $ cat /proc/sys/kernel/threads-max в своей системе
обязательно проверю, когда очередной раз в линуксе буду отлаживать, а то
может это у вас 3967, а у меня может 1024, тогда будет ясно где собака
порылась.
Есть ли ограничение на число потоков для пользователя?
Кстати можно ли увеличить максимальное число потоков без переборки ядра?
> Или переходить на NPTL, там можно задавать размер стека
> или двигать по пути mysql-ведов, они патчат linuxThreads на предмет
более
> разумного размера дефолта - 256K
>
Где можно почитать про это?
С уважением,
Боронин Сергей
-----Original Message-----
From: Serge Ryabchun [mailto:sr@ustar.ua]
Sent: Tuesday, August 31, 2004 1:03 PM
To: analisys@quality.s2.ru; ALT Linux Sisyphus discussion list
Subject: Re: [sisyphus] Как ускорить работу с потоками?
В сообщении от вівторок, 31-сер-2004 11:51 Boronin Sergey написал(a):
> >ulimit -u?
>
> 128 процессов на одного пользователя. Если учеть что потоки
> обрабатываются ядром по аналогии с процессами у меня должно было
> запуститься всего 100 с небольшим потоков, а спокойно запускается
1012,
> и валится на 1015 потоках.
к ниткам имеет отношение другие цифры
$ cat /proc/sys/kernel/threads-max
3967
и то, что в linuxThreads на каждую нитку выделяется стек в 2M, тебе
просто
не хватает памяти. Или переходить на NPTL, там можно задавать размер
стека
или двигать по пути mysql-ведов, они патчат linuxThreads на предмет
более
разумного размера дефолта - 256K
next parent reply other threads:[~2004-08-31 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 9:23 ` Boronin Sergey [this message]
2004-08-31 15:07 ` Serge Pavlovsky
2004-08-31 15:31 ` Boronin Sergey
2004-08-31 17:21 ` Serge Pavlovsky
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='000901c48f3c$29364a10$4d0010ac@aprcity.com' \
--to=analisys@quality.s2.ru \
--cc=sisyphus@altlinux.ru \
--cc=sr@ustar.ua \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git