zoukankan      html  css  js  c++  java
  • Hadoop Kernel tunning

    /etc/security/limits.conf

    @ochadoop soft nofile 102642
    @ochadoop hard nofile 102642
    @ochadoop soft nproc unlimited
    @ochadoop hard nproc unlimited
    @ochadoop soft memlock unlimited
    @ochadoop hard memlock unlimited

    /etc/sysctl.conf

    #尽可能少地让应用把内容交换到硬盘
    echo "vm.swappiness = 0" >> /etc/sysctl.conf
    #可以让应用在请求内存的时候使用交换
    echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf

    Mount options:disabling file access time

    The real problem with maintaining access time (or
    atime as it’s commonly called) is that every time a file is read, the metadata needs to be
    updated. That is, for each read, there’s also a mandatory write. This is relatively expensive at scale and can negatively impact the overall performance of Hadoop

    sample:

    LABEL=/ / ext3 noatime,nodiratime 1 1
    LABEL=/data/1 /data/1 ext3 noatime,nodiratime 1 2
    LABEL=/data/2 /data/2 ext3 noatime,nodiratime 1 2
    LABEL=/data/3 /data/3 ext3 noatime,nodiratime 1 2
    LABEL=/data/4 /data/4 ext3 noatime,nodiratime 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    LABEL=SWAP-sda2 swap swap defaults 0 0
  • 相关阅读:
    mybatis显示sql语句 log4j.properties配置文件
    Netty 4.0 demo
    Netty多线程处理机制
    crontab定时任务中文乱码问题
    linux grep、find 命令详解
    resin access.log format配置详解
    linux top命令详解
    正则表达式介绍及案例分享
    java定时任务
    rhApp遇到的项目问题
  • 原文地址:https://www.cnblogs.com/huaxiaoyao/p/5050033.html
Copyright © 2011-2022 走看看