<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=29774&amp;type=atom" />
	<updated>2013-08-24T06:30:19Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=29774</id>
		<entry>
			<title type="html"><![CDATA[Re: Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359978#p359978" />
			<content type="html"><![CDATA[<p>А через atop не видно в чем затык происходит и с кем?</p>]]></content>
			<author>
				<name><![CDATA[kixiro]]></name>
				<uri>https://linuxforum.ru/profile.php?id=18147</uri>
			</author>
			<updated>2013-08-24T06:30:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359978#p359978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359491#p359491" />
			<content type="html"><![CDATA[<p>Тогда искать в выводе&nbsp; sar -A 10 1 то, что может привлечь внимание + dmesg.</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2013-08-21T12:44:25Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359491#p359491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359488#p359488" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Macumazan пишет:</cite><blockquote><p>Странно, а вот Disk Utilization показывает, что весомая нагрузка на запись имеет место быть.&nbsp; Что может привести к таймаутам ответов сервера.</p></blockquote></div><p>Большая нагрузка как раз перед тем как сервер начинает тупить, а во время этого наоборот вся нагрузка падает почти до нуля включая трафик, iowait, disk utilization.<br />П.С. При чем связи с нагрузкой вообще нет. Например в 1:30 или в 2:45 нагрузки почти нет. Меньше тысячи иопсов, а время ответа огромное</p>]]></content>
			<author>
				<name><![CDATA[Aleksandr.Egorov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31399</uri>
			</author>
			<updated>2013-08-21T12:13:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359488#p359488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359471#p359471" />
			<content type="html"><![CDATA[<p>Странно, а вот Disk Utilization показывает, что весомая нагрузка на запись имеет место быть.&nbsp; Что может привести к таймаутам ответов сервера.</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2013-08-21T11:06:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359471#p359471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359468#p359468" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vascom пишет:</cite><blockquote><p>Может в <strong>iotop</strong> что увидишь.</p></blockquote></div><p>В iotop в это время показывается что никто ничего не пишет. WRITE DISK 0. <br />Все в ожидании разблокировки диска.</p>]]></content>
			<author>
				<name><![CDATA[Aleksandr.Egorov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31399</uri>
			</author>
			<updated>2013-08-21T11:01:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359468#p359468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359458#p359458" />
			<content type="html"><![CDATA[<p>Может в <strong>iotop</strong> что увидишь.</p>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2013-08-21T10:07:24Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359458#p359458</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Сервер CentOS долго отвечает. Диск занят. В чем причина?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=359452#p359452" />
			<content type="html"><![CDATA[<p>Сервер иногда начинает долго отвечать на запросы (примерно раз в 2-3 часа на минуту-две). При этом atop выдает что ни один процесс не пишет на диск и не читает с него. При это iotime возрастает до 20-25%. Такое ощущение что что-то блокирует диск на время.<br />Медленных запросов в данное время не обнаружено.<br />На сервере: CentOS 5.9 + nginx + apache + php 5.4 + MySQL 5.5.11(MariaDB)<br />Графики времени ответа сервера, IOWAIT и Disk Utilization<br /><a href="http://slamer.ru/chart2.png">http://slamer.ru/chart2.png</a><br /><a href="http://slamer.ru/chart3.png">http://slamer.ru/chart3.png</a><br /><a href="http://slamer.ru/chart4.png">http://slamer.ru/chart4.png</a></p><p>Пожалуйста, помогите найти в чем проблема или как ее отследить.</p><p>Конфигурация сервера:<br /></p><div class="codebox"><pre><code>6 ядер по 2ГГц
32Гб RAM
             total       used       free     shared    buffers     cached
Mem:         32186      31976        210          0        260       9006
Swap:        49055          0      49055</code></pre></div><p>Настройки sysctl.conf:<br /></p><div class="codebox"><pre><code>vm.dirty_ratio=20
vm.dirty_background_ratio=1
vm.swappiness=0
vm.vfs_cache_pressure=1000
vm.dirty_writeback_centisecs=1000
vm.dirty_expire_centisecs=2000</code></pre></div><p>Настройки mysql:<br /></p><div class="codebox"><pre><code>innodb_file_per_table
max_connections = 400
innodb_use_sys_malloc = 0
symbolic-links=0
thread_cache_size = 300
query_cache_size = 3G
key_buffer_size = 1G
max_heap_table_size = 2G
tmp_table_size = 4G
max_tmp_tables = 4000
read_buffer_size = 2M
sort_buffer_size = 8M
innodb_buffer_pool_size = 16G
innodb_thread_concurrency = 12
table_open_cache = 1024
join_buffer_size = 256k</code></pre></div><p>Настройки httpd:<br /></p><div class="codebox"><pre><code>&lt;IfModule prefork.c&gt;
MinSpareServers    3
MaxSpareServers   10
ServerLimit       150
MaxClients        15
MaxRequestsPerChild  500</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Aleksandr.Egorov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31399</uri>
			</author>
			<updated>2013-08-21T09:01:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=359452#p359452</id>
		</entry>
</feed>
