ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Avramenko Andrew <liksx@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] pthread_create. Out of memory
Date: Sat, 08 Dec 2007 10:31:25 +0300
Message-ID: <475A484D.20404@mail.ru> (raw)
In-Reply-To: <20071208002251.46424631@mission>

Alexey Rusakov пишет:
> On Sat, 08 Dec 2007 00:04:36 +0300
> Avramenko Andrew wrote:
> 
> 
>> ipx пишет:
>>> Доброго времени суток!
>>>
>>> Не могу создать более 382 потоков в одном процессе.
>>> Одновременно существуют 15-20 потоков, проверял. Как только общее количество потоков со старта приложения равняется 382 функция pthread_create поток не создает и сообщает "out of memory".
>>>
>>> В ходе поиска в сети удалось выяснить, что это связано с размером стека для потока (10 Мб).
>>>
>>> Но ведь потоки уничтожаются!!!
>>>
>>> Поясните пожалуйста, я чего-то не понимаю.
>> Ну да. Сталкивались с таким, кто-то у нас спрашивал.
>> Куда они уничтожаются? Они не одновременно работают?
> Моя не уверена, но на бранче в Pidgin, возможно, я сталкиваюсь как раз с
> этим. После некоторого времени работы переключение между вкладками
> вдруг затормаживается (до 20-30 секунд на переключение), и невозможно
> запустить ни один новый процесс. После завершения Pidgin всё внезапно
> нормализуется. Грешил на local misconfiguration, но похоже, что не
> очень-то оно local.
> 

Подтверждаю баг на RHEL 5.1. Не смотрел пока еще из-за чего.



      reply	other threads:[~2007-12-08  7:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-06 22:50 ipx
2007-12-07 21:04 ` Avramenko Andrew
2007-12-07 21:22   ` Alexey Rusakov
2007-12-08  7:31     ` Avramenko Andrew [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=475A484D.20404@mail.ru \
    --to=liksx@mail.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