Changing a built-in kernel module parameter at booting time?

The name of the pictureThe name of the pictureThe name of the pictureClash 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.










share|improve this question



























    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.










    share|improve this question

























      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.










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 19 at 13:52









      Goro

      6,16652762




      6,16652762










      asked Sep 19 at 13:49









      tjpereira

      262




      262




















          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.






          share|improve this answer




















          • Also need to call 'sudo update-grub' for the change to stick.
            – Dave
            Sep 28 at 17:11










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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.






          share|improve this answer




















          • Also need to call 'sudo update-grub' for the change to stick.
            – Dave
            Sep 28 at 17:11














          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.






          share|improve this answer




















          • Also need to call 'sudo update-grub' for the change to stick.
            – Dave
            Sep 28 at 17:11












          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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
















          • 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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Christian Cage

          How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?