[chef-dev] Re: ohai: ever needed to get memory info on mac os x?


Chronological Thread 
  • From: Pat Collins < >
  • To: Graham McMillan < >
  • Cc: Chef Dev < >
  • Subject: [chef-dev] Re: ohai: ever needed to get memory info on mac os x?
  • Date: Sat, 23 Mar 2013 09:17:56 -0400

Yeah I feel like I tried that route but ended up getting unreliable numbers (figures that didn't match what was coming from Activity Monitor.)

You're right that top is slow. I'll try it with your suggestion and see if I'm remembering correctly. 

Pat

--
Patrick Collins

On Mar 22, 2013, at 4:20 PM, Graham McMillan < "> > wrote:

Although that works, I'd try to implement it using vm_stat instead. Top produces a lot of unnecessary output and it's a bit slow.

Looks like someone was able to grab some of the info you need from vm_stat:

http://vigodome.com/blog/2012/01/27/show-free-memory-on-osx/


On Fri, Mar 22, 2013 at 4:05 PM, Pat Collins < " target="_blank"> > wrote:
Now you can!

I submitted this ticket a while back, with a fix provided, and I'm eager to get it merged into Ohai:


Can anyone see anything glaring that would prevent it from getting merged in?

Cheers,
Pat

--
Patrick Collins




Archive powered by MHonArc 2.6.16.

§