Want more timely Centmin Mod News Updates?
Become a Member

CentOS 7.x Release Announcement for CentOS-7/x86_64

Discussion in 'CentOS, Redhat & Oracle Linux News' started by eva2000, Jul 8, 2014.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    42,375
    9,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,745
    Local Time:
    4:10 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    see 2 new processes running post CentOS 7 install for polkitd and tuned have to read up about them :)

    edit: info on tuned http://docs.fedoraproject.org/en-US/Fedora/20/html/Power_Management_Guide/tuned.html

    Code:
    ps aufx | egrep '(polkit|tuned)' | grep -v grep
    root       602  0.0  0.9 549976 18088 ?        Ssl  11:22   0:00 /usr/bin/python -Es /usr/sbin/tuned -l -P
    polkitd    755  0.0  0.6 514212 12216 ?        Ssl  11:22   0:00 /usr/lib/polkit-1/polkitd --no-debug
    If tuned daemon is stopped, save ~20MB of memory

    Code:
    free -m
                 total       used       free     shared    buffers     cached
    Mem:          1841        228       1612         24          0         26
    -/+ buffers/cache:        201       1639
    Swap:         1535          0       1535
    
    Code:
    systemctl stop tuned
    
    Code:
    free -m            
                 total       used       free     shared    buffers     cached
    Mem:          1841        217       1623         24          0         28
    -/+ buffers/cache:        188       1652
    Swap:         1535          0       1535
    
    /etc/tuned.conf doesn't exist

    Code:
    cat /etc/tuned.conf
    cat: /etc/tuned.conf: No such file or directory
    some conf files from tuned package

    Code:
    rpm -ql tuned | grep .conf$
    /etc/dbus-1/system.d/com.redhat.tuned.conf
    /etc/tmpfiles.d/tuned.conf
    /etc/tuned/tuned-main.conf
    /usr/lib/tuned/balanced/tuned.conf
    /usr/lib/tuned/desktop/tuned.conf
    /usr/lib/tuned/latency-performance/tuned.conf
    /usr/lib/tuned/network-latency/tuned.conf
    /usr/lib/tuned/network-throughput/tuned.conf
    /usr/lib/tuned/powersave/tuned.conf
    /usr/lib/tuned/recommend.conf
    /usr/lib/tuned/sap/tuned.conf
    /usr/lib/tuned/throughput-performance/tuned.conf
    /usr/lib/tuned/virtual-guest/tuned.conf
    /usr/lib/tuned/virtual-host/tuned.conf
    wonder what's in these files :)

    Code:
    cat /etc/dbus-1/system.d/com.redhat.tuned.conf
    
    <?xml version="1.0"?>
    <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
      "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
    
    <!--
            This file is part of tuned daemon.
    -->
    
    <busconfig>
            <policy context="default">
                    <deny send_destination="com.redhat.tuned" />
                    <allow receive_sender="com.redhat.tuned" />
    
                    <allow send_destination="com.redhat.tuned" send_interface="org.freedesktop.DBus.Introspectable" />
    
                    <allow send_destination="com.redhat.tuned" send_interface="com.redhat.tuned.control" send_member="active_profile" />
                    <allow send_destination="com.redhat.tuned" send_interface="com.redhat.tuned.control" send_member="status" />
            </policy>
    
            <policy user="root">
                    <allow own="com.redhat.tuned" />
                    <allow send_destination="com.redhat.tuned" />
            </policy>
    
            <policy at_console="true">
                    <allow send_destination="com.redhat.tuned" />
            </policy>
    </busconfig>
    
    Code:
    cat /etc/tmpfiles.d/tuned.conf
    
    # tuned runtime directory
    d /run/tuned 0755 root root -
    
    Code:
    cat /etc/tuned/tuned-main.conf
    
    # Global tuned configuration file.
    
    # Dynamicaly tune devices, if disabled only static tuning will be used.
    dynamic_tuning = 0
    
    # Update interval for dynamic tunings (in seconds).
    update_interval = 10
    
    Code:
    cat /usr/lib/tuned/balanced/tuned.conf
    
    #
    # tuned configuration
    #
    
    [cpu]
    governor=ondemand
    energy_perf_bias=normal
    
    [audio]
    timeout=10
    
    [video]
    radeon_powersave=auto
    
    [disk]
    # Comma separated list of devices, all devices if commented out.
    # devices=sda
    
    Code:
    cat /usr/lib/tuned/desktop/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=balanced
    
    [sysctl]
    kernel.sched_autogroup_enabled=1
    
    Code:
    cat /usr/lib/tuned/latency-performance/tuned.conf
    
    #
    # tuned configuration
    #
    
    [cpu]
    force_latency=1
    governor=performance
    energy_perf_bias=performance
    min_perf_pct=100
    
    [sysctl]
    # ktune sysctl settings for rhel6 servers, maximizing i/o throughput
    #
    # Minimal preemption granularity for CPU-bound tasks:
    # (default: 1 msec#  (1 + ilog(ncpus)), units: nanoseconds)
    kernel.sched_min_granularity_ns=10000000
    
    # If a workload mostly uses anonymous memory and it hits this limit, the entire
    # working set is buffered for I/O, and any more write buffering would require
    # swapping, so it's time to throttle writes until I/O can catch up.  Workloads
    # that mostly use file mappings may be able to use even higher values.
    #
    # The generator of dirty data starts writeback at this percentage (system default
    # is 20%)
    vm.dirty_ratio=10
    
    # Start background writeback (via writeback threads) at this percentage (system
    # default is 10%)
    vm.dirty_background_ratio=3
    
    # The swappiness parameter controls the tendency of the kernel to move
    # processes out of physical memory and onto the swap disk.
    # 0 tells the kernel to avoid swapping processes out of physical memory
    # for as long as possible
    # 100 tells the kernel to aggressively swap processes out of physical memory
    # and move them to swap cache
    vm.swappiness=10
    
    # The total time the scheduler will consider a migrated process
    # "cache hot" and thus less likely to be re-migrated
    # (system default is 500000, i.e. 0.5 ms)
    kernel.sched_migration_cost_ns=5000000
    
    Code:
    cat /usr/lib/tuned/network-latency/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=latency-performance
    
    [vm]
    transparent_hugepages=never
    
    [sysctl]
    net.core.busy_read=50
    net.core.busy_poll=50
    net.ipv4.tcp_fastopen=3
    kernel.numa_balancing=0
    
    Code:
    cat /usr/lib/tuned/network-throughput/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=throughput-performance
    
    [sysctl]
    # Increase kernel buffer size maximums.  Currently this seems only necessary at 40Gb speeds.
    #
    # The buffer tuning values below do not account for any potential hugepage allocation.
    # Ensure that you do not oversubscribe system memory.
    net.ipv4.tcp_rmem="4096 87380 16777216"
    net.ipv4.tcp_wmem="4096 16384 16777216"
    net.ipv4.udp_mem="3145728 4194304 16777216"
    
    Code:
    cat /usr/lib/tuned/powersave/tuned.conf
    
    #
    # tuned configuration
    #
    
    [cpu]
    governor=ondemand
    energy_perf_bias=powersave
    
    [eeepc_she]
    
    [vm]
    
    [audio]
    timeout=10
    
    [video]
    radeon_powersave=auto
    
    [disk]
    # Comma separated list of devices, all devices if commented out.
    # devices=sda
    alpm=min_power
    
    [net]
    # Comma separated list of devices, all devices if commented out.
    # devices=eth0
    
    [sysctl]
    vm.laptop_mode=5
    vm.dirty_writeback_centisecs=1500
    kernel.nmi_watchdog=0
    
    [script]
    script=script.sh
    
    Code:
    cat /usr/lib/tuned/recommend.conf
    
    # Tuned rules for recommend_profile.
    #
    # The 'virt' RE matches virt-what output.
    # The 'system' RE matches /etc/system-release-cpe.
    # Both 'virt' and 'system' needs to match for profile to match.
    # If 'virt' or 'system' is not specified, it matches for every string.
    # If 'virt' or 'system' is empty, i.e. 'virt=', it matches only empty string (alias for '^$').
    # If several profiles matched, the first match is taken.
    
    [throughput-performance]
    virt=
    system=.*(computenode|server).*
    
    [virtual-guest]
    virt=.+
    
    [balanced]
    
    Code:
    cat /usr/lib/tuned/sap/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=throughput-performance
    
    [sysctl]
    kernel.sem = 1250 256000 100 8192
    vm.max_map_count = 1000000
    
    [script]
    script=script.sh
    
    Code:
    cat /usr/lib/tuned/throughput-performance/tuned.conf
    
    #
    # tuned configuration
    #
    
    [cpu]
    governor=performance
    energy_perf_bias=performance
    min_perf_pct=100
    
    [vm]
    transparent_hugepages=always
    
    [disk]
    readahead=4096
    
    [sysctl]
    # ktune sysctl settings for rhel6 servers, maximizing i/o throughput
    #
    # Minimal preemption granularity for CPU-bound tasks:
    # (default: 1 msec#  (1 + ilog(ncpus)), units: nanoseconds)
    kernel.sched_min_granularity_ns = 10000000
    
    # SCHED_OTHER wake-up granularity.
    # (default: 1 msec#  (1 + ilog(ncpus)), units: nanoseconds)
    #
    # This option delays the preemption effects of decoupled workloads
    # and reduces their over-scheduling. Synchronous workloads will still
    # have immediate wakeup/sleep latencies.
    kernel.sched_wakeup_granularity_ns = 15000000
    
    # If a workload mostly uses anonymous memory and it hits this limit, the entire
    # working set is buffered for I/O, and any more write buffering would require
    # swapping, so it's time to throttle writes until I/O can catch up.  Workloads
    # that mostly use file mappings may be able to use even higher values.
    #
    # The generator of dirty data starts writeback at this percentage (system default
    # is 20%)
    vm.dirty_ratio = 40
    
    # Start background writeback (via writeback threads) at this percentage (system
    # default is 10%)
    vm.dirty_background_ratio = 10
    
    # PID allocation wrap value.  When the kernel's next PID value
    # reaches this value, it wraps back to a minimum PID value.
    # PIDs of value pid_max or larger are not allocated.
    #
    # A suggested value for pid_max is 1024 * <# of cpu cores/threads in system>
    # e.g., a box with 32 cpus, the default of 32768 is reasonable, for 64 cpus,
    # 65536, for 4096 cpus, 4194304 (which is the upper limit possible).
    #kernel.pid_max = 65536
    
    # The swappiness parameter controls the tendency of the kernel to move
    # processes out of physical memory and onto the swap disk.
    # 0 tells the kernel to avoid swapping processes out of physical memory
    # for as long as possible
    # 100 tells the kernel to aggressively swap processes out of physical memory
    # and move them to swap cache
    vm.swappiness=10
    
    Code:
    cat /usr/lib/tuned/virtual-guest/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=throughput-performance
    
    [sysctl]
    # If a workload mostly uses anonymous memory and it hits this limit, the entire
    # working set is buffered for I/O, and any more write buffering would require
    # swapping, so it's time to throttle writes until I/O can catch up.  Workloads
    # that mostly use file mappings may be able to use even higher values.
    #
    # The generator of dirty data starts writeback at this percentage (system default
    # is 20%)
    vm.dirty_ratio = 30
    
    # Filesystem I/O is usually much more efficient than swapping, so try to keep
    # swapping low.  It's usually safe to go even lower than this on systems with
    # server-grade storage.
    vm.swappiness = 30
    
    Code:
    cat /usr/lib/tuned/virtual-host/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=throughput-performance
    
    [sysctl]
    # Start background writeback (via writeback threads) at this percentage (system
    # default is 10%)
    vm.dirty_background_ratio = 5
    
    # The total time the scheduler will consider a migrated process
    # "cache hot" and thus less likely to be re-migrated
    # (system default is 500000, i.e. 0.5 ms)
    kernel.sched_migration_cost_ns = 5000000
    
    Provided Profiles
    http://docs.fedoraproject.org/en-US/Fedora/20/html/Power_Management_Guide/sect-tuned-profiles.html
     
    Last edited: Jul 13, 2014
  2. eva2000

    eva2000 Administrator Staff Member

    42,375
    9,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,745
    Local Time:
    4:10 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    From http://docs.fedoraproject.org/en-US..._Guide/sect-tuned-installation-and-usage.html

    On my virtualbox install as well as my KVM CentOS 7 netinstall VPS the active tuned profile is virtual-guest

    So looks like for Virtualbox and KVM VPS they use a combination of 2 tuned profiles for virtual-guest and throughput-performance

    Code:
    cat /usr/lib/tuned/virtual-guest/tuned.conf
    
    #
    # tuned configuration
    #
    
    [main]
    include=throughput-performance
    
    [sysctl]
    # If a workload mostly uses anonymous memory and it hits this limit, the entire
    # working set is buffered for I/O, and any more write buffering would require
    # swapping, so it's time to throttle writes until I/O can catch up.  Workloads
    # that mostly use file mappings may be able to use even higher values.
    #
    # The generator of dirty data starts writeback at this percentage (system default
    # is 20%)
    vm.dirty_ratio = 30
    
    # Filesystem I/O is usually much more efficient than swapping, so try to keep
    # swapping low.  It's usually safe to go even lower than this on systems with
    # server-grade storage.
    vm.swappiness = 30
    
    Code:
    cat /usr/lib/tuned/throughput-performance/tuned.conf
    
    #
    # tuned configuration
    #
    
    [cpu]
    governor=performance
    energy_perf_bias=performance
    min_perf_pct=100
    
    [vm]
    transparent_hugepages=always
    
    [disk]
    readahead=4096
    
    [sysctl]
    # ktune sysctl settings for rhel6 servers, maximizing i/o throughput
    #
    # Minimal preemption granularity for CPU-bound tasks:
    # (default: 1 msec#  (1 + ilog(ncpus)), units: nanoseconds)
    kernel.sched_min_granularity_ns = 10000000
    
    # SCHED_OTHER wake-up granularity.
    # (default: 1 msec#  (1 + ilog(ncpus)), units: nanoseconds)
    #
    # This option delays the preemption effects of decoupled workloads
    # and reduces their over-scheduling. Synchronous workloads will still
    # have immediate wakeup/sleep latencies.
    kernel.sched_wakeup_granularity_ns = 15000000
    
    # If a workload mostly uses anonymous memory and it hits this limit, the entire
    # working set is buffered for I/O, and any more write buffering would require
    # swapping, so it's time to throttle writes until I/O can catch up.  Workloads
    # that mostly use file mappings may be able to use even higher values.
    #
    # The generator of dirty data starts writeback at this percentage (system default
    # is 20%)
    vm.dirty_ratio = 40
    
    # Start background writeback (via writeback threads) at this percentage (system
    # default is 10%)
    vm.dirty_background_ratio = 10
    
    # PID allocation wrap value.  When the kernel's next PID value
    # reaches this value, it wraps back to a minimum PID value.
    # PIDs of value pid_max or larger are not allocated.
    #
    # A suggested value for pid_max is 1024 * <# of cpu cores/threads in system>
    # e.g., a box with 32 cpus, the default of 32768 is reasonable, for 64 cpus,
    # 65536, for 4096 cpus, 4194304 (which is the upper limit possible).
    #kernel.pid_max = 65536
    
    # The swappiness parameter controls the tendency of the kernel to move
    # processes out of physical memory and onto the swap disk.
    # 0 tells the kernel to avoid swapping processes out of physical memory
    # for as long as possible
    # 100 tells the kernel to aggressively swap processes out of physical memory
    # and move them to swap cache
    vm.swappiness=10
    

    Code:
    tuned-adm active
    Current active profile: virtual-guest
    
    tuned status
    Code:
    systemctl status tuned
    tuned.service - Dynamic System Tuning Daemon
       Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled)
       Active: active (running) since Sun 2014-07-13 11:22:05 UTC; 30min ago
    Main PID: 602 (tuned)
       CGroup: /system.slice/tuned.service
               +-602 /usr/bin/python -Es /usr/sbin/tuned -l -P
    
    Jul 13 11:22:05 centos7.localdomain systemd[1]: Started Dynamic System Tuning Daemon.
    
    Available tuned profiles
    Code:
    tuned-adm list
    Available profiles:
    - balanced
    - desktop
    - latency-performance
    - network-latency
    - network-throughput
    - powersave
    - sap
    - throughput-performance
    - virtual-guest
    - virtual-host
    Current active profile: virtual-guest
    
     
    Last edited: Jul 13, 2014
  3. eva2000

    eva2000 Administrator Staff Member

    42,375
    9,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,745
    Local Time:
    4:10 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Customising tuned profiles http://docs.fedoraproject.org/en-US...agement_Guide/sect-tuned-custom-profiles.html

    You can save ~20MB of memory if tuned daemon is stopped. So I suppose you can manually implement the /etc/sysctl.conf tweaks (only possible on non-OpenVZ systems) that tuned virtual-guest and throughput-performance profiles implement and save some memory usage ?

    Code:
    free -m
                 total       used       free     shared    buffers     cached
    Mem:          1841        228       1612         24          0         26
    -/+ buffers/cache:        201       1639
    Swap:         1535          0       1535
    
    Code:
    systemctl stop tuned
    
    Code:
    free -m           
                 total       used       free     shared    buffers     cached
    Mem:          1841        217       1623         24          0         28
    -/+ buffers/cache:        188       1652
    Swap:         1535          0       1535
    
     
    Last edited: Jul 13, 2014
  4. eva2000

    eva2000 Administrator Staff Member

    42,375
    9,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,745
    Local Time:
    4:10 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    CentOS 7.0 Minimal ISO image has been released now as well = CentOS-7.0-1406-x86_64-Minimal.iso comes in at 566MB :D

    Code:
    CentOS-7.0-1406-x86_64-Minimal.iso        17-Jul-2014 14:16  566M 
     
  5. palPalani

    palPalani Member

    30
    12
    8
    May 30, 2014
    Chennai, IN
    Ratings:
    +20
    Local Time:
    11:40 AM
    Nginx 1.7
    MariaDB 5.5
    Announcing CentOS Minimal Iso For CentOS 7.0.1406/x86_64
    We are pleased to announce the immediate availability of CentOS-7.0.1406 Minimal for x86_64 Architecture.

    The minimal install iso media is an alternative install to the main CentOS-7 distribution and comes with a trimmed down, preselected rpm list. However, it still runs off the standard installer, with all the regular features that one would expect from the main distribution, except the rpm selection screen has been disabled. Running an install from this media will not allow you to change the rpms selected for install.

    +++++++++++++++++++++++
    Download

    SHA256SUMs :

    CentOS-7.0-1406-x86_64-Minimal.iso:
    04e99a4f1a013b95a7ebc9a90ffa9ac64d28eb9872bc193fbd7c581ec9b6a360

    The ISO file is avilable at :

    http://isoredirect.CentOS.org/CentOS/7/isos/x86_64/

    Since the size for these files is relatively small, no torrent files are being released.

    +++++++++++++++++++++++
    NOTES:

    We have tried to test this install for most deployment roles, including VMs and physical machines. And with lvm, mdraid, iscsi and dm-multipath environments.

    These images also contain the complete recovery and rescue environment found in the main distribution.

    You should be able to use these images from CD media, DVD media, USB
    storage devices.

    We do not recommend these images be used with kickstart files written for the main CentOS distro images.

    An install will setup yum to work with the regular default CentOS 7
    repositories. Once the installed machine instace boots it should work just like a regular CentOS machine, with only the bare minimal rpms installed. All package management, networking and storage related functionality should already be in place.

    +++++++++++++++++++++++

    There is no upstream Minimal media product.

    These ISOs only contains content found within the primary CentOS-7.0.1406
    distribution. No package from outside the distribution was included and no package has been changed from whats included in the base distribution.

    We appreciate all forms of feedback about these images, including specific application inclusion requests or feature changes in future releases. The best place to provide this feedback is via the CentOS-devel mailing list ( http://lists.CentOS.org/ ) and feature requests via the issue tracker ( http://bugs.CentOS.org/ ).

    Enjoy
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    42,375
    9,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,745
    Local Time:
    4:10 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x