Solve problems caused by Linux Buffer/cache consuming too much memory

Source: Internet
Author: User

At work received a DBA to report a server run some large data, the server can not connect remotely, error, grabbed the log called Dell Engineer detection is no problem, the system has been re-installed,

Now some of the larger data will be reported as the error, because the server is far away from the city IDC room, SSH can not log in, so use the Idrac remote management card to connect to the machine, through the console connected to the server, see such as Error:


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/CA/wKioL1YpoVTw4z-8AAOLzNMS8As725.jpg "title=" Idrac.png "alt=" Wkiol1ypovtw4z-8aaolznms8as725.jpg "/>

1, memory consumption: DD process kernel will use a lot of memory as disk data cache, due to write 8.5T;
2, from the device, the memory is mainly consumed in the buff:
3, DD If=/dev/zero of=/data$i/test bs=1m count=9000000 Conv=fdatasync &
Parameters Fdatasync Effect: 1) Ensure data refresh to disk, 2) does not brush the file metadata to disk;
as a result of characteristic 2, the buff occupies a surge;

For specific reference: http://www.2cto.com/os/201205/131568.html

4, through the echo 3 >/proc/sys/vm/drop_caches, you can empty Buff/cache, currently this device memory has been restored to normal;


sar-r-f/var/log/sa/sa17

memory usage spikes. Typically, this is due to business procedures.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/CE/wKiom1YpoYfwxhbZAACp7KJTxhM185.jpg "title=" Memery.png "alt=" Wkiom1ypoyfwxhbzaacp7kjtxhm185.jpg "/>

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.


This article is from the "Kevin's blog" blog, please be sure to keep this source http://kevinslee.blog.51cto.com/2353185/1705468

Solve problems caused by Linux Buffer/cache consuming too much memory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.