Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F078564FF27 for ; Thu, 4 Sep 2008 16:30:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 73715-04 for ; Thu, 4 Sep 2008 16:30:36 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by postgresql.org (Postfix) with ESMTP id 1482A64FD33 for ; Thu, 4 Sep 2008 16:30:35 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so116162rvf.43 for ; Thu, 04 Sep 2008 12:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=1aDOJ7d7JnT7JV3xvlM2Uh7z26vgyiZl53HyIwcUDBs=; b=rsNTy/fioYx/V5N4vj8f1tURleUixYEeNzlWy9hDbsZ8znELyOJdyU1YHLB+znlgd5 oEp7d6xV17JpDLIJEwCIszlggWPybckojIZvh9f/8yRukRbSGA1ZiPSDNRhsD9CA3mJt HhDtODnG/Z84CF8lLmu8lUXnrYmsbhEiyZYLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IB9ZzSD+sOh7k7IDnjVCVMjyNEUJvUz22oe5/UEwE/yDrVRrSTS6glsX2eShbZCw/J lsqLx1RDsSqy82ORaKhyO2muOXeSSqeM+oBxPswAgTEWTepmQsztNnbvdFOlv+nrYABt TACKs+pGu73N6CCcJIm7c1FIMrwHhfsWvCZns= Received: by 10.140.203.9 with SMTP id a9mr5971811rvg.203.1220556634338; Thu, 04 Sep 2008 12:30:34 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Thu, 4 Sep 2008 12:30:34 -0700 (PDT) Message-ID: Date: Thu, 4 Sep 2008 13:30:34 -0600 From: "Scott Marlowe" To: Ulrich Subject: Re: More shared_buffers instead of effective_cache_size? Cc: pgsql-performance@postgresql.org In-Reply-To: <48C035E2.3070407@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C035E2.3070407@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/60 X-Sequence-Number: 31373 On Thu, Sep 4, 2008 at 1:24 PM, Ulrich wrote: > Hi, > I have a virtual server with 256 MB of RAM. I am using it as a webserver, > mailserver and for postgres. So there is something like 150MB left for > postgres. > > Here are my configs (I haven't benchmarked...) > max_connections = 12 (I think, I will not have more parallel connections, > because I only have 10 PHP worker threads) > shared_buffers = 24MB > work_mem = 1MB > maintenance_work_mem = 16MB > > (effective_cache_size = 80MB) > > Normally, the file-cache is part of the free ram. But on my virtual server, > it looks like if there is one big file cache for the whole hardware node and > I do not have my own reserved cached, so it is not easy to find a good value > for effective_cache_size. > > I've also benchmarked the file-cache using dd (100MB file) > > 1. Read from HDD: > 104857600 bytes (105 MB) copied, 8.38522 seconds, 12.5 MB/s > 2. Read from Cache: > 104857600 bytes (105 MB) copied, 3.48694 seconds, 30.1 MB/s > > That is really really slow (10 times slower than on my other machine). > > What would you do now? Increasing shared_buffers to 100MB and setting > effective_cache_size to 0MB? Or increasing effective_cache_size, too? Stop using a virtual server? I wouldn't set shared_buffers that high just because things like vacuum and sorts need memory too. > > Thanks for help. > > Regards, > -Ulrich > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance >