ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] OpenVZ6, XML::Simple, XMLin Out of memory
@ 2024-10-08  5:25 Sergey
  2024-10-08  7:35 ` Sergey
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sergey @ 2024-10-08  5:25 UTC (permalink / raw)
  To: community

Приветствую.

Нет ли у кого идей, от чего в 64-разрядном контейнере
может происходить Out of memory при операции загрузки
xml файла? Примерно так:

my $xml = new XML::Simple;
my $data = $xml->XMLin("$TEMPDATADIR/dump.xml");

В user_beancounters в failcnt всё по нулям. Началось при
примерно 4Гб. Увеличение лимита ОЗУ успеха не принесло.
При этом вне контейнера xml-ка грузится (да, она большая
на самом деле, выгрузка запретинфо), в том числе и в хост
системе, где контейнер живёт (p8).

Как будто что-то там, всё же, 32-разрядное, только непонятно,
что.

-- 
С уважением, Сергей.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] OpenVZ6, XML::Simple, XMLin Out of memory
  2024-10-08  5:25 [Comm] OpenVZ6, XML::Simple, XMLin Out of memory Sergey
@ 2024-10-08  7:35 ` Sergey
  2024-10-09  5:25   ` Sergey
  2024-10-09  9:58 ` Nikolay A. Fetisov
  2024-10-10 19:08 ` Sergey
  2 siblings, 1 reply; 6+ messages in thread
From: Sergey @ 2024-10-08  7:35 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Tuesday 08 October 2024, Sergey wrote:

> Нет ли у кого идей, от чего в 64-разрядном контейнере
> может происходить Out of memory при операции загрузки
> xml файла? Примерно так:
> 
> my $xml = new XML::Simple;
> my $data = $xml->XMLin("$TEMPDATADIR/dump.xml");
 
Так вот из-под strace выглядит:

mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbfde6000
brk(NULL)                               = 0xb3a1e000
brk(0xb3a3f000)                         = 0xb3a1e000
mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbfee6000
brk(NULL)                               = 0xb3a1e000
brk(0xb3a40000)                         = 0xb3a1e000
mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
write(2, "Out of memory!\n", 15Out of memory!
)        = 15

-- 
С уважением, Сергей.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] OpenVZ6, XML::Simple, XMLin Out of memory
  2024-10-08  7:35 ` Sergey
@ 2024-10-09  5:25   ` Sergey
  2024-10-09  9:58     ` Nikolay A. Fetisov
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey @ 2024-10-09  5:25 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Tuesday 08 October 2024, Sergey wrote:

> mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)

Нашлось нечто похожее про игрушку в контейнере:
https://github.com/tarantool/tarantool/issues/91
Вроде как зависит от ядра. Но я попробовал пару
штук, 2.6.32-ovz-el-alt168.M80P.2 и 2.6.32-ovz-el-alt170.M80P.1,
не повезло.

Там есть ссылка на баг OpenVZ 2805, только вот багтрекер
сменился, сейчас без регистрации не показывает ничего и
не факт, что перенесли.

-- 
С уважением, Сергей.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] OpenVZ6, XML::Simple, XMLin Out of memory
  2024-10-08  5:25 [Comm] OpenVZ6, XML::Simple, XMLin Out of memory Sergey
  2024-10-08  7:35 ` Sergey
@ 2024-10-09  9:58 ` Nikolay A. Fetisov
  2024-10-10 19:08 ` Sergey
  2 siblings, 0 replies; 6+ messages in thread
From: Nikolay A. Fetisov @ 2024-10-09  9:58 UTC (permalink / raw)
  To: ALT Linux Community general discussions

В Вт, 08/10/2024 в 09:25 +0400, Sergey пишет:
> Нет ли у кого идей, от чего в 64-разрядном контейнере
> может происходить Out of memory при операции загрузки
> xml файла? 
> 

А какая схема управления ресурсами используется для контейнера?
Vswap или старая UBC?

-- 
С уважением,
Николай Фетисов

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] OpenVZ6, XML::Simple, XMLin Out of memory
  2024-10-09  5:25   ` Sergey
@ 2024-10-09  9:58     ` Nikolay A. Fetisov
  0 siblings, 0 replies; 6+ messages in thread
From: Nikolay A. Fetisov @ 2024-10-09  9:58 UTC (permalink / raw)
  To: ALT Linux Community general discussions

В Ср, 09/10/2024 в 09:25 +0400, Sergey пишет:
> On Tuesday 08 October 2024, Sergey wrote:
> 
> > mmap2(NULL, 1048576, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate
> > memory)
> 
> Нашлось нечто похожее про игрушку в контейнере:
> https://github.com/tarantool/tarantool/issues/91

Это скорее другое. Там про выделение памяти с флагом SHARED,
плюс в
https://github.com/tarantool/tarantool/issues/91#issuecomment-27084157
превышение ресурсов контейнера всё-таки видно:

resource                     held              maxheld
                          barrier                limit 
physpages                  993969              1048601
                                0              1048576  

-- 
С уважением,
Николай Фетисов

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] OpenVZ6, XML::Simple, XMLin Out of memory
  2024-10-08  5:25 [Comm] OpenVZ6, XML::Simple, XMLin Out of memory Sergey
  2024-10-08  7:35 ` Sergey
  2024-10-09  9:58 ` Nikolay A. Fetisov
@ 2024-10-10 19:08 ` Sergey
  2 siblings, 0 replies; 6+ messages in thread
From: Sergey @ 2024-10-10 19:08 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Tuesday 08 October 2024, Sergey wrote:

> Как будто что-то там, всё же, 32-разрядное, только непонятно,
> что.
 
Нда. Весь контейнер x32. Бывает жеж, был уверен, что таких не
осталось у меня. И, вроде, даже смотрел. Спасибо andy@basealt,
что не постеснялся глупый вопрос задать в личку. :-)

-- 
С уважением, Сергей
a_s_y@sama.ru


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-10 19:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-08  5:25 [Comm] OpenVZ6, XML::Simple, XMLin Out of memory Sergey
2024-10-08  7:35 ` Sergey
2024-10-09  5:25   ` Sergey
2024-10-09  9:58     ` Nikolay A. Fetisov
2024-10-09  9:58 ` Nikolay A. Fetisov
2024-10-10 19:08 ` Sergey

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