[Nix-dev] how to set the prefered IO scheduler for a disk on nixos ?

Tomasz Czyż tomasz.czyz at gmail.com
Thu Nov 10 11:50:10 CET 2016


you could do something like

systemd.services.set-up-disk-io-scheduler = {
  wantedBy = ["networking.service"]; # this is just an example, you need to
find some boot service which is loaded at the beginning, you probably can
also wait for device mount or other event
  script = "set you scheduler here";
}

2016-11-10 10:25 GMT+00:00 Azul <mail at azulinho.com>:

> Hi there,
>
> Is there a way to set the IO scheduler on a specific disk?
> I need to set the 'noop' scheduler on a disk I have, but can't find a way
> on nixos to do so.
>
> wonders if I may have to use a udev rule, cron job, or if there is a way
> to execute a single command at boot, bit like rc.local.
>
> thankz
> azul
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
Tomasz Czyż
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161110/111161df/attachment.html>


More information about the nix-dev mailing list