How to pass parameters to the kernel under solaris

Source: Internet
Author: User
A dynamic method for passing parameters to the kernel under solaris. The method is different from that of the solaris system. On solaris, the transfer method is to modify/etc/system, but not on linux. My system is a Ubuntu system, such as modifying the zfs kernel module... a dynamic method for passing parameters to the kernel under solaris. The method is different from that of the solaris system. On solaris, the transfer method is to modify/etc/system, but not on linux. My system is a Ubuntu system. for example, to modify parameters of the zfs kernel module, $ echo 64>/sys/module/zfs/parameters/zvol_threads can change the number of zvol threads to 64. But first, these are all in the sys File System. Therefore, you must first obtain the write permission chmod + w/sys/module/zfs/parameters/zvol_threads. The implementation method is as follows: for example, in A. c file, add unsigned long f = 0;... to the end of the file and add the following two lines. Module_param (f, ulong, 0444); MODULE_PARM_DESC (f, "the kernel module test f parameter ");
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.