ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Andrey Chichak <altlinux-sysadmins@s-plus.in>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] PostgreSQL оптимизация
Date: Fri, 10 Oct 2008 18:07:13 +0700
Message-ID: <48EF3761.5060900@s-plus.in> (raw)
In-Reply-To: <m3ej2o6bg1.fsf@oxyum.ru>

Ivan Fedorov wrote:
> Alexandr Ogurtsov <iscander.alt@gmail.com> writes:
>   
>> 1. Рекомендации по настройке буферов памяти при наличии достаточного
>> объёма RAM для того чтобы вся БД помещалась в памяти. Объём базы
>> около 600Мб реально откусить на сервере можно 2-4Gb только для того
>> чтоб Postgre не трогал винт при выборках.
>>     
> Ну сделайте на системе 1-2 гига shared memory (shm) и отдайте их
> Pg. Тогда он почти гарантированно загрузить базу в память, а так
> дисковый кэш в Linux работает вполне оптимально.
>   
не могу согласиться - постгрес в shared не хранит данных. и в 
руководствах по оптимизации написано - добейтесь нужного количества 
свободной памяти, которую система использует под кэш.
т.е. в данном случае необходимо сделать так чтобы около 1Гб памяти было 
не занято процессами, дабы использовалось под буфера и дисковый кеш.

статейка про оптимизацию например: http://www.powerpostgresql.com/PerfList

-- 
С уважением,
Андрей Чичак.
ООО "С-Плюс", г.Томск
JID: chch@kit.tomsk.ru
ICQ: 13154894



  parent reply	other threads:[~2008-10-10 11:07 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
2008-10-10 12:27         ` Ivan Fedorov
2008-10-10 11:07       ` Andrey Chichak [this message]
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=48EF3761.5060900@s-plus.in \
    --to=altlinux-sysadmins@s-plus.in \
    --cc=chch@s-plus.in \
    --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