From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18695 invoked by alias); 26 Jul 2011 00:28:08 -0000 Received: (qmail 18687 invoked by uid 22791); 26 Jul 2011 00:28:07 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Jul 2011 00:27:49 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6Q0Rnn6016642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Jul 2011 20:27:49 -0400 Received: from host1.jankratochvil.net (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6Q0RkkJ003183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Jul 2011 20:27:48 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p6Q0RhA1019855; Tue, 26 Jul 2011 02:27:43 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p6Q0RgIV018970; Tue, 26 Jul 2011 02:27:42 +0200 Date: Tue, 26 Jul 2011 02:55:00 -0000 From: Jan Kratochvil To: Paul Pluzhnikov Cc: gdb-patches@sourceware.org Subject: Re: [RFC][patch] Make DCACHE_LINE runtime-settable Message-ID: <20110726002740.GA10655@host1.jankratochvil.net> References: <20110722222025.ED9B6190B14@elbrus2.mtv.corp.google.com> <20110725190008.GA30896@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2011-07/txt/msg00715.txt.bz2 On Mon, 25 Jul 2011 22:21:18 +0200, Paul Pluzhnikov wrote: > On Mon, Jul 25, 2011 at 12:00 PM, Jan Kratochvil wrote: > > I have seen some of the target_read_memory requests are needlessly fragmented > > into LINE_SIZE_POWER sized read requests.  Have you considered making the > > gdbserver protocol read requests size dynamic depending on the caller's > > requested read size? > > Uhm. The caller read request size here is 8 bytes (else I didn't > understand what you are suggesting): I was rechecking now the problem of consecutive small reads: Sending packet: $m152bfc0,4#c0...Packet received: 2f757372 Sending packet: $m152bfc4,4#c4...Packet received: 2f6c6962 Sending packet: $m152bfc8,4#c8...Packet received: 36342f72 Sending packet: $m152bfcc,4#f3...Packet received: 65646c61 and they come from target_read_string - which you already solve in the other thread. I had wrong expectation they come from large memory transfer requests. Thanks, Jan