*SOLVED* chkpnt/restore time [message #15638] |
Wed, 08 August 2007 13:07  |
working_men
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
Hi!
I wanted to test how long it takes for chkpnt/restore to complete.
Trying to determine time vs ram
1. test:
tmpfs with 350MB urandom/zero file
-->chkpnt: 81sec
-->restore: 86sec
-->dumpsize: 340MB
2. test:
C-program that allocates 660MB
-->chkpnt: 26sec
-->restore: 22sec
-->dumpsize: 660MB
3. test:
installed mysql-server (140MB)
-->chkpnt: 0.5sec
-->restore: 4sec
-->dumpsize: 30MB
My questions are:
How does openVZ generate the dump files?
or
Is there a difference between allocated/used memory?
It seems to me that it depends on which type of data is in RAM for the size of the dump and the time it takes.
Thanks alot for clearing this up for me!
thomas
[Updated on: Thu, 09 August 2007 10:06] by Moderator Report message to a moderator
|
|
|
|
|
Re: chkpnt/restore time [message #15711 is a reply to message #15661] |
Fri, 10 August 2007 08:33  |
Andrey Mirkin
Messages: 193 Registered: May 2006
|
Senior Member |
|
|
Well, in this program you allocating 20000000 memory regions. For each such memory region kernel will allocate internal structure at least 16-byte length and we need to dump this structure during checkpointing.
If you will run simple program which doing malloc one time but for big memory region then you will see that image file will be small.
Andrey Mirkin
|
|
|