Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #203092

Re: Throttle dev.raid.speed_limit_max to 1000 during preseed for package installs

From Gabriel Evanoff <gevanoff@pandora.com>
Newsgroups linux.debian.user
Subject Re: Throttle dev.raid.speed_limit_max to 1000 during preseed for package installs
Date 2018-12-07 02:10 +0100
Message-ID <x2cOt-5CE-9@gated-at.bofh.it> (permalink)
References <x2cOt-5CE-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I wanted to follow up on this post for anyone who might be interested in a workaround for Bug#838503 (also mentioned in the bug thread here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838503 -- thanks to Steve McIntyre!).



The key here is to use "partman/early_command" to load the md_mod kernel module and then set the value in /proc/sys/dev/raid/speed_limit_max once it actually exists.

Using "partman/early_command" appears to be the only way to feed arbitrary commands into preseed around the time of the disk partitioning, but before it is far too late to be of any use performance-wise (eg as with "preseed/late_command"). There is no "partman/late_command", sadly, which would make this easier. When "partman/early_command" runs, the md_mod kernel module has not yet been loaded, so that needs to be done first. Just add the following to your preseed configuration:



d-i partman/early_command string modprobe md_mod ; echo 1000 > /proc/sys/dev/raid/speed_limit_max



This sets the raid sync for the duration of the preseed process.

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

Re: Throttle dev.raid.speed_limit_max to 1000 during preseed for  package installs Gabriel Evanoff <gevanoff@pandora.com> - 2018-12-07 02:10 +0100

csiph-web