الفلاتر
طريقة البحث
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • "كلمتان" تجد العبارة بالضبط.
  • --name أو -x تجد خيارًا.
  • #كلمة تبحث داخل الأوامر فقط.
  • @grep تجد الدروس والمعامل التي تستخدم grep.
  • الفلاتر: cat:network · in:labs · level:rhcsa · ch:8 · root:yes. ضع ! قبل كلمة لاستبعادها. OR بين الكلمات تعني إحداها.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث

tuned-adm

Choose and check the tuned performance profile (a set of kernel, CPU, disk and power settings).

المستوى
امتحان RHCSA
المجموعة
العمليات والمهام
يحتاج root
للتغييرات
الحزمة
tuned

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

ماذا يفعل

The tuned service applies a profile: many settings for one type of system, like a VM, a busy server or a laptop. tuned-adm lists the profiles, shows the active and the recommended one, and switches profiles.

Profiles are in /usr/lib/tuned/ (from packages) and /etc/tuned/ (your own; a profile can include= another and change a few values).

طريقة الكتابة

tuned-adm list | active | recommend | off | verify | profile_mode | auto_profile
tuned-adm profile PROFILE...
tuned-adm profile_info [PROFILE]

الأجزاء الرئيسية

list
All available profiles and the active one.
active
The active profile.
recommend
The profile tuned suggests for this system.
profile NAME...
Switch to a profile (more names = merged).
profile_info [NAME]
Description of a profile.
off
Stop tuning (settings go back).
verify
Check that the profile settings are really applied.
auto_profile
Switch to the recommended profile and automatic mode.
profile_mode
Show if the profile was set by hand or automatically.

الخيارات 7

الأكثر استخدامًا

-i, --ignore-missing
With verify: ignore settings the system does not support.
-h, --help
Show help.
-v, --version
Show the version.
-d, --debug
Debug output.
-a, --async
Do not wait for the change to finish.
-t, --timeout SECONDS
Timeout for the change.
-l, --loglevel LEVEL
Log level to show.

أمثلة 10

$ مستخدم عادي# بصلاحية root (أو مع sudo)

  1. 1Install and start tuned

    dnf install -y tuned
    systemctl enable --now tuned

    Often installed already.

  2. 2Which profile is active?

    tuned-adm active
    Current active profile: virtual-guest

    RHEL VMs get virtual-guest.

  3. 3Recommended profile

    tuned-adm recommend
    virtual-guest

    Based on the hardware and virtualization.

  4. 4Switch profile

    tuned-adm profile throughput-performance

    For a busy physical server.

  5. 5List all profiles

    tuned-adm list

    Shows names with a short description.

  6. 6Learn about a profile

    tuned-adm profile_info powersave

    What it changes.

  7. 7Check that the settings are applied

    tuned-adm verify
    Verification succeeded, current system settings match the preset profile.

    If not, see /var/log/tuned/tuned.log.

  8. 8Back to automatic mode

    tuned-adm auto_profile

    tuned picks the recommended profile.

  9. 9Make your own profile

    mkdir /etc/tuned/myweb
    printf '[main]\ninclude=throughput-performance\n\n[sysctl]\nvm.swappiness=10\n' > /etc/tuned/myweb/tuned.conf
    tuned-adm profile myweb

    Your changes on top of a Red Hat profile.

  10. 10Turn tuning off

    tuned-adm off

    For tests: compare with and without.

الملفات

/usr/lib/tuned/
Profiles from packages.
/etc/tuned/
Your own profiles; active_profile and profile_mode.
/var/log/tuned/tuned.log
Log.

رموز الخروج

0Done.
1Error.