ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Serge Pavlovsky <pal@interexc.com>
To: analisys@quality.s2.ru,
	ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: RE: [sisyphus] Как ускорить работу с потоками?
Date: Tue, 31 Aug 2004 18:07:01 +0300
Message-ID: <1093964822.2813.2.camel@underdark.interexc.com> (raw)
In-Reply-To: <000901c48f3c$29364a10$4d0010ac@aprcity.com>

On Втр, 2004-08-31 at 13:23 +0400, Boronin Sergey wrote:
> > к ниткам имеет отношение другие цифры
> > $ cat /proc/sys/kernel/threads-max
> > 3967
> > и то, что в linuxThreads на каждую нитку выделяется стек в 2M, тебе
> просто
> > не хватает памяти.
> >
> 
> Хм.. У меня 512Мб, если грубо считать, что на один поток выделяется 2Мб,
> то у меня должно было запуститься 256 потоков, а спокойно запускалось
> 1012.
> Причем, в swap система не лазила...

это 2м виртуальной а не физической памяти

> 
> А значение $ cat /proc/sys/kernel/threads-max в своей системе
> обязательно проверю, когда очередной раз в линуксе буду отлаживать, а то
> может это у вас 3967, а у меня может 1024, тогда будет ясно где собака
> порылась.
> 
> Есть ли ограничение на число потоков для пользователя?
> 
> Кстати можно ли увеличить максимальное число потоков без переборки ядра?
> 
> > Или переходить на NPTL, там можно задавать размер стека
> > или двигать по пути mysql-ведов, они патчат linuxThreads на предмет
> более 
> > разумного размера дефолта - 256K
> >
> 
> Где можно почитать про это?

почитайте лучше info libc на предмет pthread_attr_setstacksize




  reply	other threads:[~2004-08-31 15:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31  9:23 ` Boronin Sergey
2004-08-31 15:07   ` Serge Pavlovsky [this message]
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=1093964822.2813.2.camel@underdark.interexc.com \
    --to=pal@interexc.com \
    --cc=analisys@quality.s2.ru \
    --cc=sisyphus@altlinux.ru \
    /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