makedumpfile memory usage grows with system memory size
Subsystems (2)
Hi Don,
Quoted 15 lines · Don Zickus
Quoted 4 lines · Atsushi Kumagai
Hello Don,
Does setting TMPDIR solve your problem ? Please refer to the man page.Quoted 9 lines
ENVIRONMENT VARIABLES
TMPDIR This environment variable is for a temporary memory bitmap
file. If your machine has a lots of memory and you use tmpfs on /tmp, makedumpfile can fail for a little memory in the 2nd kernel because makedumpfile makes a very large temporary memory bitmap file in this case. To avoid this failure, you can set a TMPDIR environment variable. If you do not set a TMPDIR envi- ronment variable, makedumpfile uses /tmp directory for a tempo- rary bitmap file as a default.
Quoted 4 lines
I do not think it will because we run the second kernel inside the initramfs and do not mount any extra disks. So the only location available for the temporary memory bitmap would be memory either tmpfs or something else. Regardless the file ends up in memory.
If a file system for a dump file is on the local system, it is effective that we specify a directory as TMPDIR in the same file system, isn't it?
Thanks
tachibana
Quoted 7 lines
Quoted 4 lines
On the other hand, I'm considering the enhancement suggested by Hatayama-san now.
His idea looks interesting if it works. Thanks.
Quoted 7 lines
Cheers,
Don_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec