From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-145401-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 60BF8138A91 for <garchives@archives.gentoo.org>; Sat, 16 Feb 2013 19:56:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6584421C006; Sat, 16 Feb 2013 19:55:44 +0000 (UTC) Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CC4AFE0509 for <gentoo-user@lists.gentoo.org>; Sat, 16 Feb 2013 19:55:42 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id d7so3682757wer.36 for <gentoo-user@lists.gentoo.org>; Sat, 16 Feb 2013 11:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=oPsoGCUf6tkY5jU6ec0GI35yxJCt5RPTplp7BpKGmzg=; b=vkrtH5qLDvWdVvPtLt05hB7R0TgXsE6DT0ogLcBU5F8hsbDCIEBCzkOdnerfWQQwCp Uqlcfryl05aaLkGv/mRMfPf/zcqjrRfYsaRdTocJxi0bR89iRYU2c27ggJHZaxw0yN5l BJoik65Av4MpnWO0o47XZavVbLU5Yq3vzweK/ZhfWo+ipE1UzAZEcpA+ZGLms3JIbjK0 6tnDcRi82LqUI0c3TbGRPACvbbee9TWh/lq7wceHiCFK6jA4wvoJtPUF1GialIro7OT/ 9A77ivwbAGAXVgmikuZmLVd3gcYRzEN06piLZVt7WziIo3Hl0QAEDj2UN5G8Fsp9TOWk H7Yw== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.194.242.69 with SMTP id wo5mr10896774wjc.10.1361044541170; Sat, 16 Feb 2013 11:55:41 -0800 (PST) Received: by 10.194.242.103 with HTTP; Sat, 16 Feb 2013 11:55:41 -0800 (PST) In-Reply-To: <51194D41.8010508@gmail.com> References: <CAN0CFw0Zcn5BtzHbOVELrN+ihJ1B93+=Cr+YAfkSXJrSsuD__g@mail.gmail.com> <5113DA25.7060408@gmail.com> <CAN0CFw1bfy8huhECBFyn3H_XpOfJGPZ-BjPpXo5mGLaC_5ihHQ@mail.gmail.com> <CA+czFiCe1u=b9m+bt95Bdo9WAi6EULqBG1GqCRsZs62nWVon4w@mail.gmail.com> <CAN0CFw3hx7huykjkkujppjBcY=ZMhnYg=Sd1iM=gvvX3BxmoYg@mail.gmail.com> <5115BB67.9010307@gmail.com> <CAN0CFw25qnTpJ+6ZHMCErT1wdAU4GeNnaXg+=UwoZPj9MxWGcQ@mail.gmail.com> <51192DC5.6040802@gmail.com> <51194D41.8010508@gmail.com> Date: Sat, 16 Feb 2013 11:55:41 -0800 Message-ID: <CAN0CFw3A2Ym7Re8SABZx8vVuvVpET8HOi17V5_jdGSXxka7qrg@mail.gmail.com> Subject: Re: [gentoo-user] {OT} LWP::UserAgent slows website From: Grant <emailgrant@gmail.com> To: Gentoo mailing list <gentoo-user@lists.gentoo.org> Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: c12bebc7-c9df-489e-be0b-23ff020155dc X-Archives-Hash: 71703c2ce0b3dbc7a6fd592ac0d51238 >> Now that's a new (and important!) piece of information. Your server >> runs slow for 10 *minutes* after your script has made its request? >> >> To me, that indicates that important data wound up getting swapped to >> disk on the server, and the slow behavior reported by other users is >> the result of that data being swapped back in on-demand. >> >> That also indicates that your script's requests (and, possibly, >> request pattern) cause some process in the server to allocate far more >> memory than usual, which is why the server is swapping things to disk. OK, thank you for the explanation. That does make sense. > I agree. My rule of thumb was always that I must prevent Apache swapping > at all costs as the performance impact is horrific. > > It doesn't have to mean installing more RAM (which is quick, easy, cheap > and often rather effective), sensible optimizations can work wonders > too, as can nginx as a proxy in front of Apache. I've been using net-mail/up-imapproxy but the initscript has issues. Is nginx good for IMAP too? - Grant