<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Robert Haas: linux</title><description>Sr. Staff Software Engineer @ Databricks, PostgreSQL Developer and Committer</description><link>https://rhaas.dev/</link><item><title>Linux disables vm.zone_reclaim_mode by default</title><link>https://rhaas.dev/blog/2014/06/linux-disables-vmzonereclaimmode-by/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-434942750773490003</guid><description>&lt;p&gt;Last week, Linus Torvalds merged a Linux kernel commit from Mel Gorman &lt;a href=&quot;http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4f9b16a64753d0bb607454347036dc997fd03b82&quot;&gt;disabling vm.zone_reclaim_mode by default&lt;/a&gt;. I mentioned that this change might be in the works when &lt;a href=&quot;/blog/2014/03/back-from-lsfmm-and-collab/&quot;&gt;I blogged about attending LSF/MM&lt;/a&gt; and again when I blogged about how &lt;a href=&quot;/blog/2014/04/subtly-bad-things-linux-may-be-doing-to/&quot;&gt;the page cache may not behave quite the way we want even with vm.zone_reclaim_mode disabled&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2014/06/linux-disables-vmzonereclaimmode-by/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 10 Jun 2014 16:26:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>Subtly Bad Things Linux May Be Doing To PostgreSQL</title><link>https://rhaas.dev/blog/2014/04/subtly-bad-things-linux-may-be-doing-to/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-3598723579552763710</guid><description>&lt;p&gt;In addition to &lt;a href=&quot;/blog/2014/03/back-from-lsfmm-and-collab/&quot;&gt;talking about PostgreSQL at LSF/MM and Collab&lt;/a&gt;, I also learned a few things about the Linux kernel that I had not known before, some of which could have implications for PostgreSQL performance. These are issues which I haven’t heard discussed before in the PostgreSQL community, and they are somewhat subtle, so I thought it would be worth writing about them.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2014/04/subtly-bad-things-linux-may-be-doing-to/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 02 Apr 2014 14:21:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>Back from LSF/MM and Collab</title><link>https://rhaas.dev/blog/2014/03/back-from-lsfmm-and-collab/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-8505548615989198339</guid><description>&lt;p&gt;Last week, I attended the Linux Storage, Filesystems, and Memory Management summit (&lt;a href=&quot;http://events.linuxfoundation.org/events/linux-storage-filesystem-and-mm-summit&quot;&gt;LSF/MM&lt;/a&gt;) on Monday and Tuesday, and the &lt;a href=&quot;http://events.linuxfoundation.org/events/collaboration-summit&quot;&gt;Linux Collaboration Summit&lt;/a&gt; (aka Collab) from Wednesday through Friday. Both events were held at the &lt;a href=&quot;http://themeritageresort.com/&quot;&gt;Meritage Resort&lt;/a&gt; in Napa, CA. This was by invitation of some Linux developers who wanted to find out more about what PostgreSQL needs from the Linux kernel. Andres Freund and I attended on behalf of the PostgreSQL community; Josh Berkus was present for part of the time as well.&lt;/p&gt;
&lt;p&gt;My overall impression is that it was a good week, except that by Thursday the combination of 14 hour days and jet lag were catching up with me in a big way. However, from the point of view of the PostgreSQL project, I think it was very positive. On Monday, Andres and I had an hour-and-a-half slot; we used about an hour and fifteen minutes of that time. Our big complaint was with the &lt;a href=&quot;/blog/2014/03/linuxs-fsync-woes-are-getting-some/&quot;&gt;Linux kernel’s fsync behavior&lt;/a&gt;, but we talked about some other issues as well, including double buffering, transparent huge pages, and zone reclaim mode.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2014/03/back-from-lsfmm-and-collab/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 31 Mar 2014 16:32:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>Linux&apos;s fsync() woes are getting some attention</title><link>https://rhaas.dev/blog/2014/03/linuxs-fsync-woes-are-getting-some/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-7516181743793761729</guid><description>&lt;p&gt;In two weeks, I’m headed to &lt;a href=&quot;http://events.linuxfoundation.org/events/linux-storage-filesystem-and-mm-summit&quot;&gt;LSF/MM&lt;/a&gt; and the &lt;a href=&quot;http://events.linuxfoundation.org/events/collaboration-summit&quot;&gt;Linux Collaboration Summit&lt;/a&gt;, by invitation of some Linux kernel hackers, to discuss how the Linux kernel can better interoperate with PostgreSQL. This is good news for PostgreSQL, and hopefully for Linux as well. A &lt;a href=&quot;http://www.postgresql.org/message-id/20140310101537.GC10663@suse.de&quot;&gt;post from Mel Gorman&lt;/a&gt; indicates that this topic is attracting a lot of interest, and that MariaDB and MySQL developers have now been invited to participate as well. His summary of the discussion so far quotes some blunt words from one of my posts:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; IMHO, the problem is simpler than that: no single process should
 be allowed to completely screw over every other process on the
 system.  When the checkpointer process starts calling fsync(), the
 system begins writing out the data that needs to be fsync()&apos;d so
 aggressively that service times for I/O requests from other process
 go through the roof.  It&apos;s difficult for me to imagine that any
 application on any I/O scheduler is ever happy with that behavior.
 We shouldn&apos;t need to sprinkle of fsync() calls with special magic
 juju sauce that says &quot;hey, when you do this, could you try to avoid
 causing the rest of the system to COMPLETELY GRIND TO A HALT?&quot;.
 That should be the *default* behavior, if not the *only* behavior.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2014/03/linuxs-fsync-woes-are-getting-some/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 10 Mar 2014 17:39:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>perf: the good, the bad, the ugly</title><link>https://rhaas.dev/blog/2012/06/perf-good-bad-ugly/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-7247469990824925998</guid><description>&lt;p&gt;For the past few months, I’ve spent a good deal of time using the Linux utility &lt;a href=&quot;https://perf.wiki.kernel.org/index.php/Main_Page&quot;&gt;perf&lt;/a&gt; to profile &lt;a href=&quot;http://www.postgresql.org/&quot;&gt;PostgreSQL&lt;/a&gt;. On the whole, I’ve been favorably impressed. Before I started using perf, trying to profile generally meant using &lt;a href=&quot;http://oprofile.sourceforge.net/news/&quot;&gt;oprofile&lt;/a&gt; or &lt;a href=&quot;http://www.cs.utah.edu/dept/old/texinfo/as/gprof_toc.html&quot;&gt;gprof&lt;/a&gt;. Unfortunately, both of those tools have serious problems.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2012/06/perf-good-bad-ugly/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 06 Jun 2012 13:16:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>Linux Memory Reporting</title><link>https://rhaas.dev/blog/2012/01/linux-memory-reporting/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-2238515399456302539</guid><description>&lt;p&gt;As much as I like Linux (and, really, I do: I ran Linux 0.99.something on my desktop in college, and wrote my class papers using vim and LaTeX), there are certain things about it that drive me crazy, and the way it reports memory usage is definitely on the list. It should be possible for a reasonably intelligent human being (in which category I place myself) to answer simple questions about system memory usage, such as “How much memory is my database using?” or “How much memory is my web server using?” relatively simply.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2012/01/linux-memory-reporting/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 12 Jan 2012 15:01:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>Linux lseek scalability</title><link>https://rhaas.dev/blog/2011/11/linux-lseek-scalability/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5569860806410993257</guid><description>&lt;p&gt;I don’t normally follow Linux kernel development, but I was pleased to hear (&lt;a href=&quot;https://www.postgresql.org/message-id/201110282133.18125.andres@anarazel.de&quot;&gt;via Andres Freund&lt;/a&gt;) that the Linux kernel developers have committed a series of patches by Andi Kleen to reduce locking around the lseek() system call. As I &lt;a href=&quot;/blog/2011/08/linux-and-glibc-scalability/&quot;&gt;blogged about back in August&lt;/a&gt;, PostgreSQL calls lseek quite frequently (to determine the file length, not to actually move the file pointer), and due to the performance enhancements in 9.2devel, it’s now much easier to hit the contention problems that can be caused by frequently acquiring and releasing the inode mutex. But it looks like this should be fixed in Linux 3.2, which is now at &lt;a href=&quot;http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=tree;h=01099b45d72a6b9977cebe34b97938b07d00a0b5;hb=1ea6b8f48918282bdca0b32a34095504ee65bab5&quot;&gt;rc1&lt;/a&gt;, and therefore on track to be released well before PostgreSQL 9.2.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2011/11/linux-lseek-scalability/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 14 Nov 2011 17:07:00 GMT</pubDate><category>linux</category><category>postgresql</category></item><item><title>Linux and glibc Scalability</title><link>https://rhaas.dev/blog/2011/08/linux-and-glibc-scalability/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5025841095602433529</guid><description>&lt;p&gt;As some of you probably already know from following the traffic on pgsql-hackers, I’ve been continuing to beat away at the scalability issues around PostgreSQL. Interestingly, the last two problems I found turned out, somewhat unexpectedly, not to be internal bottlenecks in PostgreSQL. Instead, they were bottlenecks with other software with which PostgreSQL was interacting during the test runs.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2011/08/linux-and-glibc-scalability/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 04 Aug 2011 19:39:00 GMT</pubDate><category>glibc</category><category>linux</category><category>postgresql</category></item></channel></rss>