Talk about linux Performance Tuning 12: Red Hat optimization strategy Tuned

Source: Internet
Author: User

Talking about linux Performance Tuning 12: Red Hat optimization strategy Tuned talking about linux Performance Tuning 11: Memory Allocation Management http://www.bkjia.com/ OS /201307/228761.html Red Hat launched a dynamic tuning solution, you can use different tuning schemes in different time periods. Because it exists as a service process, you can easily combine it with crontab! Tuned is a daemon that monitors and collects usage data of various system components. You can use the information to dynamically adjust system settings as needed. It can respond to changes in CPU and network usage and adjust settings to Improve the Performance of active devices or reduce the power consumption of inactive devices. The tool ktune along with the tuned-adm tool provides a large number of pre-configured adjustment analyses to improve performance and reduce energy consumption in a large number of specific use cases. Edit these configurations or create new configurations to generate a customized performance solution. Install: yum install tuned-y start:/etc/init. d/tuned start/etc/init. d/ktune start: Check the system's optimization solution for different application scenarios [root @ localhost Desktop] # tuned-adm listAvailable profiles: -default-enterprise-storage-server-powersave-throughput-performance-desktop-powersave-laptop-ac-powersave-latency-performance-laptop-battery-powersave-spindown-diskCurrent active profile: default uses a profile [root @ localhost Desktop] # tuned- Adm profile server-powersaveStopping tuned: [OK] Switching to profile 'server-powersave' Applying ktune sysctl settings:/etc/ktune. d/tunedadm. conf: [OK] Calling '/etc/ktune. d/tunedadm. sh start': [OK] Applying sysctl settings from/etc/sysctl. confStarting tuned: [OK] description of some profiles: default power-saving configuration. This is the most basic node configuration. It only enables the disk and CPU plug-in. Note: Unlike disabling tuned-adm, disabling this program will disable both tuned and ktune. Latency-performance typical server configuration for latency performance debugging. It disables the tuned and ktune energy saving mechanisms. Change the cpuspeed mode to performance. Change the I/O escalation program of each device to deadline. Set cpu_dma_latency to 0 for the power management quality of the service. Throughput-performance is used for server-side writes with typical throughput performance adjustments. If the system does not have enterprise-level storage, we recommend that you use this side. It is the same as latency-performance. sched_min_granularity_ns (minimum time interval used by the Scheduler) is set to 10 milliseconds. sched_wakeup_granularity_ns (scheduling program wake-up interval) is set to 15 milliseconds. Set vm. dirty_ratio (Virtual Machine dirty data ratio) to 40%, and enable transparent huge pages. Enterprise-storage recommends that you use this side for enterprise-level server configurations, including battery backup control program cache protection and disk cache management. It is similar to the throughput-performance configuration, but the file system must be remounted with barrier = 0. Virtual-guest recommends that you use this write side in the most enterprise-level server configuration, including battery backup control program cache protection and disk cache management. Similar to throughput-performance, it only sets the readahead value to 4x, and does not use the barrier = 0 to remount the root/boot file system. Based on the enterprise-storage configuration, virtual-host can also reduce replaceable virtual memory and enable more collection dirty page writes. You can find this configuration in Red Hat Enterprise Linux 6.3 and later versions, and we recommend using this configuration in virtual hosts, including KVM and Red Hat Enterprise Linux virtualization hosts. Configuration File:/etc/tune-profiles/different profiles exist in directory form! Make optimization solutions suitable for your application scenarios: cd/etc/tune-profiles; cp-r enterprise-storage/my-server; cd my-server/modify the response configuration file, add optimization parameters

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.