From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11883 invoked by alias); 20 Aug 2015 18:01:27 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 11865 invoked by uid 89); 20 Aug 2015 18:01:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 20 Aug 2015 18:01:25 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 7CE6A344EB1; Thu, 20 Aug 2015 18:01:24 +0000 (UTC) Received: from blade.nx (ovpn-116-91.ams2.redhat.com [10.36.116.91]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7KI1NbB022863; Thu, 20 Aug 2015 14:01:24 -0400 Received: by blade.nx (Postfix, from userid 1000) id 03796262FE6; Thu, 20 Aug 2015 19:01:22 +0100 (BST) Date: Thu, 20 Aug 2015 18:01:00 -0000 From: Gary Benson To: Pedro Alves Cc: Sandra Loosemore , Joel Brobecker , Doug Evans , Jan Kratochvil , gdb-patches , =?iso-8859-1?Q?Andr=E9_P=F6nitz?= , Paul Koning Subject: Re: [PATCH 0/2] Better handling of slow remote transfers Message-ID: <20150820180122.GA15604@blade.nx> References: <20150814182648.GO22245@adacore.com> <55CE6AA3.8000300@codesourcery.com> <20150816184913.GA2998@adacore.com> <20150817085310.GC25320@blade.nx> <55D1EE96.9060202@codesourcery.com> <20150818095858.GB9815@blade.nx> <55D3625B.40101@codesourcery.com> <55D3DB83.4050204@redhat.com> <20150819134242.GA18586@blade.nx> <55D5E84E.5060303@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55D5E84E.5060303@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00556.txt.bz2 Pedro Alves wrote: > Hey, that was a quick and dirty patch. :-) I know, no worries :) > Here's a cleaned up version. WDYT? [snip > This patch almost halves the time it takes to "target remote + run > to main" on a higher-latency connection. > > E.g., I've got a ping time of ~85ms to an x86-64 machine on the gcc > compile farm (almost 2000km away from me), and I'm behind a ~16Mbit > ADSL. When I connect to a gdbserver debugging itself on that machine > and run to main, it takes almost 55 seconds: [snip] > real 0m54.803s > user 0m0.329s > sys 0m0.064s > > While the readahead cache added by this patch, it drops to: > > real 0m29.462s > user 0m0.454s > sys 0m0.054s > > I added a few counters to show cache hit/miss, and got: > > readahead cache miss 142 > readahead cache hit 310 > > Tested on x86_64 Fedora 20. Very nice, please commit! Thanks, Gary -- http://gbenson.net/