All of lore.kernel.org
 help / color / mirror / Atom feed
* How to estimate the upper bound of the peak memory consumption of cryptsetup itself?
@ 2022-06-16  4:43 Coiby Xu
  2022-06-18 15:12 ` Milan Broz
  0 siblings, 1 reply; 6+ messages in thread
From: Coiby Xu @ 2022-06-16  4:43 UTC (permalink / raw)
  To: cryptsetup

Hi,

Recently, I notice cryptsetup itself consumes significant amount of
memory (~256M) when estimating the memory requirement for dumping vmcore
to a LUKS-encrypted disk,

$ time -v cryptsetup luksOpen encrypted.img volume --key-file mykey.keyfile | grep "Maximum resident set size"
         Maximum resident set size (kbytes): 1309828
$ cryptsetup luksDump encrypted.img      
...
Keyslots:
   0: luks2
         PBKDF:      argon2id
         Memory:     1048576
         ...


So is there a way to estimate the upper bound of the peak memory
consumption of cryptsetup itself without running cryptsetup? 

Thanks!

-- 
Best regards,
Coiby


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

end of thread, other threads:[~2022-06-24 12:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16  4:43 How to estimate the upper bound of the peak memory consumption of cryptsetup itself? Coiby Xu
2022-06-18 15:12 ` Milan Broz
2022-06-20  0:19   ` Coiby Xu
2022-06-24  9:14     ` Milan Broz
2022-06-24 10:49       ` Coiby Xu
2022-06-24 12:22         ` Milan Broz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.