Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

metrics: launch times: update end check for new kernel dmesg #1044

Merged
merged 1 commit into from
Jan 10, 2019

Conversation

grahamwhaley
Copy link
Contributor

The kernel dmesg output has changed around the 'Freeing kernel memory',
which we search for to try and identify the 'end of kernel' boot time.
Update the search expression we use to find the last instance of these
lines - which was as easy as trimming the 'memory' word from the end
of the expression, which now works for both older and newer kernel
demsg outputs.

As an example of how the outputs changed, here is a grep of two logs
(taken from bare metal hosts btw, not Kata Container boots):

$ grep "Freeing unused kernel" *log
newlog:[ 2.243048] Freeing unused kernel image memory: 2180K
newlog:[ 2.248191] Freeing unused kernel image memory: 2012K
newlog:[ 2.248337] Freeing unused kernel image memory: 120K
oldlog:[ 2.462519] Freeing unused kernel memory: 1528K
oldlog:[ 2.483732] Freeing unused kernel memory: 1664K
oldlog:[ 2.484299] Freeing unused kernel memory: 92K

Fixes: #1036

Signed-off-by: Graham Whaley graham.whaley@intel.com

The kernel dmesg output has changed around the 'Freeing kernel memory',
which we search for to try and identify the 'end of kernel' boot time.
Update the search expression we use to find the last instance of these
lines - which was as easy as trimming the 'memory' word from the end
of the expression, which now works for both older and newer kernel
demsg outputs.

As an example of how the outputs changed, here is a grep of two logs
(taken from bare metal hosts btw, not Kata Container boots):

$ grep "Freeing unused kernel" *log
newlog:[    2.243048] Freeing unused kernel image memory: 2180K
newlog:[    2.248191] Freeing unused kernel image memory: 2012K
newlog:[    2.248337] Freeing unused kernel image memory: 120K
oldlog:[    2.462519] Freeing unused kernel memory: 1528K
oldlog:[    2.483732] Freeing unused kernel memory: 1664K
oldlog:[    2.484299] Freeing unused kernel memory: 92K

Fixes: kata-containers#1036

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
@grahamwhaley
Copy link
Contributor Author

@chavafg @sboeuf @egernst - this should enable the boot time test to work with both old and newer kernel dmesg outputs.

@jodh-intel
Copy link
Contributor

jodh-intel commented Jan 10, 2019

lgtm!

/test

Approved with PullApprove

Copy link

@sboeuf sboeuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @grahamwhaley !

Copy link

@devimc devimc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chavafg
Copy link
Contributor

chavafg commented Jan 10, 2019

lgtm

Approved with PullApprove

@sboeuf
Copy link

sboeuf commented Jan 10, 2019

we have enough LGTM, and travis is only failing on macOS, let's merge!

@sboeuf sboeuf merged commit 1a588ff into kata-containers:master Jan 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants