util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Set_disksize_zram_LTP_testsuite
@ 2017-10-23 16:48 Na Nha
  2017-11-02 14:00 ` Set_disksize_zram_LTP_testsuite Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Na Nha @ 2017-10-23 16:48 UTC (permalink / raw)
  To: util-linux

My name is Le Minh nhan, I am a Linux developer.

When I had used LTP testsuite to test our kernel, I encountered an error.
Testcase "zram02" of LTP testsuite  sets 100G disksize to zram, the
kernel says "cannot allocate memory". But there is no problem if I use
other values: 10G,20G...90G to set disksize of zram.

Could you please help me to find what the problem is?
What is the limitation of disksize I can set to zram or any suggestion
I could do?

I am so happy and grateful if you repsond my email.

Thanks and best regards,

Le Minh Nhan

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

* Re: Set_disksize_zram_LTP_testsuite
  2017-10-23 16:48 Set_disksize_zram_LTP_testsuite Na Nha
@ 2017-11-02 14:00 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2017-11-02 14:00 UTC (permalink / raw)
  To: Na Nha; +Cc: util-linux

On Mon, Oct 23, 2017 at 11:48:25PM +0700, Na Nha wrote:
> My name is Le Minh nhan, I am a Linux developer.
> 
> When I had used LTP testsuite to test our kernel, I encountered an error.
> Testcase "zram02" of LTP testsuite  sets 100G disksize to zram, the
> kernel says "cannot allocate memory". But there is no problem if I use
> other values: 10G,20G...90G to set disksize of zram.

The command zramctl uses 64-bit numbers for sizes, so it's without any
limitation, but don't forget that kernel uses RAM to allocate it...
see

 https://www.kernel.org/doc/Documentation/blockdev/zram.txt

where is more details about the limits, some of the limits is possible
set by /sys.

Note that zramctl --size modifies disksize attribute only.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

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

end of thread, other threads:[~2017-11-02 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23 16:48 Set_disksize_zram_LTP_testsuite Na Nha
2017-11-02 14:00 ` Set_disksize_zram_LTP_testsuite Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).