Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 17A966500C9 for ; Wed, 23 Jul 2008 17:43:31 -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 53024-07 for ; Wed, 23 Jul 2008 17:43:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by postgresql.org (Postfix) with ESMTP id A4F1A64FCCC for ; Wed, 23 Jul 2008 17:43:27 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id n4so1516892wag.5 for ; Wed, 23 Jul 2008 13:43:26 -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=eLiaqoJiwWtZummu3sn/VC9y/XG0ir6pkhQc2fDwg4g=; b=MyFET8vbFeshSf+5zxOiiTwNr3YoniP+lB46G/a1a4n9hoRrpeMJ7CPV6ak7tnzzmV zR617pLHcNjXCoUqf77iJobcT7nhtE9tXa1rT+vcw1PW5mwW+nzciRCLu0VrF7mBI/rS BQ/KuMU0R8urOLxNOZjHyFS4EkHMLX2L+CIcY= 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=j5Fd0N2uDyPP9iaoL93yTDWCPfGw531CjlpgmsVlTCaItEwi8oN8ixlUhj0Ow3WdRL blYc0QVEDqdcHiD+OFc8IxVcsbHadOJQZfntJyNOYlxD7Mcmv9me0olHAUAQsOcp0qu0 UjKXp3yIzizqNC6wYbdShAPSHQ6EbqHgN5FMA= Received: by 10.115.22.1 with SMTP id z1mr169249wai.99.1216845805989; Wed, 23 Jul 2008 13:43:25 -0700 (PDT) Received: by 10.114.130.17 with HTTP; Wed, 23 Jul 2008 13:43:25 -0700 (PDT) Message-ID: Date: Wed, 23 Jul 2008 14:43:25 -0600 From: "Scott Marlowe" To: Miernik Subject: Re: how to fix problem then when two queries run at the same time, it takes longer to complete then if run in sequence Cc: pgsql-performance@postgresql.org In-Reply-To: <20080723203203.31C4.0.NOFFLE@turbacz.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080723152112.30A4.0.NOFFLE@turbacz.local> <20080723203203.31C4.0.NOFFLE@turbacz.local> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1 tagged_above=0 required=5 tests=FB_WORD1_END_DOLLAR=1 X-Spam-Level: * X-Archive-Number: 200807/221 X-Sequence-Number: 30821 On Wed, Jul 23, 2008 at 2:32 PM, Miernik wrote: > Scott Marlowe wrote: >> won't ever run into. Why such an incredibly limited virtual machine? >> Even my cell phone came with 256 meg built in two years ago. > > Because I don't want to spend too much money on the machine rent, and a > 48 MB RAM Xen is about all I can get with a budget of 100$ per year. > Well, there are a few providers which will give me a 128 MB Xen for that > money, but will the difference in performance be worth the hassle to > switch providers? My current provider gives me almost perfect > relaliability for that 100$ and I don't know how the providers which > give more RAM for the same money perform, maybe they are often down or > something. And spending more then 100$ yearly on this would be really > overkill. My thing runs fine, only a bit slow, but reasonable. I just > want to find out if I could maybe make it better with a little tweaking. > Can I expect it to work at least three times faster on 128 MB RAM? > Getting 256 MB would certainly cost too much. Or maybe there are some > providers which can give me much more performance PostgreSQL server with > at least several GB of storage for well... not more then 50$ per year. > (because I must still rent another server to run and SMTP server and few > other small stuff). > > My DB has several tables with like 100000 to 1 million rows each, > running sorts, joins, updates etc on them several times per hour. > About 10000 inserts and selects each hour, the whole DB takes 1.5 GB on > disk now, 500 MB dumped. > > If I could shorten the time it takes to run each query by a factor of 3 > that's something worth going for. Well, my guess is that by running under Xen you're already sacrificing quite a bit of performance, and running it with only 48 Megs of ram is making it even worse. But if your budget is $100 a year, I guess you're probably stuck with such a setup. I would see if you can get a trial Xen at the other hosts with 128M or more of memory and compare.