Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: how big shm...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 4161 of 4294
Post > Topic >>

Re: how big shmmax is good for Postgres...

by scott.marlowe@[EMAIL PROTECTED] ("Scott Marlowe") Jul 10, 2008 at 09:37 AM

Some corrections:

On Thu, Jul 10, 2008 at 6:11 AM, Scott Marlowe <scott.marlowe@[EMAIL PROTECTED]
>
wrote:

SNIP

> If you commonly have 100 transactions doing that at once, then you
> multiply much memory they use times 100 to get total buffer >> SPACE <<
in use,
> and the rest is likely NEVER going to get used.
>
> In these systems, what seems like a bad idea, lowering the
> buffer_size, might be the exact right call.
>
> For session servers and large transactional systems, it's often best
> to let the OS do the best caching of the most of the data, and have
> enough shared buffers to handle 2-10 times the in memory data set
> size.  This will result in a buffer size of a few hundred megabytes.
>
> The advantage here is that the (NOT OS) DATABASE doesn't have to spend a
lot of time
> maintaining a large buffer pool and checkpoints are cheaper.
> The background writer can use spare >> CPU << and I/O cycles to write
out
> the now smaller number of dirty pages in shared_memory and the system
runs
> faster.

>
> Conversely, when you need large numbers of shared_buffers is when you
> have something like a large social networking site.  A LOT of people
> updating a large data set at the same time likely need way more
> shared_buffers to run well.  A user might be inputing data for several
> minutes or even hours.  The same pages are getting hit over and over
> too.  For this kind of app, you need as much memory as you can afford
> to throw at the problem, and a semi fast large RAID array.  A large
>  >> RAID << cache means your RAID controller / array only have to write,
on
> average, as fast as the database commits.

Just minor edits.  If there's anything obviously wrong someone please
let me know.

-- 
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 5 Posts in Topic:
how big shmmax is good for Postgres...
rjessil@[EMAIL PROTECTED]  2008-07-10 03:53:40 
Re: how big shmmax is good for Postgres...
wmoran@[EMAIL PROTECTED]   2008-07-10 07:19:19 
Re: how big shmmax is good for Postgres...
scott.marlowe@[EMAIL PROT  2008-07-10 05:23:12 
Re: how big shmmax is good for Postgres...
scott.marlowe@[EMAIL PROT  2008-07-10 09:37:19 
Re: how big shmmax is good for Postgres...
scott.marlowe@[EMAIL PROT  2008-07-10 06:11:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 15:46:12 CDT 2008.