Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id AC5C764FCD6 for ; Thu, 11 Sep 2008 23:30:43 -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 75175-03 for ; Thu, 11 Sep 2008 23:30:40 -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.229]) by postgresql.org (Postfix) with ESMTP id 07F0A64FCBD for ; Thu, 11 Sep 2008 23:30:39 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so773769rvf.43 for ; Thu, 11 Sep 2008 19:30:38 -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=xLkkjuxfd19Ke0OwpxJ7CsOTHfL3wdSAD3YmPUfzQlk=; b=RA+Jb/QZgfqf2IuvxWektXMja9dUBa0x0aFFsovSs6TUvNBVS0wGC0hS7wvItvsHXG FsoVLI9lt2TKfHyJT8dNfY5UXENqL8nCqfEZ39FYuSqRBishIBLTLLfqXD0JDaPZ2FYJ fHT6YESvPKY6IE43WyUJbS3PB13c9arjOlMKI= 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=w0UlkMsCg+t5pvhOlms19aCeYVLH0taGFZszo03Jf1mR2MtB+WI+FaklwREHqudmqs 2SUxzFKwWsHSOAm83umsx0W2sPTk9m+w24cPF6/7P0jpQoU+3GMjFaVDjAz4763r9ZcJ 8DYSvOupS04VwcPBIbBlbO2asn7JJPJk9cc0s= Received: by 10.141.13.16 with SMTP id q16mr2236710rvi.99.1221186638454; Thu, 11 Sep 2008 19:30:38 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Thu, 11 Sep 2008 19:30:38 -0700 (PDT) Message-ID: Date: Thu, 11 Sep 2008 20:30:38 -0600 From: "Scott Marlowe" To: david@lang.hm Subject: Re: Effects of setting linux block device readahead size Cc: "Scott Carey" , "James Mansion" , "Greg Smith" , pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <70c01d1d0809092353r4ae687a3ycf3d99d43a5680cf@mail.gmail.com> <48C8AACD.5090702@mansionfamily.plus.com> <48C97793.2070909@mansionfamily.plus.com> 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/154 X-Sequence-Number: 31467 On Thu, Sep 11, 2008 at 4:33 PM, wrote: > On Thu, 11 Sep 2008, Scott Marlowe wrote: > >> On Thu, Sep 11, 2008 at 3:36 PM, wrote: >>> >>> by even if it didn't, most modern drives read the entire cylinder into >>> their >>> buffer so any additional requests to the drive will be satisfied from >>> this >>> buffer and not have to wait for the disk itself. >> >> Generally speaking I agree, but I would still make a separate logical >> partition for pg_xlog so that if the OS fills up the /var/log dir or >> something, it doesn't impact the db. > > this is a completely different discussion :-) > > while I agree with you in theory, in practice I've seen multiple partitions > cause far more problems than they have prevented (due to the partitions > ending up not being large enough and having to be resized after they fill > up, etc) so I tend to go in the direction of a few large partitions. I've never had that problem. I've always made the big enough. I can't imagine building a server where /var/log shared space with my db. It's not like every root level dir gets its own partition, but seriously, logs should never go anywhere that another application is writing to. > the only reason I do multiple partitions (besides when the hardware or > performance considerations require it) is when I can identify that there is > some data that I would not want to touch on a OS upgrade. I try to make it > so that an OS upgrade can wipe the OS partitions if nessasary. it's quite handy to have /home on a separate partition I agree. But on most servers /home should be empty. A few others like /opt or /usr/local I tend to make a separate one for the reasons you mention as well.