memtester icon indicating copy to clipboard operation
memtester copied to clipboard

Dynamic allocation failed

Open axet opened this issue 6 months ago • 3 comments

oot@axet-desktop:/home/axet# memtester 32G 1
memtester version 4.7.1 (64-bit)
Copyright (C) 2001-2024 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 32768MB (34359738368 bytes)
got  32768MB (34359738368 bytes), trying mlock ...Killed
root@axet-desktop:/home/axet# memtester 30G 1
memtester version 4.7.1 (64-bit)
Copyright (C) 2001-2024 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 30720MB (32212254720 bytes)
got  30720MB (32212254720 bytes), trying mlock ...Killed
root@axet-desktop:/home/axet# memtester 28G 1
memtester version 4.7.1 (64-bit)
Copyright (C) 2001-2024 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 28672MB (30064771072 bytes)
got  28672MB (30064771072 bytes), trying mlock ...locked.
Loop 1/1:

axet avatar Jul 10 '25 16:07 axet

Can you describe more precisely your issue ?

jnavila avatar Jul 11 '25 18:07 jnavila

Can you describe more precisely your issue ?

jnavila avatar Jul 11 '25 18:07 jnavila

memtester crashed when allocated too much memory at start, It requires manual picking the correct about even that man page saying memtester can do it automatically.

When set maximum about memtesrer crashing after mlock strep instead properly failing and allocating less memory.

I'm using recent OS Debian Trixie, which may work dirrerently then previous OS / kernel versions and show different behaving allowing allocating a lot of memry but then OOM kick the app.

Could be that new app allocation algorith thm required then relaying on old malloc logic.

axet avatar Jul 12 '25 04:07 axet