Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C4E231337BFC for ; Wed, 6 Oct 2010 19:31:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 06866-03 for ; Wed, 6 Oct 2010 22:31:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 3CEE91337B54 for ; Wed, 6 Oct 2010 19:31:29 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3cWG-0007Bd-If for pgsql-performance@postgresql.org; Thu, 07 Oct 2010 00:31:28 +0200 Received: from 93-142-63-132.adsl.net.t-com.hr ([93.142.63.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Oct 2010 00:31:28 +0200 Received: from ivoras by 93-142-63-132.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Oct 2010 00:31:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Ivan Voras Subject: Re: [HACKERS] MIT benchmarks pgsql multicore (up to 48)performance Date: Thu, 07 Oct 2010 00:31:19 +0200 Lines: 21 Message-ID: References: <20101004175545.GA2690@csail.mit.edu> <4CAA21C7.1030701@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-142-63-132.adsl.net.t-com.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100620 Thunderbird/3.0.4 In-Reply-To: <4CAA21C7.1030701@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/42 X-Sequence-Number: 40461 On 10/04/10 20:49, Josh Berkus wrote: >> The other major bottleneck they ran into was a kernel one: reading from >> the heap file requires a couple lseek operations, and Linux acquires a >> mutex on the inode to do that. The proper place to fix this is >> certainly in the kernel but it may be possible to work around in >> Postgres. > > Or we could complain to Kernel.org. They've been fairly responsive in > the past. Too bad this didn't get posted earlier; I just got back from > LinuxCon. > > So you know someone who can speak technically to this issue? I can put > them in touch with the Linux geeks in charge of that part of the kernel > code. Hmmm... lseek? As in "lseek() then read() or write()" idiom? It AFAIK cannot be fixed since you're modifying the global "strean position" variable and something has got to lock that. OTOH, pread() / pwrite() don't have to do that.