Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
9b45833b
Commit
9b45833b
authored
Aug 11, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stats: Account total time to restore
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
2df39a4b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
cr-restore.c
cr-restore.c
+4
-0
stats.h
include/stats.h
+1
-0
stats.proto
protobuf/stats.proto
+1
-0
stats.c
stats.c
+1
-0
No files found.
cr-restore.c
View file @
9b45833b
...
...
@@ -1389,6 +1389,8 @@ out:
return
1
;
}
timing_stop
(
TIME_RESTORE
);
pr_info
(
"Restore finished successfully. Resuming tasks.
\n
"
);
futex_set_and_wake
(
&
task_entries
->
start
,
CR_STATE_COMPLETE
);
...
...
@@ -1423,6 +1425,8 @@ int cr_restore_tasks(void)
if
(
init_stats
(
RESTORE_STATS
))
return
-
1
;
timing_start
(
TIME_RESTORE
);
if
(
cpu_init
()
<
0
)
return
-
1
;
...
...
include/stats.h
View file @
9b45833b
...
...
@@ -13,6 +13,7 @@ enum {
enum
{
TIME_FORK
,
TIME_RESTORE
,
RESTORE_TIME_NS_STATS
,
};
...
...
protobuf/stats.proto
View file @
9b45833b
...
...
@@ -15,6 +15,7 @@ message restore_stats_entry {
required
uint64
pages_skipped_cow
=
2
;
required
uint32
forking_time
=
3
;
required
uint32
restore_time
=
4
;
}
message
stats_entry
{
...
...
stats.c
View file @
9b45833b
...
...
@@ -132,6 +132,7 @@ void write_stats(int what)
rs_entry
.
pages_skipped_cow
=
atomic_get
(
&
rstats
->
counts
[
CNT_PAGES_SKIPPED_COW
]);
encode_time
(
TIME_FORK
,
&
rs_entry
.
forking_time
);
encode_time
(
TIME_RESTORE
,
&
rs_entry
.
restore_time
);
name
=
"restore"
;
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment