Linux Kernel fine-tuning experience

Source: Internet
Author: User
Linux Kernel fine-tuning experience-general Linux technology-Linux programming and kernel information. See the following for details. Because it is Slackware, we take the 2.4 kernel as an example.

1. The cursor in the text console:
Linux uses a blinking cursor by default. Some friends may not get used to it (I miss SOFTCURSOR in BSD ). Although the Documentation/VGA-softcursor.txt provides a way to change in shell, for example,
We can use echo-e '\ 033 [? 81; 0; 112c 'But I personally don't think it is so uncomfortable. It is best not to flash when the kernel is started.

You only need to change the default value of CUR_DEFAULT in include/linux/console_struct.h to 0x7051. (This value is available for testing on my machine)
# Define CUR_DEFAULT 0x7051

2. Speaker tone:
The default value is defined in drivers/char/console. c. It can be changed as per your preferences. For example:
# Define DEFAULT_BELL_PITCH 550
# Define DEFAULT_BELL_DURATION 100

3. No shutdown problem:
Sometimes, after re-compiling the kernel, it is found that even if APM and ACPI are selected during Kernel configuration, the halt command cannot be shut down (but the hard disk is switched off ). Pay attention to the local APIC option. If your motherboard does not support local APIC, you must turn it off. Additionally, the SMP option will automatically enable local APIC. If SMP is selected, the local APIC option does not appear. You must disable SMP before you can see it.

The local APIC online help mentioned that the server cannot be shut down, but the configuration in the linux official package uses SMP by default. The Slackware kernel does not use local APIC, so there is no such problem. If you compile the kernel, you can consider this cause.

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.