Skip to content

Instantly share code, notes, and snippets.

@paulmooring
Created February 26, 2013 15:46
Show Gist options
  • Save paulmooring/5039460 to your computer and use it in GitHub Desktop.
Save paulmooring/5039460 to your computer and use it in GitHub Desktop.
knife memory usage
[pmooring@jenkins ~]$ valgrind --tool=massif --depth=1 --trace-children=yes knife -v && ms_print massif.out*
==16710== Massif, a heap profiler
==16710== Copyright (C) 2003-2010, and GNU GPL'd, by Nicholas Nethercote
==16710== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==16710== Command: /usr/bin/knife -v
==16710==
Chef: 11.2.0
==16710==
--------------------------------------------------------------------------------
Command: /usr/bin/knife -v
Massif arguments: --depth=1
ms_print arguments: massif.out.16710
--------------------------------------------------------------------------------
MB
21.14^ ::
| #:
| #: :
| #: :::
| @: ::#: : :
| @@ @@: : #: : :
| @ ::@: ::@@::: #: : :
| :: @@ :: @::: @@::: #: : :
| @ @: : @@ :: @::: @@::: #: : :
| @:: @: :::@@ ::: @::: @@::: #: : :
| @@@: @: :: @@ ::: @::: @@::: #: : :
| :@ @: ::@: :: @@ ::: @::: @@::: #: : :
| @@@:@ @: : @: :: @@ ::: @::: @@::: #: : :
| @:::::@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
| :: :@: : :@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
| : ::@: : :@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
| :::@ ::@: ::@: : :@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
| @@:: @::::::::: @: ::@: : :@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
| :@ :: @:: :: ::: @: ::@: : :@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
| :@ :: @:: :: ::: @: ::@: : :@@ :@ @: : @: :: @@ ::: @::: @@::: #: : :
0 +----------------------------------------------------------------------->Gi
0 1.076
Number of snapshots: 51
Detailed snapshots: [2, 5, 13, 17, 21, 22, 24, 25, 28, 32, 33, 37, 41, 42, 46 (peak)]
[pmooring@jenkins ~]$ time knife status
WARNING: No knife configuration file found
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable
real 0m1.321s
user 0m1.127s
sys 0m0.081s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment