From mboxrd@z Thu Jan 1 00:00:00 1970 From: ezyang@MIT.EDU (Edward Z. Yang) Date: Wed, 3 Jun 2009 21:53:12 -0400 (EDT) Subject: [sup-talk] Sup is hangingyy In-Reply-To: <1244078482-sup-4986@javelin> References: <1244050695-sup-5990@javelin> <1244053108-sup-4982@javelin> <1244064889-sup-9506@entry> <1244078482-sup-4986@javelin> Message-ID: On Wed, 3 Jun 2009, Edward Z. Yang wrote: > The second is a large amount of CPU thrashing as Sup parses messages. This > is something we can fix, and I hope to do some more poking to help make > Sup run faster in this respect. The basic behavior is Sup repeatedly > allocates some amount of memory, reallocates it twice (quadrupling it > in size to about 4MB), deallocates, and then does it again. I'm running > ruby-prof in hopes of tickling this again. Unlike the hung IMAP server, > this eventually finishes, but it is extremely obnoxious when it happens > and blocks everything else. It commonly occurs when I open an email message. Here we go: http://web.mit.edu/~ezyang/Public/sup-performance.png Look at String::=~. Definitely not acceptable. Cheers, Edward