From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64369 invoked by alias); 12 Aug 2015 17:33:51 -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 63638 invoked by uid 89); 12 Aug 2015 17:33:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Aug 2015 17:33:50 +0000 Received: from svr-orw-fem-06.mgc.mentorg.com ([147.34.97.120]) by relay1.mentorg.com with esmtp id 1ZPZuM-0003hP-Uk from Sandra_Loosemore@mentor.com ; Wed, 12 Aug 2015 10:33:46 -0700 Received: from [IPv6:::1] (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.3.224.2; Wed, 12 Aug 2015 10:33:46 -0700 Message-ID: <55CB8300.3060004@codesourcery.com> Date: Wed, 12 Aug 2015 17:33:00 -0000 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Gary Benson CC: , Pedro Alves , Doug Evans Subject: Re: [PATCH] Make remote transfers interruptible References: <55C3A10F.3010106@codesourcery.com> <1439389814-29211-1-git-send-email-gbenson@redhat.com> In-Reply-To: <1439389814-29211-1-git-send-email-gbenson@redhat.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-08/txt/msg00304.txt.bz2 On 08/12/2015 08:30 AM, Gary Benson wrote: > Hi Sandra, > > Sandra Loosemore wrote: >> On 08/05/2015 09:28 AM, Gary Benson wrote: >>> This commit makes it possible to interrupt slow remote file transfers. >>> >>> gdb/ChangeLog: >>> >>> * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call. >> >> It still does not work for me. :-( > > Could you please try this newer version and see if it allows you to > interrupt the remote transfers? This version still doesn't make the transfer interruptable with ^C. *But*, with this patch, the startup time is reduced from 4 minutes to 19 seconds. Huh? Is it really transferring the entire file contents, or was the time being used for some GDB-side operation that is quadratic or exponential in the size of the read requested rather than the actual byte transfer? Independently of the ^C issue, I think we need to better understand what is going on here and better tune the code on both sides of the RSP for large file transfers. Even if a user asks for target-side libraries explicitly, 4 minutes to transfer one library doesn't provide a good user experience, and 19 seconds isn't so great either when you consider that some interactive applications link with dozens of GUI or multimedia libraries and not just glibc. -Sandra