ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Adzhubey <iadzhubey@rics.bwh.harvard.edu>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Perl memory leaks?
Date: Mon, 03 Mar 2008 10:20:03 -0500
Message-ID: <200803031020.03551.iadzhubey@rics.bwh.harvard.edu> (raw)
In-Reply-To: <20080303145542.GA32305@solemn.turbinal>

On Monday 03 March 2008 09:55:42 am Alexey Tourbin wrote:
> On Mon, Mar 03, 2008 at 12:04:00AM -0500, Ivan Adzhubey wrote:
> > Никто не замечал утечек памяти в перле в последнее время? У меня падает
> > скрипт с Cannot allocate memory, на операции открытия pipe:
>
> Может быть, где-то есть попытка создать Очень Большую Переменную (то
> есть поместить содержимое большого файла в переменную).  В ядре может
> быть ограничение на размер непрерывного куска памяти, который можно
> подыскать для malloc'а.  То есть malloc(100M) может отвалить, даже
> если в системе кумулятивно совободно больше 100M.
>
> vsu лучше знает, как сейчас с этим дело обстоит.

Похоже таки да - пытается считать большой файл в память. При этом реально 
память заканчивается так как скрипт съедает все 2 гигабайта перед тем как 
упасть, я топом следил. Странно, что если обрабатывать те же 50000 файлов 
циклами по 1000, то все работает. А если запустить цикл сразу на 50000 - 
падает на одном и том же файле. В общем к нашей сборке перла это отношения не 
имеет, буду дальше разбираться.

--Иван



      reply	other threads:[~2008-03-03 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03  5:04 Ivan Adzhubey
2008-03-03  6:58 ` Ivan Adzhubey
2008-03-03 14:46 ` Alexey Tourbin
2008-03-03 14:55 ` Alexey Tourbin
2008-03-03 15:20   ` Ivan Adzhubey [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=200803031020.03551.iadzhubey@rics.bwh.harvard.edu \
    --to=iadzhubey@rics.bwh.harvard.edu \
    --cc=sisyphus@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 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