`
izuoyan
  • 浏览: 8966986 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Ubuntu之To reduce unnecessary disk I/O due to swappiness

 
阅读更多
In Ubuntu, there is a configuration value called vm.swappiness. It will control the threshold of memory usage. When the threshold reached, system will start the swap mechanism to swap data from memory to disk. For example, if you set vm.swappiness=65 and your computer has 4GB memory, it means when your system remains 4GB*65%=2.6GB, it will start to swap even if you only use 1.4G memory. Thus, I suggest you to set vm.swappiness to lower value, for exmpale, vm.swappiness=10, to reduce unnecessary disk I/O.

How to?
In terminal
1.# gksudo gedit /etc/sysctl.con
2.Add vm.swappiness=10 to the end of the file
3.
Reboot computer


参考https://help.ubuntu.com/community/SwapFaq



分享到:
评论

相关推荐

    一个跨平台的CString源码

    // due to a conflict with the rel_ops operator!=. Thanks to // John James for pointing this out. // // 2001-OCT-29 - Added a minor range checking fix for the Mid function to // make it as ...

    Introduction.To.Algorithms,.Second.Edition

    Preface This book provides a comprehensive introduction to the modern study of computer algorithms. It presents many algorithms and ...not be included due to lack of space. Despite myriad requests from

    The Pocket Guide To TCP/IP Sockets (C Version)

    I own several books on sockets programming for TCP/IP. Most are quite large and pricey, address a specific environment such as UNIX (BSD sockets) or Windows (WinSock), and get bogged down in user ...

    try-wrapper:通过构建用try-catch将函数包裹起来

    try-wrapper输入Javascript脚本字符串,然后利用try catch将其包裹起来,基于构建的前端错误捕获工具。Example 1var wrapper = require('try-wrapper');console.log( wrapper('function test() { console.log("hello...

    JavaScript Concurrency pdf 无水印 0分

    Paperback: 345 pages Publisher: Packt Publishing - ebooks Account (January 6, 2016) ...Get to grips with the NodeJS model of concurrency and learn why it's good for I/O-intensive web applications

    An Introduction to Statistics with Python

    I will not proof any theorems, and won’t indulge in mathematics where it is unnecessary. This approach explains why so much code is included: in principle, you have to define our problem, select the...

    getitfree_20190830_disk-defrag-setup.exe

    Getitfree is a free disk utility designed to help keep your disk clean by deleting any unnecessary files. Usually, these unnecessary or junk files appear as a result of a program's incomplete ...

    wp-o-matic.1.0RC4.zip

    We just make some extra unnecessary queries to the db. = What's the benefit of campaigns ? = Campaigns give you the ability to group feeds and select common options for them. So, if you ever ...

    Unnecessary Code Detector

    当我们需要清理代码并删除那些不需要的代码碎片时,Unnecessary Code Detector(https://marketplace.eclipse.org/content/unnecessary-code-detector/metrics) 就可以完成这项工作。当你点击按钮该工具就会出现标志...

    Introduction to Analysis【Arthur P. Mattuck】

    Discusses analysis from the start of the book, to avoid unnecessary discussion on real numbers beyond what is immediately needed. Includes simplified and meaningful proofs. Features Exercises and ...

    Mieze/ IntelMausiEthernet.kext 2.4.0

    Makes use of the chip's TCP Segmentation Offload (TSO) feature with IPv4 and IPv6 in order to reduce CPU load while sending large amounts of data. Fully optimized for Yosemite and Mavericks (64bit ...

    MFC+Windows程序设计

    You can copy the contents of the CD to your hard disk by running the setup program found in the CD's root directory, or you can retrieve the files directly from the CD's \Code directory. The \Code ...

    VC技术内幕第五版.chm

    You can copy the contents of the CD to your hard disk by running the setup program found in the CD's root directory, or you can retrieve the files directly from the CD's \Code directory. The \Code ...

    Bochs - The cross platform IA-32 (x86) emulator

    - I/O Devices - 3 new 'pseudo device' plugins created by plugin separation (see below) - Fixes for emulated DHCP in eth_vnet (patch from @SF tracker) - Added support for VGA graphics mode with 400 ...

    Designing A Common Sense Approach to Web & Mobile Application Design

    Chapter 10: Reduce and Refine 243 Cluttered task flows 244 The path to simplicity 245 Clean Up the Mess 246 Reducing the pixel-to-data ratio 247 Minimizing copy 248 Designing white space 251 ...

    UE(官方下载)

    A question we often see is "I have a lot of blank lines in my file and I don't want to go through and manually delete them. Is there an easier way to do this?" The answer is: yes! Configure FTP Set up...

    An Introduction to LTE: LTE, LTE-Advanced, SAE and 4G Mobile Communications

    It avoids unnecessary detail, focussing instead on conveying a sound understanding of the entire system. The book is aimed at mobile telecommunication professionals, who want to understand what LTE ...

    Effective C# (Covers C# 4.0) Mar 2010

    Item 36: Understand How to Use PLINQ for I/O Bound Operations 215 Item 37: Construct Parallel Algorithms with Exceptions in Mind 220 Chapter 5 Dynamic Programming in C# 227 Item 38: Understand the ...

    [Mining.the.Social.Web(2nd,2013.10)].Matthew.A.Russell.文字版.pdf

    a particular target audience, and in order to avoid any unnecessary confusion about its scope or purpose by way of disgruntled emails, bad book reviews, or other misunder‐ standings that can come up,...

    Git in Practice

    A book that covered this would be considerably longer than the one you find before you, and you’d learn a lot of unnecessary information. Instead, this book provides a detailed understanding of all ...

Global site tag (gtag.js) - Google Analytics