Changing a built-in kernel module parameter at booting time?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am trying to change a parameter, called "sgl_threshold", in the nvme driver when booting into Ubuntu 16.04 running linux kernel v4.18-generic.
It appears the nvme driver is actually built-in as it is not found using lsmod and is being used by a device, and also is found in /sys/module/nvme/
(parameters are found in /sys/module/nvme/parameters
).
My question is how can I change this built-in module's parameter at runtime, or permanently change this parameter whenever the nvme driver is loaded?
I have tried creating a file in modprobe.d with nvme sgl_threshold=1
, and also editing GRUB_CMDLINE_LINUX_DEFAULT
in the default grub file.
kernel kernel-modules nvme
add a comment |Â
up vote
1
down vote
favorite
I am trying to change a parameter, called "sgl_threshold", in the nvme driver when booting into Ubuntu 16.04 running linux kernel v4.18-generic.
It appears the nvme driver is actually built-in as it is not found using lsmod and is being used by a device, and also is found in /sys/module/nvme/
(parameters are found in /sys/module/nvme/parameters
).
My question is how can I change this built-in module's parameter at runtime, or permanently change this parameter whenever the nvme driver is loaded?
I have tried creating a file in modprobe.d with nvme sgl_threshold=1
, and also editing GRUB_CMDLINE_LINUX_DEFAULT
in the default grub file.
kernel kernel-modules nvme
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to change a parameter, called "sgl_threshold", in the nvme driver when booting into Ubuntu 16.04 running linux kernel v4.18-generic.
It appears the nvme driver is actually built-in as it is not found using lsmod and is being used by a device, and also is found in /sys/module/nvme/
(parameters are found in /sys/module/nvme/parameters
).
My question is how can I change this built-in module's parameter at runtime, or permanently change this parameter whenever the nvme driver is loaded?
I have tried creating a file in modprobe.d with nvme sgl_threshold=1
, and also editing GRUB_CMDLINE_LINUX_DEFAULT
in the default grub file.
kernel kernel-modules nvme
I am trying to change a parameter, called "sgl_threshold", in the nvme driver when booting into Ubuntu 16.04 running linux kernel v4.18-generic.
It appears the nvme driver is actually built-in as it is not found using lsmod and is being used by a device, and also is found in /sys/module/nvme/
(parameters are found in /sys/module/nvme/parameters
).
My question is how can I change this built-in module's parameter at runtime, or permanently change this parameter whenever the nvme driver is loaded?
I have tried creating a file in modprobe.d with nvme sgl_threshold=1
, and also editing GRUB_CMDLINE_LINUX_DEFAULT
in the default grub file.
kernel kernel-modules nvme
kernel kernel-modules nvme
edited Sep 19 at 13:52
Goro
6,16652762
6,16652762
asked Sep 19 at 13:49
tjpereira
262
262
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
Ended up figuring this out...
Edit the defualt grub file (/etc/default/grub) at the line beginning with GRUB_CMDLINE_LINUX_DEFAULT and append nvme.sgl_threshold=1
within the quotation marks.
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Ended up figuring this out...
Edit the defualt grub file (/etc/default/grub) at the line beginning with GRUB_CMDLINE_LINUX_DEFAULT and append nvme.sgl_threshold=1
within the quotation marks.
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
add a comment |Â
up vote
2
down vote
Ended up figuring this out...
Edit the defualt grub file (/etc/default/grub) at the line beginning with GRUB_CMDLINE_LINUX_DEFAULT and append nvme.sgl_threshold=1
within the quotation marks.
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Ended up figuring this out...
Edit the defualt grub file (/etc/default/grub) at the line beginning with GRUB_CMDLINE_LINUX_DEFAULT and append nvme.sgl_threshold=1
within the quotation marks.
Ended up figuring this out...
Edit the defualt grub file (/etc/default/grub) at the line beginning with GRUB_CMDLINE_LINUX_DEFAULT and append nvme.sgl_threshold=1
within the quotation marks.
answered Sep 19 at 14:12
tjpereira
262
262
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
add a comment |Â
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
Also need to call 'sudo update-grub' for the change to stick.
â Dave
Sep 28 at 17:11
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470024%2fchanging-a-built-in-kernel-module-parameter-at-booting-time%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password