{"id":35920,"date":"2019-10-31T22:07:35","date_gmt":"2019-10-31T19:07:35","guid":{"rendered":"https:\/\/prohoster.info\/blog\/nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql\/"},"modified":"2019-10-31T22:07:35","modified_gmt":"2019-10-31T19:07:35","slug":"nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql","status":"publish","type":"post","link":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql","title":{"rendered":"PostgreSQL \u0436\u04b1\u043c\u044b\u0441\u044b\u043d \u043e\u04a3\u0442\u0430\u0439\u043b\u0430\u043d\u0434\u044b\u0440\u0443 \u04af\u0448\u0456\u043d Linux \u044f\u0434\u0440\u043e\u0441\u044b\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0431\u0430\u043f\u0442\u0430\u0443","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"PostgreSQL \u0436\u04b1\u043c\u044b\u0441\u044b\u043d \u043e\u04a3\u0442\u0430\u0439\u043b\u0430\u043d\u0434\u044b\u0440\u0443 \u04af\u0448\u0456\u043d Linux \u044f\u0434\u0440\u043e\u0441\u044b\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0431\u0430\u043f\u0442\u0430\u0443\" src=\"\/wp-content\/uploads\/2019\/07\/a28458ff50cdc517aad71b47adab6eb3.jpeg\" style=\"display:block;margin: 0 auto;\" \/> PostgreSQL \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u044b\u049b \u0436\u04af\u0439\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0434\u04b1\u0440\u044b\u0441 \u0431\u0430\u043f\u0442\u0430\u043b\u0443\u044b\u043d\u0430 \u0442\u0456\u043a\u0435\u043b\u0435\u0439 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b. \u042f\u0434\u0440\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u0434\u04b1\u0440\u044b\u0441 \u0431\u0430\u043f\u0442\u0430\u043b\u043c\u0430\u0441\u0430, \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u043d\u0456\u04a3 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456 \u0442\u04e9\u043c\u0435\u043d\u0434\u0435\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u043e\u043b\u0430\u0440\u0434\u044b \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0456 \u043c\u0435\u043d \u043e\u043d\u044b\u04a3 \u0436\u04b1\u043c\u044b\u0441 \u0436\u04af\u043a\u0442\u0435\u043c\u0435\u0441\u0456\u043d\u0435 \u0441\u0430\u0439 \u0431\u0430\u043f\u0442\u0430\u0443 \u049b\u0430\u0436\u0435\u0442. \u0411\u04b1\u043b \u0436\u0430\u0437\u0431\u0430\u0434\u0430 \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u043d\u0456\u04a3 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d\u0435 \u04d9\u0441\u0435\u0440 \u0435\u0442\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d Linux \u044f\u0434\u0440\u043e\u0441\u044b\u043d\u044b\u04a3 \u043c\u0430\u04a3\u044b\u0437\u0434\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0436\u04d9\u043d\u0435 \u043e\u043b\u0430\u0440\u0434\u044b \u0431\u0430\u043f\u0442\u0430\u0443 \u0436\u043e\u043b\u0434\u0430\u0440\u044b\u043d \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u0430\u043c\u044b\u0437.<\/p>\n<h2>SHMMAX \/ SHMALL<\/h2>\n<p>\n<b>SHMMAX<\/b> \u2014 Linux \u043f\u0440\u043e\u0446\u0435\u0441\u0456 \u0431\u04e9\u043b\u0435 \u0430\u043b\u0430\u0442\u044b\u043d \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0456\u043d\u0456\u04a3 \u0435\u04a3 \u04af\u043b\u043a\u0435\u043d \u04e9\u043b\u0448\u0435\u043c\u0456\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0442\u044b\u043d \u044f\u0434\u0440\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456. 9.2 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b\u043d\u0430 \u0434\u0435\u0439\u0456\u043d PostgreSQL System V (SysV) \u0436\u04af\u0439\u0435\u0441\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0493\u0430\u043d\u0434\u044b\u049b\u0442\u0430\u043d, SHMMAX \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0431\u0430\u043f\u0442\u0430\u0443 \u049b\u0430\u0436\u0435\u0442 \u0431\u043e\u043b\u0430\u0442\u044b\u043d. 9.2 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b\u043d\u0430\u043d \u0431\u0430\u0441\u0442\u0430\u043f PostgreSQL POSIX \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434\u044b\u043d\u0430 \u043a\u04e9\u0448\u0442\u0456. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u049b\u0430\u0437\u0456\u0440 System V \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434\u044b\u043d\u0430 \u0430\u0437\u044b\u0440\u0430\u049b \u043e\u0440\u044b\u043d \u049b\u0430\u0436\u0435\u0442.<\/p>\n<p>9.3 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b\u043d\u0430 \u0434\u0435\u0439\u0456\u043d SHMMAX \u044f\u0434\u0440\u043e\u043d\u044b\u04a3 \u0435\u04a3 \u043c\u0430\u04a3\u044b\u0437\u0434\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0431\u0456\u0440\u0456 \u0431\u043e\u043b\u0434\u044b. SHMMAX \u043c\u04d9\u043d\u0456 \u0431\u0430\u0439\u0442\u043f\u0435\u043d \u0431\u0435\u0440\u0456\u043b\u0435\u0434\u0456.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n\u0421\u043e\u043b \u0441\u0438\u044f\u049b\u0442\u044b, <b>SHMALL<\/b> \u2014 \u0431\u04b1\u043b <br \/>\n\u0436\u04af\u0439\u0435 \u0431\u043e\u0439\u044b\u043d\u0448\u0430 \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434 \u0431\u0435\u0442\u0442\u0435\u0440\u0456\u043d\u0456\u04a3 \u0436\u0430\u043b\u043f\u044b \u043a\u04e9\u043b\u0435\u043c\u0456\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0442\u044b\u043d \u0442\u0430\u0493\u044b \u0431\u0456\u0440 \u044f\u0434\u0440\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456. SHMMAX, SHMALL \u043d\u0435\u043c\u0435\u0441\u0435 SHMMIN \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0430\u0493\u044b\u043c\u0434\u0430\u0493\u044b \u043c\u04d9\u043d\u0434\u0435\u0440\u0456\u043d \u043a\u04e9\u0440\u0443 \u04af\u0448\u0456\u043d \u043c\u044b\u043d\u0430 \u043f\u04d9\u0440\u043c\u0435\u043d\u0434\u0456 \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u04a3\u044b\u0437: <i>ipcs<\/i>.<\/p>\n<p><b>SHM* \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u0442\u0443\u0440\u0430\u043b\u044b \u043c\u04d9\u043b\u0456\u043c\u0435\u0442 \u2014 Linux<\/b><\/p>\n<pre><code class=\"bash\">$ ipcs -lm\n\n------ Shared Memory Limits --------\nmax number of segments = 4096\nmax seg size (kbytes) = 1073741824\nmax total shared memory (kbytes) = 17179869184\nmin seg size (bytes) = 1<\/code><\/pre>\n<p>\n<b>SHM* \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u0442\u0443\u0440\u0430\u043b\u044b \u043c\u04d9\u043b\u0456\u043c\u0435\u0442 \u2014 MacOS X<\/b><\/p>\n<pre><code class=\"bash\">$ ipcs -M\nIPC status from  as of Thu Aug 16 22:20:35 PKT 2018\nshminfo:\n\tshmmax: 16777216\t(max shared memory segment size)\n\tshmmin:       1\t(min shared memory segment size)\n\tshmmni:      32\t(max number of shared memory identifiers)\n\tshmseg:       8\t(max shared memory segments per process)\n\tshmall:    1024\t(max amount of shared memory in pages)\n<\/code><\/pre>\n<p>\nPostgreSQL <b>System V IPC<\/b> \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434 \u0431\u04e9\u043b\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0434\u044b. \u0411\u04b1\u043b \u2014 \u044f\u0434\u0440\u043e\u043d\u044b\u04a3 \u0435\u04a3 \u043c\u0430\u04a3\u044b\u0437\u0434\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0431\u0456\u0440\u0456. \u0422\u04e9\u043c\u0435\u043d\u0434\u0435\u0433\u0456 \u049b\u0430\u0442\u0435 \u0445\u0430\u0431\u0430\u0440\u043b\u0430\u0440\u044b\u043d\u044b\u04a3 \u0431\u0456\u0440\u0456\u043d \u0430\u043b\u0441\u0430\u04a3\u044b\u0437, PostgreSQL \u043d\u04b1\u0441\u049b\u0430\u0441\u044b \u0435\u0441\u043a\u0456 \u04d9\u0440\u0456 SHMMAX \u043c\u04d9\u043d\u0456 \u0442\u044b\u043c \u0442\u04e9\u043c\u0435\u043d \u0434\u0435\u0433\u0435\u043d \u0441\u04e9\u0437. \u041f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u043b\u0430\u0440\u0493\u0430 \u0431\u04b1\u043b \u043c\u04d9\u043d\u0434\u0456 \u04e9\u0437\u0434\u0435\u0440\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0442\u044b\u043d \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434 \u043a\u04e9\u043b\u0435\u043c\u0456\u043d\u0435 \u0441\u04d9\u0439\u043a\u0435\u0441 \u04e9\u0437\u0433\u0435\u0440\u0442\u0456\u043f, \u0430\u0440\u0442\u0442\u044b\u0440\u0443 \u049b\u0430\u0436\u0435\u0442.<\/p>\n<h3>\u049a\u0430\u0442\u0435 \u0431\u0430\u043f\u0442\u0430\u0443\u0434\u0430\u043d \u0442\u0443\u044b\u043d\u0434\u0430\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d \u049b\u0430\u0442\u0435\u043b\u0435\u0440<\/h3>\n<p>\nSHMMAX \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0434\u04b1\u0440\u044b\u0441 \u0431\u0430\u043f\u0442\u0430\u043b\u043c\u0430\u0441\u0430, PostgreSQL \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0456\u043d \u043c\u044b\u043d\u0430 \u043f\u04d9\u0440\u043c\u0435\u043d \u0430\u0440\u049b\u044b\u043b\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u043b\u0430\u0443 \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u049b\u0430\u0442\u0435 \u0448\u044b\u0493\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d: <i>initdb<\/i>.<\/p>\n<p><b>initdb \u049b\u0430\u0442\u0435\u0441\u0456<\/b><br \/>\n<code>DETAIL: Failed system call was shmget(key=1, size=2072576, 03600). <\/p>\n<p>HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.\u00a0 <br \/>\n\u0421\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d \u0430\u0437\u0430\u0439\u0442\u0443\u0493\u0430 \u043d\u0435\u043c\u0435\u0441\u0435 SHMMAX \u043c\u04d9\u043d\u0456\u043d \u04af\u043b\u043a\u0435\u0439\u0442\u0443 \u04af\u0448\u0456\u043d \u044f\u0434\u0440\u043e\u043d\u044b \u049b\u0430\u0439\u0442\u0430 \u0431\u0430\u043f\u0442\u0430\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. \u0421\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d (\u049b\u0430\u0437\u0456\u0440 2072576 \u0431\u0430\u0439\u0442) \u0430\u0437\u0430\u0439\u0442\u0443 \u04af\u0448\u0456\u043d, <br \/>\nPostgreSQL \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0442\u044b\u043d \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434 \u043a\u04e9\u043b\u0435\u043c\u0456\u043d, \u043c\u044b\u0441\u0430\u043b\u044b shared_buffers \u043d\u0435\u043c\u0435\u0441\u0435 max_connections \u043c\u04d9\u043d\u0434\u0435\u0440\u0456\u043d \u0430\u0437\u0430\u0439\u0442\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u049b\u044b\u0441\u049b\u0430\u0440\u0442\u044b\u04a3\u044b\u0437. <\/p>\n<p>\u0415\u0433\u0435\u0440 \u0441\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456 \u043e\u043d\u0441\u044b\u0437 \u0434\u0430 \u0448\u0430\u0493\u044b\u043d \u0431\u043e\u043b\u0441\u0430, \u043e\u043b \u044f\u0434\u0440\u043e\u043d\u044b\u04a3 SHMMIN \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435\u043d \u0442\u04e9\u043c\u0435\u043d \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d,<br \/>\n\u043c\u04b1\u043d\u0434\u0430\u0439 \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u0441\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d \u04af\u043b\u043a\u0435\u0439\u0442\u0443 \u043d\u0435\u043c\u0435\u0441\u0435 SHMMIN \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u049b\u0430\u0439\u0442\u0430 \u0431\u0430\u043f\u0442\u0430\u0443 \u049b\u0430\u0436\u0435\u0442. <\/p>\n<p>\u041e\u0440\u0442\u0430\u049b \u0436\u0430\u0434\u0442\u044b \u0431\u0430\u043f\u0442\u0430\u0443 \u0442\u0443\u0440\u0430\u043b\u044b \u049b\u043e\u0441\u044b\u043c\u0448\u0430 \u0430\u049b\u043f\u0430\u0440\u0430\u0442 PostgreSQL \u049b\u04b1\u0436\u0430\u0442\u0442\u0430\u043c\u0430\u0441\u044b\u043d\u0434\u0430 \u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d. \u0415\u043d\u0448\u0456\u043b\u0435\u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 1 \u0448\u044b\u0493\u0443 \u043a\u043e\u0434\u044b\u043c\u0435\u043d \u0430\u044f\u049b\u0442\u0430\u043b\u0434\u044b<\/code><\/p>\n<p>\u0421\u043e\u043b \u0441\u0438\u044f\u049b\u0442\u044b, PostgreSQL \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u043d \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u0443 \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u043c\u044b\u043d\u0430 \u043f\u04d9\u0440\u043c\u0435\u043d\u0434\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0441\u0430\u04a3\u044b\u0437, \u049b\u0430\u0442\u0435 \u0448\u044b\u0493\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d: <i>pg_ctl<\/i>.<\/p>\n<p><b>pg_ctl \u049b\u0430\u0442\u0435\u0441\u0456<\/b><br \/>\n<code>\u0415\u0413\u0416\u0415\u0419-\u0422\u0415\u0413\u0416\u0415\u0419\u0406: shmget(key=5432001, size=14385152, 03600) \u0436\u04af\u0439\u0435\u043b\u0456\u043a \u0448\u0430\u049b\u044b\u0440\u0443\u044b \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u043c\u0430\u0434\u044b.<\/p>\n<p>HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.<\/p>\n<p>\u0421\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d \u0430\u0437\u0430\u0439\u0442\u0443\u0493\u0430 \u043d\u0435\u043c\u0435\u0441\u0435 SHMMAX \u043c\u04d9\u043d\u0456\u043d \u04af\u043b\u043a\u0435\u0439\u0442\u0443 \u04af\u0448\u0456\u043d \u044f\u0434\u0440\u043e\u043d\u044b \u049b\u0430\u0439\u0442\u0430 \u0431\u0430\u043f\u0442\u0430\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. \u0421\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d (\u049b\u0430\u0437\u0456\u0440 14385152 \u0431\u0430\u0439\u0442) \u0430\u0437\u0430\u0439\u0442\u0443 \u04af\u0448\u0456\u043d PostgreSQL \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0442\u044b\u043d \u043e\u0440\u0442\u0430\u049b \u0436\u0430\u0434 \u043a\u04e9\u043b\u0435\u043c\u0456\u043d, \u043c\u044b\u0441\u0430\u043b\u044b shared_buffers \u043d\u0435\u043c\u0435\u0441\u0435 max_connections \u043c\u04d9\u043d\u0434\u0435\u0440\u0456\u043d \u0430\u0437\u0430\u0439\u0442\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u049b\u044b\u0441\u049b\u0430\u0440\u0442\u044b\u04a3\u044b\u0437.<\/p>\n<p>\u0415\u0433\u0435\u0440 \u0441\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456 \u043e\u043d\u0441\u044b\u0437 \u0434\u0430 \u0448\u0430\u0493\u044b\u043d \u0431\u043e\u043b\u0441\u0430, \u043e\u043b \u044f\u0434\u0440\u043e\u043d\u044b\u04a3 SHMMIN \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435\u043d \u0442\u04e9\u043c\u0435\u043d \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d, <br \/>\n\u043c\u04b1\u043d\u0434\u0430\u0439 \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u0441\u04b1\u0440\u0430\u0443 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d \u04af\u043b\u043a\u0435\u0439\u0442\u0443 \u043d\u0435\u043c\u0435\u0441\u0435 SHMMIN \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u049b\u0430\u0439\u0442\u0430 \u0431\u0430\u043f\u0442\u0430\u0443 \u049b\u0430\u0436\u0435\u0442.<\/p>\n<p>\u041e\u0440\u0442\u0430\u049b \u0436\u0430\u0434\u0442\u044b \u0431\u0430\u043f\u0442\u0430\u0443 \u0442\u0443\u0440\u0430\u043b\u044b \u049b\u043e\u0441\u044b\u043c\u0448\u0430 \u0430\u049b\u043f\u0430\u0440\u0430\u0442 PostgreSQL \u049b\u04b1\u0436\u0430\u0442\u0442\u0430\u043c\u0430\u0441\u044b\u043d\u0434\u0430 \u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d.<\/code><\/p>\n<h3>\u0410\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u043b\u0430\u0440\u0434\u0430\u0493\u044b \u0430\u0439\u044b\u0440\u043c\u0430\u0448\u044b\u043b\u044b\u049b\u0442\u0430\u0440\u0434\u044b \u0442\u04af\u0441\u0456\u043d\u0443<\/h3>\n<p>\nSHMMAX\/SHMALL \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u043b\u0430\u0440\u044b Linux \u043f\u0435\u043d MacOS X \u0436\u04af\u0439\u0435\u043b\u0435\u0440\u0456\u043d\u0434\u0435 \u0441\u04d9\u043b \u04e9\u0437\u0433\u0435\u0448\u0435:<\/p>\n<ul>\n<li>Linux: kernel.shmmax, kernel.shmall<\/li>\n<li>MacOS X: kern.sysv.shmmax, kern.sysv.shmall<\/li>\n<\/ul>\n<p>\n\u041f\u04d9\u0440\u043c\u0435\u043d <i>sysctl<\/i> \u043c\u04d9\u043d\u0434\u0456 \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u04e9\u0437\u0433\u0435\u0440\u0442\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. \u0422\u04b1\u0440\u0430\u049b\u0442\u044b \u043c\u04d9\u043d\u0434\u0435\u0440\u0434\u0456 \u043e\u0440\u043d\u0430\u0442\u0443 \u04af\u0448\u0456\u043d \u0436\u0430\u0437\u0431\u0430\u043d\u044b <i>\/etc\/sysctl.conf<\/i>. \u0422\u043e\u043b\u044b\u0493\u044b\u0440\u0430\u049b \u0442\u04e9\u043c\u0435\u043d\u0434\u0435 \u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d.<\/p>\n<p><b>MacOS X \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 \u044f\u0434\u0440\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u04e9\u0437\u0433\u0435\u0440\u0442\u0443<\/b><\/p>\n<pre><code class=\"plaintext\"># Get the value of SHMMAX\nsudo sysctl kern.sysv.shmmax\nkern.sysv.shmmax: 4096\n\n# Get the value of SHMALL\nsudo sysctl kern.sysv.shmall \nkern.sysv.shmall: 4096\n\n# Set the value of SHMMAX\nsudo sysctl -w kern.sysv.shmmax=16777216\nkern.sysv.shmmax: 4096 -&gt; 16777216\n\n# Set the value of SHMALL \nsudo sysctl -w kern.sysv.shmall=16777216\nkern.sysv.shmall: 4096 -&gt; 16777216<\/code><\/pre>\n<p>\n<b>Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 \u044f\u0434\u0440\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u04e9\u0437\u0433\u0435\u0440\u0442\u0443<\/b><\/p>\n<pre><code class=\"plaintext\"># Get the value of SHMMAX\nsudo sysctl kernel.shmmax\nkernel.shmmax: 4096\n\n# Get the value of SHMALL\nsudo sysctl kernel.shmall\nkernel.shmall: 4096\n\n# Set the value of SHMMAX\nsudo sysctl -w kernel.shmmax=16777216\nkernel.shmmax: 4096 -&gt; 16777216\n\n# Set the value of SHMALL \nsudo sysctl -w kernel.shmall=16777216\nkernel.shmall: 4096 -&gt; 16777216<\/code><\/pre>\n<p>\n<b>\u0415\u0441\u043a\u0435\u0440\u0456\u04a3\u0456\u0437<\/b>: \u04e9\u0437\u0433\u0435\u0440\u0456\u0441\u0442\u0435\u0440 \u043a\u04af\u0448\u0456\u043d\u0434\u0435 \u0442\u04b1\u0440\u0430\u049b\u0442\u044b \u049b\u0430\u043b\u0443\u044b \u04af\u0448\u0456\u043d \u0431\u04b1\u043b \u043c\u04d9\u043d\u0434\u0435\u0440\u0434\u0456 \/etc\/sysctl.conf \u0444\u0430\u0439\u043b\u044b\u043d\u0430 \u049b\u043e\u0441\u044b\u04a3\u044b\u0437<\/p>\n<h2>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 (Huge Pages)<\/h2>\n<p>\nLinux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 \u04d9\u0434\u0435\u043f\u043a\u0456 \u0431\u043e\u0439\u044b\u043d\u0448\u0430 4 \u041a\u0411 \u0436\u0430\u0434 \u0431\u0435\u0442\u0442\u0435\u0440\u0456, BSD \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 <i>Super Pages<\/i>\u0430\u043b Windows \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 <i>Large Pages<\/i>. \u0416\u0430\u0434 \u0431\u0435\u0442\u0456 \u2014 \u043f\u0440\u043e\u0446\u0435\u0441\u043a\u0435 \u0431\u04e9\u043b\u0456\u043d\u0435\u0442\u0456\u043d \u0436\u0435\u0434\u0435\u043b \u0436\u0430\u0434 \u0431\u04e9\u043b\u0456\u0433\u0456. \u041f\u0440\u043e\u0446\u0435\u0441\u0442\u0456\u04a3 \u0436\u0430\u0434 \u049b\u0430\u0436\u0435\u0442\u0442\u0456\u043b\u0456\u0433\u0456\u043d\u0435 \u049b\u0430\u0440\u0430\u0439 \u043e\u0493\u0430\u043d \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0431\u0435\u0442 \u0431\u04e9\u043b\u0456\u043d\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d. \u041f\u0440\u043e\u0446\u0435\u0441\u043a\u0435 \u043d\u0435\u0493\u04b1\u0440\u043b\u044b\u043c \u043a\u04e9\u043f \u0436\u0430\u0434 \u049b\u0430\u0436\u0435\u0442 \u0431\u043e\u043b\u0441\u0430, \u0441\u043e\u0493\u04b1\u0440\u043b\u044b\u043c \u043a\u04e9\u043f \u0431\u0435\u0442 \u0431\u04e9\u043b\u0456\u043d\u0435\u0434\u0456. \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u044b\u049b \u0436\u04af\u0439\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0442\u0435\u0440\u0433\u0435 \u0431\u04e9\u043b\u0456\u043d\u0433\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u043a\u0435\u0441\u0442\u0435\u0441\u0456\u043d \u0436\u04af\u0440\u0433\u0456\u0437\u0435\u0434\u0456. \u0411\u0435\u0442 \u04e9\u043b\u0448\u0435\u043c\u0456 \u043a\u0456\u0448\u0456\u0440\u0435\u0439\u0433\u0435\u043d \u0441\u0430\u0439\u044b\u043d \u043a\u0435\u0441\u0442\u0435 \u04af\u043b\u043a\u0435\u0439\u0456\u043f, \u043e\u0434\u0430\u043d \u049b\u0430\u0436\u0435\u0442\u0442\u0456 \u0431\u0435\u0442\u0442\u0456 \u0456\u0437\u0434\u0435\u0443\u0433\u0435 \u043a\u04e9\u0431\u0456\u0440\u0435\u043a \u0443\u0430\u049b\u044b\u0442 \u043a\u0435\u0442\u0435\u0434\u0456. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0436\u0430\u0434\u0442\u044b\u04a3 \u043a\u04e9\u043f \u043a\u04e9\u043b\u0435\u043c\u0456\u043d \u049b\u043e\u0441\u044b\u043c\u0448\u0430 \u0448\u044b\u0493\u044b\u043d\u0434\u044b \u0430\u0437\u0430\u0439\u0442\u0430 \u043e\u0442\u044b\u0440\u044b\u043f \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u0431\u0435\u0440\u0435\u0434\u0456: \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u0456\u0437\u0434\u0435\u0443 \u0441\u0430\u043d\u044b \u043c\u0435\u043d \u0431\u0435\u0442 \u049b\u0430\u0442\u0435\u043b\u0435\u0440\u0456 \u0430\u0437\u0430\u0439\u044b\u043f, \u04af\u043b\u043a\u0435\u043d \u0431\u0443\u0444\u0435\u0440\u043b\u0435\u0440 \u0430\u0440\u049b\u044b\u043b\u044b \u043e\u049b\u0443 \u0436\u04d9\u043d\u0435 \u0436\u0430\u0437\u0443 \u0436\u044b\u043b\u0434\u0430\u043c\u0434\u0430\u0439\u0434\u044b. \u041d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456\u043d\u0434\u0435 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a \u0430\u0440\u0442\u0430\u0434\u044b.<\/p>\n<p>PostgreSQL \u04af\u043b\u043a\u0435\u043d \u0436\u0430\u0434\u044b \u0431\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u0442\u0435\u043a Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 \u049b\u043e\u043b\u0434\u0430\u0439\u0434\u044b. Linux \u04d9\u0434\u0435\u043f\u043a\u0456 \u0431\u043e\u0439\u044b\u043d\u0448\u0430 4 \u041a\u0411 \u0436\u0430\u0434\u044b \u0431\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0434\u044b, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u0436\u0430\u0434\u043f\u0435\u043d \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0430\u0442\u044b\u043d \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u0430\u0440 \u0442\u044b\u043c \u043a\u04e9\u043f \u0431\u043e\u043b\u0493\u0430\u043d \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430, \u04af\u043b\u043a\u0435\u043d\u0456\u0440\u0435\u043a \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u043e\u0440\u043d\u0430\u0442\u0443 \u049b\u0430\u0436\u0435\u0442. \u04e8\u043b\u0448\u0435\u043c\u0456 2 \u041c\u0411-\u0442\u0430\u043d 1 \u0413\u0411-\u049b\u0430 \u0434\u0435\u0439\u0456\u043d\u0433\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u0442\u0456 \u0430\u0440\u0442\u0442\u044b\u0440\u0430\u0434\u044b. \u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u04e9\u043b\u0448\u0435\u043c\u0456\u043d \u0436\u04af\u0439\u0435\u043d\u0456 \u0436\u04af\u043a\u0442\u0435\u0443 \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u043e\u0440\u043d\u0430\u0442\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. Linux \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0456\u04a3\u0456\u0437\u0434\u0435\u0433\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u043c\u0435\u043d \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u043b\u0443\u044b\u043d \u043c\u044b\u043d\u0430 \u043f\u04d9\u0440\u043c\u0435\u043d \u0430\u0440\u049b\u044b\u043b\u044b \u043e\u04a3\u0430\u0439 \u0442\u0435\u043a\u0441\u0435\u0440\u0435 \u0430\u043b\u0430\u0441\u044b\u0437: <i>cat \/proc\/meminfo | grep -i huge<\/i>.<\/p>\n<p><b>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0442\u0443\u0440\u0430\u043b\u044b \u0430\u049b\u043f\u0430\u0440\u0430\u0442 \u0430\u043b\u0443 (\u0442\u0435\u043a Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435)<\/b><\/p>\n<pre><code class=\"bash\">\u0415\u0441\u043a\u0435\u0440\u0442\u043f\u0435: \u0411\u04b1\u043b \u0442\u0435\u043a Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d. \u0411\u0430\u0441\u049b\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u044b\u049b \u0436\u04af\u0439\u0435\u043b\u0435\u0440\u0434\u0435 \u0431\u04b1\u043b \u04d9\u0440\u0435\u043a\u0435\u0442 \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u043c\u0430\u0439\u0434\u044b.\n$ cat \/proc\/meminfo | grep -i huge\nAnonHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nShmemHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nHugePages_Total:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugePages_Free:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugePages_Rsvd:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugePages_Surp:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugepagesize:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2048 kB<\/code><\/pre>\n<p>\n\u0411\u04b1\u043b \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0456\u04a3 \u04e9\u043b\u0448\u0435\u043c\u0456 2048 (2 \u041c\u0411) \u0434\u0435\u043f \u043e\u0440\u043d\u0430\u0442\u044b\u043b\u0493\u0430\u043d\u044b\u043c\u0435\u043d, \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u0436\u0430\u043b\u043f\u044b \u0441\u0430\u043d\u044b 0-\u0433\u0435 \u0442\u0435\u04a3. \u0414\u0435\u043c\u0435\u043a, \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u04e9\u0448\u0456\u0440\u0443\u043b\u0456.<\/p>\n<h3>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u049b\u0430\u0436\u0435\u0442\u0442\u0456 \u0441\u0430\u043d\u044b\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0442\u044b\u043d \u0441\u043a\u0440\u0438\u043f\u0442<\/h3>\n<p>\n\u0411\u04b1\u043b \u049b\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u049b\u0430\u0436\u0435\u0442\u0442\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0441\u0430\u043d\u044b\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u0430\u0434\u044b. PostgreSQL \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u043f \u0442\u04b1\u0440\u0493\u0430\u043d \u043a\u0435\u0437\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0442\u0456 Linux \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u04a3\u0456\u0437\u0434\u0435 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u04a3\u044b\u0437. \u041e\u0440\u0442\u0430 \u0430\u0439\u043d\u044b\u043c\u0430\u043b\u044b\u0441\u044b\u043d\u0434\u0430 <i>$PGDATA<\/i> PostgreSQL \u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u044b \u043a\u04e9\u0440\u0441\u0435\u0442\u0456\u043b\u0433\u0435\u043d\u0456\u043d\u0435 \u043a\u04e9\u0437 \u0436\u0435\u0442\u043a\u0456\u0437\u0456\u04a3\u0456\u0437.<\/p>\n<p><b>\u049a\u0430\u0436\u0435\u0442\u0442\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0441\u0430\u043d\u044b\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0443<\/b><\/p>\n<pre><code class=\"bash\">#!\/bin\/bash\npid=`head -1 $PGDATA\/postmaster.pid`\necho \"Pid:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $pid\"\npeak=`grep ^VmPeak \/proc\/$pid\/status | awk '{ print $2 }'`\necho \"VmPeak:\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $peak kB\"\nhps=`grep ^Hugepagesize \/proc\/meminfo | awk '{ print $2 }'`\necho \"Hugepagesize:\u00a0\u00a0 $hps kB\"\nhp=$((peak\/hps))\necho Set Huge Pages:\u00a0\u00a0\u00a0\u00a0 $hp<\/code><\/pre>\n<p>\n\u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456 \u0442\u04e9\u043c\u0435\u043d\u0434\u0435\u0433\u0456\u0434\u0435\u0439 \u0431\u043e\u043b\u0430\u0434\u044b:<\/p>\n<p><b>\u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456<\/b><\/p>\n<pre><code class=\"bash\">Pid:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12737\nVmPeak:\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0180932 kB\nHugepagesize:\u00a0\u00a0 2048 kB\nSet Huge Pages: 88<\/code><\/pre>\n<p>\n\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u04b1\u0441\u044b\u043d\u044b\u043b\u0430\u0442\u044b\u043d \u0441\u0430\u043d\u044b \u2014 88, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u043e\u0441\u044b \u043c\u04d9\u043d\u0434\u0456 \u043e\u0440\u043d\u0430\u0442\u0443 \u043a\u0435\u0440\u0435\u043a.<\/p>\n<p><b>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u043e\u0440\u043d\u0430\u0442\u0443<\/b><\/p>\n<pre><code class=\"bash\">sysctl -w vm.nr_hugepages=88<\/code><\/pre>\n<p>\n\u0415\u043d\u0434\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u0442\u0435\u043a\u0441\u0435\u0440\u0456\u04a3\u0456\u0437: \u043e\u043b\u0430\u0440\u0434\u044b\u04a3 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u043c\u0430\u0439 \u0442\u04b1\u0440\u0493\u0430\u043d\u044b\u043d \u043a\u04e9\u0440\u0435\u0441\u0456\u0437 (HugePages_Free = HugePages_Total).<\/p>\n<p><b>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0442\u0443\u0440\u0430\u043b\u044b \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u049b\u0430\u0439\u0442\u0430 \u0442\u0435\u043a\u0441\u0435\u0440\u0443 (\u0442\u0435\u043a Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435)<\/b><\/p>\n<pre><code class=\"bash\">$ cat \/proc\/meminfo | grep -i huge\nAnonHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nShmemHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nHugePages_Total:\u00a0\u00a0\u00a0\u00a0\u00a0 88\nHugePages_Free:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 88\nHugePages_Rsvd:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugePages_Surp:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugepagesize:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2048 kB<\/code><\/pre>\n<p>\n\u0415\u043d\u0434\u0456 $PGDATA\/postgresql.conf \u0444\u0430\u0439\u043b\u044b\u043d\u0434\u0430 huge_pages \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u00abon\u00bb \u043c\u04d9\u043d\u0456\u043d\u0435 \u043e\u0440\u043d\u0430\u0442\u044b\u043f, \u0441\u0435\u0440\u0432\u0435\u0440\u0434\u0456 \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u04a3\u044b\u0437.<\/p>\n<p><b>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0442\u0443\u0440\u0430\u043b\u044b \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u0442\u0430\u0493\u044b \u0431\u0456\u0440 \u0440\u0435\u0442 \u0442\u0435\u043a\u0441\u0435\u0440\u0443 (\u0442\u0435\u043a Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435)<\/b><\/p>\n<pre><code class=\"bash\">$ cat \/proc\/meminfo | grep -i huge\nAnonHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nShmemHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nHugePages_Total:\u00a0\u00a0\u00a0\u00a0\u00a0 88\nHugePages_Free:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 81\nHugePages_Rsvd:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a064\nHugePages_Surp:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugepagesize:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2048 kB<\/code><\/pre>\n<p>\n\u0415\u043d\u0434\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u04e9\u0442\u0435 \u0430\u0437 \u0431\u04e9\u043b\u0456\u0433\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u044b\u043f \u0442\u04b1\u0440\u0493\u0430\u043d\u044b\u043d \u043a\u04e9\u0440\u0435 \u0430\u043b\u0430\u0441\u044b\u0437. \u0415\u043d\u0434\u0456 \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440\u0493\u0430 \u0431\u0456\u0440\u0430\u0437 \u0434\u0435\u0440\u0435\u043a \u049b\u043e\u0441\u044b\u043f \u043a\u04e9\u0440\u0435\u0439\u0456\u043a.<\/p>\n<p><b>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u04af\u0448\u0456\u043d \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440\u0434\u0430\u0493\u044b \u043a\u0435\u0439\u0431\u0456\u0440 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u0430\u0440<\/b><\/p>\n<pre><code class=\"sql\">postgres=# CREATE TABLE foo(a INTEGER);\nCREATE TABLE\npostgres=# INSERT INTO foo VALUES(generate_Series(1,10000000));\nINSERT 0 10000000<\/code><\/pre>\n<p>\n\u049a\u0430\u0437\u0456\u0440 \u0431\u04b1\u0440\u044b\u043d\u0493\u044b\u0434\u0430\u043d \u043a\u04e9\u0431\u0456\u0440\u0435\u043a \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442 \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u043f \u0436\u0430\u0442\u049b\u0430\u043d\u044b\u043c\u044b\u0437\u0434\u044b \u0442\u0435\u043a\u0441\u0435\u0440\u0435\u0439\u0456\u043a.<\/p>\n<p><b>\u04ae\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0442\u0443\u0440\u0430\u043b\u044b \u0442\u0430\u0493\u044b \u0431\u0456\u0440 \u0440\u0435\u0442 (\u0442\u0435\u043a Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435)<\/b><\/p>\n<pre><code class=\"bash\">$ cat \/proc\/meminfo | grep -i huge\nAnonHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nShmemHugePages:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 kB\nHugePages_Total:\u00a0\u00a0\u00a0\u00a0\u00a0 88\nHugePages_Free:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 18\nHugePages_Rsvd:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\nHugePages_Surp:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\nHugepagesize:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2048 kB<\/code><\/pre>\n<p>\n\u0415\u043d\u0434\u0456 \u04af\u043b\u043a\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u0431\u0430\u0441\u044b\u043c \u0431\u04e9\u043b\u0456\u0433\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u044b\u043f \u0436\u0430\u0442\u049b\u0430\u043d\u044b\u043d \u043a\u04e9\u0440\u0435 \u0430\u043b\u0430\u0441\u044b\u0437.<\/p>\n<p>\u0415\u0441\u043a\u0435\u0440\u0442\u0443: \u043c\u04b1\u043d\u0434\u0430 \u043a\u04e9\u0440\u0441\u0435\u0442\u0456\u043b\u0433\u0435\u043d HugePages \u043c\u04d9\u043d\u0456 \u04e9\u0442\u0435 \u0442\u04e9\u043c\u0435\u043d, \u0431\u04b1\u043b \u04e9\u043d\u0434\u0456\u0440\u0456\u0441\u0442\u0456\u043a \u043e\u0440\u0442\u0430\u0434\u0430\u0493\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u04af\u0448\u0456\u043d \u049b\u0430\u043b\u044b\u043f\u0442\u044b \u043a\u04e9\u0440\u0441\u0435\u0442\u043a\u0456\u0448 \u0435\u043c\u0435\u0441. \u0416\u04af\u0439\u0435\u04a3\u0456\u0437\u0433\u0435 \u049b\u0430\u0436\u0435\u0442\u0442\u0456 \u0431\u0435\u0442\u0442\u0435\u0440 \u0441\u0430\u043d\u044b\u043d \u0435\u0441\u0435\u043f\u0442\u0435\u043f, \u0436\u04af\u043a\u0442\u0435\u043c\u0435 \u043c\u0435\u043d \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0440\u0435\u0441\u0443\u0440\u0441\u0442\u0430\u0440\u0493\u0430 \u049b\u0430\u0440\u0430\u0439 \u043e\u0440\u043d\u0430\u0442\u044b\u04a3\u044b\u0437.<\/p>\n<h3>vm.swappiness<\/h3>\n<p>\n<b>vm.swappiness<\/b> \u2014 \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d\u0435 \u04d9\u0441\u0435\u0440 \u0435\u0442\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d \u044f\u0434\u0440\u043e\u043d\u044b\u04a3 \u0442\u0430\u0493\u044b \u0431\u0456\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456. \u0411\u04b1\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u0441\u0432\u043e\u043f\u0442\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u0442\u04d9\u0440\u0442\u0456\u0431\u0456\u043d (swappiness), \u044f\u0493\u043d\u0438 \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u0436\u0430\u0434\u049b\u0430 \u0436\u04d9\u043d\u0435 \u0436\u0430\u0434\u0442\u0430\u043d \u0441\u0432\u043e\u043f\u049b\u0430 \u043a\u04e9\u0448\u0456\u0440\u0443\u0434\u0456 \u0431\u0430\u0441\u049b\u0430\u0440\u0430\u0434\u044b. \u041c\u04d9\u043d\u0456 0 \u043c\u0435\u043d 100 \u0430\u0440\u0430\u043b\u044b\u0493\u044b\u043d\u0434\u0430 \u0431\u043e\u043b\u0430\u0434\u044b \u0436\u04d9\u043d\u0435 \u0436\u0430\u0434\u0442\u044b\u04a3 \u049b\u0430\u043d\u0448\u0430 \u0431\u04e9\u043b\u0456\u0433\u0456 \u0441\u0432\u043e\u043f\u049b\u0430 \u043a\u04e9\u0448\u0456\u0440\u0456\u043b\u0435\u0442\u0456\u043d\u0456\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0434\u044b. \u041d\u04e9\u043b \u0441\u0432\u043e\u043f\u0442\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0434\u044b \u04e9\u0448\u0456\u0440\u0435\u0434\u0456, \u0430\u043b 100 \u043e\u043d\u044b \u0431\u0430\u0440\u044b\u043d\u0448\u0430 \u0431\u0435\u043b\u0441\u0435\u043d\u0434\u0456 \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u0434\u044b.<\/p>\n<p>\u0422\u04e9\u043c\u0435\u043d\u0456\u0440\u0435\u043a \u043c\u04d9\u043d \u043e\u0440\u043d\u0430\u0442\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u0442\u0456 \u0436\u0430\u049b\u0441\u0430\u0440\u0442\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u0416\u0430\u04a3\u0430 \u044f\u0434\u0440\u043e\u043b\u0430\u0440\u0434\u0430 0 \u043c\u04d9\u043d\u0456\u043d \u043e\u0440\u043d\u0430\u0442\u0443 OOM Killer-\u0434\u0456\u04a3 (Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u0436\u0430\u0434\u0442\u044b \u0442\u0430\u0437\u0430\u0440\u0442\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0456) \u043f\u0440\u043e\u0446\u0435\u0441\u0442\u0456 \u0442\u043e\u049b\u0442\u0430\u0442\u0443\u044b\u043d\u0430 \u04d9\u043a\u0435\u043b\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u0441\u0432\u043e\u043f\u0442\u044b \u0431\u0430\u0440\u044b\u043d\u0448\u0430 \u0430\u0437\u0430\u0439\u0442\u049b\u044b\u04a3\u044b\u0437 \u043a\u0435\u043b\u0441\u0435, 1 \u043c\u04d9\u043d\u0456\u043d \u043e\u0440\u043d\u0430\u0442\u049b\u0430\u043d \u0434\u04b1\u0440\u044b\u0441. Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u04d9\u0434\u0435\u043f\u043a\u0456 \u043c\u04d9\u043d \u2014 60. \u0416\u043e\u0493\u0430\u0440\u044b \u043c\u04d9\u043d MMU-\u0434\u044b (\u0436\u0430\u0434\u0442\u044b \u0431\u0430\u0441\u049b\u0430\u0440\u0443 \u0431\u043b\u043e\u0433\u044b\u043d) RAM-\u0493\u0430 \u049b\u0430\u0440\u0430\u0493\u0430\u043d\u0434\u0430 \u0441\u0432\u043e\u043f \u043a\u0435\u04a3\u0456\u0441\u0442\u0456\u0433\u0456\u043d \u043a\u04e9\u0431\u0456\u0440\u0435\u043a \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0438\u0442\u0435\u0440\u043c\u0435\u043b\u0435\u0439\u0434\u0456, \u0430\u043b \u0442\u04e9\u043c\u0435\u043d \u043c\u04d9\u043d \u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440 \u043c\u0435\u043d \u043a\u043e\u0434\u0442\u044b\u04a3 \u0436\u0430\u0434\u0442\u0430 \u043a\u04e9\u0431\u0456\u0440\u0435\u043a \u0441\u0430\u049b\u0442\u0430\u043b\u0443\u044b\u043d\u0430 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u0431\u0435\u0440\u0435\u0434\u0456.<\/p>\n<p>PostgreSQL \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d \u0430\u0440\u0442\u0442\u044b\u0440\u0443 \u04af\u0448\u0456\u043d \u0442\u04e9\u043c\u0435\u043d\u0456\u0440\u0435\u043a \u043c\u04d9\u043d \u0442\u0430\u04a3\u0434\u0430\u0493\u0430\u043d \u0436\u04e9\u043d.<\/p>\n<h3>vm.overcommit_memory \/ vm.overcommit_ratio<\/h3>\n<p>\n\u049a\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043b\u0430\u0440 \u0436\u0430\u0434\u0442\u044b \u0430\u043b\u044b\u043f, \u049b\u0430\u0436\u0435\u0442\u0456 \u049b\u0430\u043b\u043c\u0430\u0493\u0430\u043d\u0434\u0430 \u0431\u043e\u0441\u0430\u0442\u0430\u0434\u044b. \u0410\u043b\u0430\u0439\u0434\u0430 \u043a\u0435\u0439\u0434\u0435 \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430 \u0442\u044b\u043c \u043a\u04e9\u043f \u0436\u0430\u0434 \u0430\u043b\u044b\u043f, \u043e\u043d\u044b \u0431\u043e\u0441\u0430\u0442\u043f\u0430\u0439\u0434\u044b. \u0411\u04b1\u043b OOM Killer \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0443\u044b\u043d\u0430 \u04d9\u043a\u0435\u043b\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456\u04a3 \u044b\u049b\u0442\u0438\u043c\u0430\u043b \u043c\u04d9\u043d\u0434\u0435\u0440\u0456: <b>vm.overcommit_memory<\/b> \u04d9\u0440 \u043c\u04d9\u043d\u043d\u0456\u04a3 \u0441\u0438\u043f\u0430\u0442\u0442\u0430\u043c\u0430\u0441\u044b:<\/p>\n<ol>\n<li> \u042d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043b\u044b\u049b overcommit (\u04d9\u0434\u0435\u043f\u043a\u0456 \u043c\u04d9\u043d); \u044f\u0434\u0440\u043e\u0493\u0430 \u043d\u0435\u0433\u0456\u0437\u0434\u0435\u043b\u0433\u0435\u043d \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430<\/li>\n<li> \u049a\u0430\u043b\u0430\u0439 \u0431\u043e\u043b\u0493\u0430\u043d\u0434\u0430 \u0434\u0430 overcommit \u0436\u0430\u0441\u0430\u0443\u0493\u0430 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0443<\/li>\n<li> \u0428\u0435\u043a\u0442\u0435\u043d \u0442\u044b\u0441 overcommit \u0436\u0430\u0441\u0430\u043c\u0430\u04a3\u044b\u0437, \u0431\u0435\u043b\u0433\u0456\u043b\u0435\u043d\u0433\u0435\u043d \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0442\u0435\u043d \u0430\u0441\u044b\u0440\u043c\u0430\u04a3\u044b\u0437.<\/li>\n<\/ol>\n<p>\n<i>\u0421\u0456\u043b\u0442\u0435\u043c\u0435: <noindex><a rel=\"nofollow\" href=\"https:\/\/www.kernel.org\/doc\/Documentation\/vm\/overcommit-accounting\">https:\/\/www.kernel.org\/doc\/Documentation\/vm\/overcommit-accounting<\/a><\/noindex><\/i><\/p>\n<p><b>vm.overcommit_ratio<\/b> \u2014 \u0430\u0440\u0442\u044b\u049b \u0431\u04e9\u043b\u0443\u0433\u0435 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0436\u0435\u0434\u0435\u043b \u0436\u0430\u0434\u0442\u044b\u04a3 \u043f\u0430\u0439\u044b\u0437\u0434\u044b\u049b \u04af\u043b\u0435\u0441\u0456. 2 \u0413\u0411 \u041e\u0417\u0423 \u0431\u0430\u0440 \u0436\u04af\u0439\u0435\u0434\u0435 50% \u043c\u04d9\u043d\u0456 3 \u0413\u0411-\u049b\u0430 \u0434\u0435\u0439\u0456\u043d \u0436\u0435\u0434\u0435\u043b \u0436\u0430\u0434 \u0431\u04e9\u043b\u0443\u0433\u0435 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u0431\u0435\u0440\u0435\u0434\u0456.<\/p>\n<p>vm.overcommit_memory \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 2 \u043c\u04d9\u043d\u0456 PostgreSQL \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d \u0430\u0440\u0442\u0442\u044b\u0440\u0430\u0434\u044b. \u0411\u04b1\u043b \u043c\u04d9\u043d OOM killer \u043f\u0440\u043e\u0446\u0435\u0441\u0456\u043d\u0456\u04a3 \u0442\u043e\u049b\u0442\u0430\u0442\u0443 \u049b\u0430\u0443\u043f\u0456\u043d \u0430\u0439\u0442\u0430\u0440\u043b\u044b\u049b\u0442\u0430\u0439 \u0430\u0440\u0442\u0442\u044b\u0440\u043c\u0430\u0439, \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0456\u043d\u0435 \u0436\u0435\u0434\u0435\u043b \u0436\u0430\u0434\u0442\u044b \u0431\u0430\u0440\u044b\u043d\u0448\u0430 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u0431\u0435\u0440\u0435\u0434\u0456. \u049a\u043e\u043b\u0434\u0430\u043d\u0431\u0430 \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0430 \u0430\u043b\u0430\u0434\u044b, \u0431\u0456\u0440\u0430\u049b \u0442\u0435\u043a \u0430\u0440\u0442\u044b\u049b \u0431\u04e9\u043b\u0443 \u0448\u0435\u0433\u0456\u043d\u0434\u0435, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d OOM killer \u043f\u0440\u043e\u0446\u0435\u0441\u0456\u043d \u0442\u043e\u049b\u0442\u0430\u0442\u0443 \u049b\u0430\u0443\u043f\u0456 \u0430\u0437\u0430\u044f\u0434\u044b. \u0414\u0435\u043c\u0435\u043a, 2 \u043c\u04d9\u043d\u0456 \u04d9\u0434\u0435\u043f\u043a\u0456 0 \u043c\u04d9\u043d\u0456\u043d\u0435 \u049b\u0430\u0440\u0430\u0493\u0430\u043d\u0434\u0430 \u04e9\u043d\u0456\u043c\u0434\u0456\u0440\u0435\u043a. \u0414\u0435\u0433\u0435\u043d\u043c\u0435\u043d, \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0433\u0435\u043d \u0448\u0435\u043a\u0442\u0435\u043d \u0442\u044b\u0441 \u0436\u0430\u0434\u0442\u044b \u0430\u0440\u0442\u044b\u049b \u0431\u04e9\u043b\u0443\u0433\u0435 \u0436\u043e\u043b \u0431\u0435\u0440\u043c\u0435\u0443 \u0436\u04af\u0439\u0435\u043d\u0456\u04a3 \u0441\u0435\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d \u0430\u0440\u0442\u0442\u044b\u0440\u0430\u0434\u044b. \u041e\u0441\u044b\u043b\u0430\u0439\u0448\u0430, OOM killer \u043f\u0440\u043e\u0446\u0435\u0441\u0442\u0456 \u0442\u043e\u049b\u0442\u0430\u0442\u0443 \u049b\u0430\u0443\u043f\u0456 \u0436\u043e\u0439\u044b\u043b\u0430\u0434\u044b.<\/p>\n<p>\u0421\u0432\u043e\u043f \u043a\u0435\u04a3\u0456\u0441\u0442\u0456\u0433\u0456 \u0436\u043e\u049b \u0436\u04af\u0439\u0435\u043b\u0435\u0440\u0434\u0435 vm.overcommit_memory \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d 2 \u043c\u04d9\u043d\u0456\u043d\u0435 \u043e\u0440\u043d\u0430\u0442\u0443 \u049b\u0438\u044b\u043d\u0434\u044b\u049b \u0442\u0443\u0434\u044b\u0440\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/www.postgresql.org\/docs\/current\/static\/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT\">https:\/\/www.postgresql.org\/docs\/current\/static\/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT<\/a><\/noindex><\/p>\n<h3>vm.dirty_background_ratio \/ vm.dirty_background_bytes<\/h3>\n<p>\n<b>vm.dirty_background_ratio<\/b> \u2014 \u0434\u0438\u0441\u043a\u0456\u0433\u0435 \u0436\u0430\u0437\u044b\u043b\u0443\u044b \u0442\u0438\u0456\u0441 \u04e9\u0437\u0433\u0435\u0440\u0442\u0456\u043b\u0433\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440 \u0430\u043b\u044b\u043f \u0436\u0430\u0442\u049b\u0430\u043d \u0436\u0430\u0434\u0442\u044b\u04a3 \u043f\u0430\u0439\u044b\u0437\u0434\u044b\u049b \u04af\u043b\u0435\u0441\u0456. \u0414\u0435\u0440\u0435\u043a\u0442\u0435\u0440 \u0434\u0438\u0441\u043a\u0456\u0433\u0435 \u0444\u043e\u043d\u0434\u044b\u049b \u0440\u0435\u0436\u0438\u043c\u0434\u0435 \u0436\u0430\u0437\u044b\u043b\u0430\u0434\u044b. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456\u04a3 \u043c\u04d9\u043d\u0456 0-\u0434\u0435\u043d 100-\u0433\u0435 \u0434\u0435\u0439\u0456\u043d \u0431\u043e\u043b\u0430\u0434\u044b. \u0410\u043b\u0430\u0439\u0434\u0430 5-\u0442\u0435\u043d \u0442\u04e9\u043c\u0435\u043d \u043c\u04d9\u043d \u0442\u0438\u0456\u043c\u0441\u0456\u0437 \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d \u0436\u04d9\u043d\u0435 \u043a\u0435\u0439\u0431\u0456\u0440 \u044f\u0434\u0440\u043e\u043b\u0430\u0440\u0434\u0430 \u043e\u0493\u0430\u043d \u049b\u043e\u043b\u0434\u0430\u0443 \u043a\u04e9\u0440\u0441\u0435\u0442\u0456\u043b\u043c\u0435\u0439\u0434\u0456. Linux \u0436\u04af\u0439\u0435\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043a\u04e9\u043f\u0448\u0456\u043b\u0456\u0433\u0456\u043d\u0434\u0435 \u04d9\u0434\u0435\u043f\u043a\u0456 \u043c\u04d9\u043d\u0456 \u2014 10. \u0416\u0430\u0437\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u0430\u0440\u044b \u043a\u04e9\u043f \u0431\u043e\u043b\u0493\u0430\u043d\u0434\u0430, \u0431\u04b1\u043b \u043c\u04d9\u043d\u0434\u0456 \u0430\u0437\u0430\u0439\u0442\u0443 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u0442\u0456 \u0430\u0440\u0442\u0442\u044b\u0440\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d: \u0441\u043e\u043d\u0434\u0430 Linux \u04e9\u0437\u0433\u0435\u0440\u0442\u0456\u043b\u0433\u0435\u043d \u0431\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u0444\u043e\u043d\u0434\u044b\u049b \u0440\u0435\u0436\u0438\u043c\u0434\u0435 \u0434\u0438\u0441\u043a\u0456\u0433\u0435 \u0436\u0438\u0456\u0440\u0435\u043a \u0436\u0430\u0437\u0430\u0434\u044b.<\/p>\n<p>\u041c\u04d9\u043d\u0434\u0456 <b>vm.dirty_background_bytes<\/b> \u0434\u0438\u0441\u043a\u0456\u04a3\u0456\u0437\u0434\u0456\u04a3 \u0436\u044b\u043b\u0434\u0430\u043c\u0434\u044b\u0493\u044b\u043d\u0430 \u049b\u0430\u0440\u0430\u0439 \u043e\u0440\u043d\u0430\u0442\u0443\u044b\u04a3\u044b\u0437 \u043a\u0435\u0440\u0435\u043a.<\/p>\n<p>\u0411\u04b1\u043b \u0435\u043a\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u04d9\u043c\u0431\u0435\u0431\u0430\u043f \u00ab\u043e\u04a3\u0442\u0430\u0439\u043b\u044b\u00bb \u043c\u04d9\u043d \u0436\u043e\u049b, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u0435\u043a\u0435\u0443\u0456 \u0434\u0435 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0442\u044b\u049b \u049b\u04b1\u0440\u0430\u043b\u0493\u0430 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b. \u0414\u0435\u0433\u0435\u043d\u043c\u0435\u043d, vm.dirty_background_ratio \u043c\u04d9\u043d\u0456\u043d 5-\u043a\u0435, \u0430\u043b vm.dirty_background_bytes \u043c\u04d9\u043d\u0456\u043d \u0434\u0438\u0441\u043a \u0436\u044b\u043b\u0434\u0430\u043c\u0434\u044b\u0493\u044b\u043d\u044b\u04a3 25%-\u044b\u043d\u0430 \u043e\u0440\u043d\u0430\u0442\u0443 \u043a\u04e9\u043f \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u0442\u0456 \u0448\u0430\u043c\u0430\u043c\u0435\u043d 25%-\u0493\u0430 \u0430\u0440\u0442\u0442\u044b\u0440\u0430\u0434\u044b.<\/p>\n<h3>vm.dirty_ratio \/ dirty_bytes<\/h3>\n<p>\n\u0411\u04b1\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440 <b>vm.dirty_background_ratio \/ vm.dirty_background_bytes<\/b>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043c\u0435\u043d \u0431\u0456\u0440\u0434\u0435\u0439, \u0431\u0456\u0440\u0430\u049b \u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440 \u0434\u0438\u0441\u043a\u0456\u0433\u0435 \u0436\u04b1\u043c\u044b\u0441 \u0441\u0435\u0430\u043d\u0441\u044b \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u0436\u0430\u0437\u044b\u043b\u044b\u043f, \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043d\u044b \u0431\u04b1\u0493\u0430\u0442\u0442\u0430\u0439\u0434\u044b. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d vm.dirty_ratio \u043c\u04d9\u043d\u0456 \u043e\u0434\u0430\u043d \u0436\u043e\u0493\u0430\u0440\u044b \u0431\u043e\u043b\u0443\u044b \u043a\u0435\u0440\u0435\u043a <b>vm.dirty_background_ratio<\/b>. \u0411\u04b1\u043b \u0444\u043e\u043d\u0434\u044b\u049b \u043f\u0440\u043e\u0446\u0435\u0441\u0442\u0435\u0440\u0434\u0456\u04a3 \u0435\u0440\u0442\u0435\u0440\u0435\u043a \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u044b\u043f, \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043d\u044b\u04a3 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u0433\u0456\u043d\u0448\u0435 \u04b1\u0437\u0430\u049b \u0431\u04b1\u0493\u0430\u0442\u0442\u0430\u043b\u043c\u0430\u0443\u044b\u043d \u049b\u0430\u043c\u0442\u0430\u043c\u0430\u0441\u044b\u0437 \u0435\u0442\u0435\u0434\u0456. \u0414\u0438\u0441\u043a\u0456\u043d\u0456\u04a3 \u0435\u043d\u0433\u0456\u0437\u0443-\u0448\u044b\u0493\u0430\u0440\u0443 \u0436\u04af\u043a\u0442\u0435\u043c\u0435\u0441\u0456\u043d\u0435 \u049b\u0430\u0440\u0430\u0439 \u043e\u0441\u044b \u0435\u043a\u0456 \u043a\u04e9\u0440\u0441\u0435\u0442\u043a\u0456\u0448\u0442\u0456\u04a3 \u0430\u0440\u0430\u0441\u044b\u043d\u0434\u0430\u0493\u044b \u0430\u0439\u044b\u0440\u043c\u0430\u043d\u044b \u0440\u0435\u0442\u0442\u0435\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<h2>\u049a\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b<\/h2>\n<p>\n\u04e8\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u0442\u0456 \u0430\u0440\u0442\u0442\u044b\u0440\u0443 \u04af\u0448\u0456\u043d \u0431\u0430\u0441\u049b\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0434\u0456 \u0434\u0435 \u0431\u0430\u043f\u0442\u0430\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b, \u0431\u0456\u0440\u0430\u049b \u043d\u04d9\u0442\u0438\u0436\u0435 \u043c\u0430\u0440\u0434\u044b\u043c\u0441\u044b\u0437 \u0431\u043e\u043b\u044b\u043f, \u0430\u0439\u0442\u0430\u0440\u043b\u044b\u049b\u0442\u0430\u0439 \u043f\u0430\u0439\u0434\u0430 \u04d9\u043a\u0435\u043b\u043c\u0435\u0439\u0434\u0456. \u0411\u0430\u0440\u043b\u044b\u049b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440 \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043d\u044b\u04a3 \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u0456\u043d\u0435 \u0431\u0456\u0440\u0434\u0435\u0439 \u0441\u04d9\u0439\u043a\u0435\u0441 \u043a\u0435\u043b\u0435 \u0431\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d\u0456\u043d \u0435\u0441\u043a\u0435\u0440\u0443 \u043a\u0435\u0440\u0435\u043a. \u041a\u0435\u0439\u0431\u0456\u0440 \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043b\u0430\u0440 \u0431\u0435\u043b\u0433\u0456\u043b\u0456 \u0431\u0456\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0434\u0456 \u0431\u0430\u043f\u0442\u0430\u0493\u0430\u043d\u0434\u0430 \u0436\u0430\u049b\u0441\u044b\u0440\u0430\u049b \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439\u0434\u0456, \u0430\u043b \u043a\u0435\u0439\u0431\u0456\u0440\u0456\u043d\u0435 \u0431\u04b1\u043b \u04d9\u0441\u0435\u0440 \u0435\u0442\u043f\u0435\u0439\u0434\u0456. \u041a\u04af\u0442\u0456\u043b\u0435\u0442\u0456\u043d \u0436\u04af\u043a\u0442\u0435\u043c\u0435 \u043c\u0435\u043d \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430 \u0442\u04af\u0440\u0456\u043d\u0435 \u049b\u0430\u0440\u0430\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u04d9\u043d\u0434\u0435\u0440\u0456\u043d\u0456\u04a3 \u0434\u04b1\u0440\u044b\u0441 \u04af\u0439\u043b\u0435\u0441\u0456\u043c\u0456\u043d \u0442\u0430\u0431\u0443 \u049b\u0430\u0436\u0435\u0442. \u0411\u0430\u043f\u0442\u0430\u0443 \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u044b\u049b \u0436\u04af\u0439\u0435\u043d\u0456\u04a3 \u0436\u04b1\u043c\u044b\u0441 \u0435\u0440\u0435\u043a\u0448\u0435\u043b\u0456\u043a\u0442\u0435\u0440\u0456\u043d \u0434\u0435 \u0435\u0441\u043a\u0435\u0440\u0433\u0435\u043d \u0436\u04e9\u043d. \u042f\u0434\u0440\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0431\u0430\u043f\u0442\u0430\u0443 \u0434\u0435\u0440\u0435\u043a\u049b\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0440\u0435\u0442\u0442\u0435\u0443 \u0441\u0438\u044f\u049b\u0442\u044b \u043e\u04a3\u0430\u0439 \u0435\u043c\u0435\u0441, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u043c\u04b1\u043d\u0434\u0430 \u043d\u0430\u049b\u0442\u044b \u04b1\u0441\u044b\u043d\u044b\u0441\u0442\u0430\u0440 \u0431\u0435\u0440\u0443 \u049b\u0438\u044b\u043d\u044b\u0440\u0430\u049b.<br \/>\n<br \/>\u0414\u0435\u0440\u0435\u043a\u043a\u04e9\u0437: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/458860\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c PostgreSQL \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041f\u043b\u043e\u0445\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u0434\u0440\u0430 \u041e\u0421 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u044b\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043c\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u0434\u0440\u0430 Linux, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":26870,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-35920","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0434\u0440\u0430 Linux \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:07:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:07:35+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47PostgreSQL \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d \u043e\u04a3\u0442\u0430\u0439\u043b\u0430\u043d\u0434\u044b\u0440\u0443 \u04af\u0448\u0456\u043d Linux \u044f\u0434\u0440\u043e\u0441\u044b\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0431\u0430\u043f\u0442\u0430\u0443 | ProHoster","description":"\u041e\u04a3\u0442\u0430\u0439\u043b\u044b \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a.","canonical_url":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0434\u0440\u0430 Linux \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL | ProHoster","og:description":"\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.","og:url":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/nastrojka-parametrov-yadra-linux-dlya-optimizatsii-postgresql","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:07:35+00:00","article:modified_time":"2019-10-31T19:07:35+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"35920","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 01:17:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:53:32","updated":"2026-01-22 01:17:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts\/35920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/comments?post=35920"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts\/35920\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/media\/26870"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/media?parent=35920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/categories?post=35920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/tags?post=35920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}