V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
aligo
V2EX  ›  Linux

给fedora桌面性能打鸡血

  •  
  •   aligo ·
    aligo · Nov 21, 2010 · 4667 views
    This topic created in 5645 days ago, the information mentioned may be changed or developed.
    早上在riku的blog上看到:http://wowubuntu.com/kernel-patch.html

    下面是fedora的使用方法,在fedora13 x86_64上,性能改进相当明显
    (有一定风险,请慎重使用)

    chkconfig --list cgconfig
    如果没看到cgconfig请先yum install libcgroup
    在以root用户执行
    service cgconfig start
    成功之后设为自动启动
    chkconfig --level 2345 cgconfig on

    然后
    vi /etc/rc.local
    加入

    mkdir -m 0777 /cgroup/cpu/user
    echo "/usr/local/sbin/cgroup_clean" > /cgroup/cpu/release_agent

    创建/usr/local/sbin/cgroup_clean
    内容为

    #!/bin/sh
    rmdir /cgroup/cpu/user/$*

    执行权限
    chmod +x /usr/local/sbin/cgroup_clean

    exit回到用户
    vi ~/.bashrc

    加入

    if [ "$PS1" ] ; then
    mkdir -m 0700 /cgroup/cpu/user/$$
    echo $$ > /cgroup/cpu/user/$$/tasks
    echo "1" > /cgroup/cpu/user/$$/notify_on_release
    fi

    最后
    sudo sh /etc/rc.local
    之后重启
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1106 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:01 · PVG 02:01 · LAX 11:01 · JFK 14:01
    ♥ Do have faith in what you're doing.