From: Alexandr Ogurtsov <iscander.alt@gmail.com> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] PostgreSQL оптимизация Date: Fri, 10 Oct 2008 13:10:54 +0300 Message-ID: <48EF2A2E.2010804@gmail.com> (raw) In-Reply-To: <m3ej2o6bg1.fsf@oxyum.ru> [-- Attachment #1: Type: text/plain, Size: 1600 bytes --] Спасибо ещё раз, уточняю. > Ну вообще есть "золотое правило" - количество процессов Pg должно быть > равно количеству процессоров(ядер) * 2. То есть если у вас например 2 > проца Intel Xeon 5430 с 4мя ядрами, то вам надо использовать до 16-ти > процессов Pg. Правило понял, но не совсем пойму как это управляется настройками PG это же явно не max_connections = параметр. :) Я правильно понимаю что вы предлагаете запустить для примера с 8 ядрами 16 отдельных "сущностей" PG? > Советую обратить внимание на PgBouncer. Обратил. И балансировать между 16 запущными postmaster процессами? > Ну сделайте на системе 1-2 гига shared memory (shm) и отдайте их > Pg. Тогда он почти гарантированно загрузить базу в память, а так > дисковый кэш в Linux работает вполне оптимально. Опять же притворюсь "танкистом" ;) Это вы про отдельную точку монтирования для /var/lib/postgresql/8.3/main или все же про настройки shared_buffers, temp_buffers, maintenance_work_mem, work_mem, effective_cache_size, max_fsm_* [-- Attachment #2: iscander_alt.vcf --] [-- Type: text/x-vcard, Size: 148 bytes --] begin:vcard fn:Alexandr Ogurtsov n:Ogurtsov;Alexandr note:Linux is very friendly it is just picky who its friends are version:2.1 end:vcard
next prev parent reply other threads:[~2008-10-10 10:10 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-09 11:44 Alexandr Ogurtsov 2008-10-10 8:39 ` Alexandr Ogurtsov 2008-10-10 9:34 ` Ivan Fedorov 2008-10-10 10:10 ` Alexandr Ogurtsov [this message] 2008-10-10 12:27 ` Ivan Fedorov 2008-10-10 11:07 ` Andrey Chichak 2008-10-10 11:21 ` Alexandr Ogurtsov 2008-10-10 16:06 ` Alexandr Ogurtsov 2008-10-13 3:42 ` Evgeny Yugov 2008-10-13 10:09 ` Maxim Tyurin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=48EF2A2E.2010804@gmail.com \ --to=iscander.alt@gmail.com \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git