Category: Ubuntu

Linux performance tidbits

Netflix originated: Linux Performance Analysis in 60,000 Milliseconds Netflix at Velocity 2015: Linux Performance Tools Brendan Gregg’s Linux Performance Ubuntu: Disk performance Redhat: Red Hat Enterprise Linux 6¬†Performance Tuning Guide Red Hat Enterprise Linux 7 Performance Tuning Guide

Software inventory with facter

Getting hash of installed software with facter: #!/usr/bin/ruby # # File: /your/puppetdir/modules/yourmodule/lib/facter/sw_inventory.rb # # Description: Report versions of installed software # require ‘facter’ Facter.add(:sw_inv) do setcode do # OSX if Facter.value(:osfamily) == ‘Darwin’ require ‘facter/util/macosx’ sw_inv = {} # Lists…