Release cache:

sync
echo 3>/proc/sys/vm/drop_caches

Release swap:

sync
swapoff -a
swapon -a

Copyright notice : This article is an original blog article , No reprint without the permission of the blogger .

linux More about the command to free memory

  1. How to linux Free up memory and cache

    How to linux Free up memory and cache _ Huamo flying dust _ Sina blog How to linux Free up memory and cache     (2011-10-20 10:49:01)        label :    linux    swap    me ...

  2. Linux Under the memory view command

    stay Linux below , We often use top Command to view system processes ,top Can also display system memory . That we use a lot Linux The next special tool for viewing content is free command . Linux Under the memory view command free Detailed explanation : stay Linux Let's look at the memory ...

  3. linux Free memory command

    1. First of all to see linux Memory usage #free -m 2. Synchronize memory data to hard disk #sync 3. modify /proc/sys/vm/drop_caches file #echo 3 > /proc/sys/vm ...

  4. Linux Free up memory

    Linux After the server has been running for a while , Because of its memory management mechanism , Will convert the temporarily unused memory to buff/cache, So when the program uses this part of the data , It can be removed quickly , So as to improve the operation efficiency of the system , So this is exactly linux Memory management ...

  5. Linux Free memory

    stay Linux Under the system , We generally don't need to free memory , Because the system has managed the memory very well . But there are exceptions , Sometimes the memory will be occupied by the cache , Cause the system to use SWAP Space affects performance , At this point, you need to perform the release of memory ( Clean cache ) Operating the . ...

  6. Linux Free memory scripts

    vi recover_mem.sh #!/bin/bash  ################## #author:rrhelei@126.com# ################## # System assigned ...

  7. Linux Free memory small script

    Recently, slag was found ECS There's always not enough memory , The memory is too small to use up , Just use it up , Memory is used to do cache Yes, it can be faster , But the memory used up, always a meal card , I can't stand it , So I wrote a little script to free memory , If you feel stuck, release it ...

  8. linux Release memory and view memory command

    View memory usage : free -m Clean up memory : echo 1 > /proc/sys/vm/drop_caches Check memory usage again free -m View the number of memory modules command : dmidecode  ...

  9. Linux In memory view command free Detailed explanation ( turn )

    add by zhj: Said so much , Actually, the first line is enough ,free An item is unused memory . Actually , I don't think it's necessary at all Use free command , use top Just replace it original text :http://liustb.blog.163 ...

Random recommendation

  1. Polar routing 2( The second one )ROOT And brush OpenWrt

    Bypass the official ROOT Checked the root course , If you still need to keep the warranty , You need to find a way to return the version , Download Sohu plug-in to sd card , Looking for a linux System modification sd The execution authority of the program on the card , Then you can turn it on ssh, The specific method can be ...

  2. Refresh all ifream The current page , Drop down items change trigger events js, Add background color to the selected item js

    <script type="text/javascript" language="javascript"> // Refresh the frame pages function r ...

  3. Teach you to calculate easily AOE Network critical path ( turn )

    Link to the original text :http://blog.csdn.net/wang379275614/article/details/13990163 Combined with System Analyst - Operational research methods - Network planning technology - Critical path chapter , Describe the link of the original text ...

  4. In raspberry pie (Raspberry Pi) Install the updated version of Python

    Raspiban Wheezy It's pre installed on Python3 The version is 3.2.3, This article will introduce upgrading to 3.4.3 Methods . This article also applies to installing other versions ( Like the latest version ) Of Python. I use it B+ Raspberry pie , The installed system is 2 ...

  5. candence Summary of notes

    1. solve candece The prompt cannot be found after startup licence Errors in documents : candece The installation of , Follow the cracking steps step by step , But after the installation, I found that every time I started, I would report an error "OrCAD Capture ...

  6. python Time operation summary

    Unix Time stamp Unix Time stamp (Unix timestamp), Or called Unix Time (Unix time).POSIX Time (POSIX time), It's a time representation , Defined as from Greenwich mean time 1970 year 01 month ...

  7. Get the data and export it Excel

    List<PortResourceInfo> list = getList()// Acquisition data source // export excle Response.Clear(); Response.ContentTyp ...

  8. Decrypt e-book 2 :EPD Control chip

    EPD The control chip is roughly equivalent to the computer graphics card , Didn't it , All e-books are whiteboards . It's similar to... In a graphics card ATI And NVIDIA,EPD There are also two control chips :Surf( Taixinke ) and EPSON( EPSON ), Epson is the first to launch electronic paper display ...

  9. machine learning | From the additive model to GBDT Algorithm

    author :JSong, date :2017.10.10 Integrated learning (ensemble learning) Learning tasks are accomplished by building and combining multiple learners , It is often possible to obtain significantly better generalization performance than a single learner , This is right " Weak learner & ...

  10. shiro Of DelegatingFilterProxy How to find ShiroFilterFactoryBean

    First of all to see web.xml Configuration in <context-param> <param-name>contextConfigLocation</param-name> < ...