Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Set IO Scheduler #943

Open
slashterix opened this issue May 9, 2014 · 0 comments
Open

Set IO Scheduler #943

slashterix opened this issue May 9, 2014 · 0 comments

Comments

@slashterix
Copy link

# Set the IO Scheduler
node['block_device'].select { |device, info| device =~ /^.d.$/ && info['size'].to_i > 0 }.each do |device, info|
  execute "scheduler-#{device}" do
    command "echo 'deadline' > /sys/block/#{device}/queue/scheduler"
    not_if "grep -F '[deadline]' /sys/block/#{device}/queue/scheduler"
  end
end

Possibly related to #642

I set my compute nodes to deadline and had a 40% reduction in load average. The instances also became much more responsive.

compute02_cpu
compute02_lavg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant