From 6c32875752daa49dcfbc95f82dc40662c5b883af Mon Sep 17 00:00:00 2001 From: cjbzl Date: Fri, 8 Nov 2024 03:46:12 +0000 Subject: [PATCH] update docs/en/docs/Administration/basic-configuration.md [IA80GG] Signed-off-by: cjbzl --- .../Administration/basic-configuration.md | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/en/docs/Administration/basic-configuration.md b/docs/en/docs/Administration/basic-configuration.md index c2a061b81..dcca30ac2 100644 --- a/docs/en/docs/Administration/basic-configuration.md +++ b/docs/en/docs/Administration/basic-configuration.md @@ -41,13 +41,13 @@ System locale settings are stored in the **/etc/locale.conf** file and can be mo To display the current locale status, run the following command: -```bash +```shell localectl status ``` Example command output: -```bash +```shell $ localectl status System Locale: LANG=zh_CN.UTF-8 VC Keymap: cn @@ -58,13 +58,13 @@ $ localectl status To display available locales, run the following command: -```bash +```shell localectl list-locales ``` You can check that by listing all Chinese locales with the following command: -```bash +```shell $ localectl list-locales | grep zh zh_CN.UTF-8 ``` @@ -73,13 +73,13 @@ zh_CN.UTF-8 To set the language environment, run the following command as the **root** user. In the command, _locale_ indicates the language type to be set. Run the **localectl list-locales** command to obtain the value range. Change the value as required. -```bash +```shell localectl set-locale LANG=locale ``` For example, if you want to use Simplified Chinese as the locale, run the following command as the **root** user: -```bash +```shell localectl set-locale LANG=zh_CN.UTF-8 ``` @@ -94,13 +94,13 @@ Keyboard layout settings are stored in the **/etc/locale.conf** file and can be To display the current keyboard layout settings, run the following command: -```bash +```shell localectl status ``` Example command output: -```bash +```shell $ localectl status System Locale: LANG=zh_CN.UTF-8 VC Keymap: cn @@ -491,6 +491,8 @@ dracut_args --omit-drivers "mdio-gpi usb_8dev et1011c rt2x00usb bcm-phy-lib mac8 ## Setting the Drive Scheduling Algorithm +This section describes how to set the drive scheduling algorithm. + ### Setting a Temporary Scheduling Policy For example, run the following command to change all I/O scheduling algorithms to **mq-deadline**. The modification becomes invalid after a reboot. @@ -504,5 +506,5 @@ echo mq-deadline > /sys/block/sd*/queue/scheduler Add **elevator=mq-deadline** to the kernel boot configuration file **grub.cfg**. The modification takes effect after a reboot. ```text -linux /vmlinuz-5.10.0-153.12.0.89.oe2203sp3.x86_64 root=/dev/mapper/openeuler-root ro resume=/dev/mapper/openeuler-swap rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap quiet crashkernel=512M elevator=mq-deadline +linux /vmlinuz-5.10.0-153.12.0.89.oe2203sp4.x86_64 root=/dev/mapper/openeuler-root ro resume=/dev/mapper/openeuler-swap rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap quiet crashkernel=512M elevator=mq-deadline ``` -- Gitee