From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 2531C1F953 for ; Wed, 15 Dec 2021 21:35:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229833AbhLOVfA convert rfc822-to-8bit (ORCPT ); Wed, 15 Dec 2021 16:35:00 -0500 Received: from elephants.elehost.com ([216.66.27.132]:14279 "EHLO elephants.elehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbhLOVe7 (ORCPT ); Wed, 15 Dec 2021 16:34:59 -0500 X-Virus-Scanned: amavisd-new at elehost.com Received: from Mazikeen (cpe00fc8d49d843-cm00fc8d49d840.cpe.net.cable.rogers.com [99.229.22.139] (may be forged)) (authenticated bits=0) by elephants.elehost.com (8.15.2/8.15.2) with ESMTPSA id 1BFLYpVm032338 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 15 Dec 2021 16:34:51 -0500 (EST) (envelope-from rsbecker@nexbridge.com) Reply-To: From: To: "'Jacob Vosmaer'" Cc: "'Junio C Hamano'" , , , References: <20211214194626.33814-1-jacob@gitlab.com> <20211214194626.33814-2-jacob@gitlab.com> <003001d7f1ee$48c88410$da598c30$@nexbridge.com> <003301d7f1f3$c1e24f20$45a6ed60$@nexbridge.com> In-Reply-To: Subject: RE: [PATCH v2 1/1] upload-pack.c: increase output buffer size Date: Wed, 15 Dec 2021 16:34:45 -0500 Organization: Nexbridge Inc. Message-ID: <003401d7f1fb$976e1be0$c64a53a0$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIouFwJmPFhmz4Fe3UZ8hmRUMo3gwJyt/wXAnwpaG4BGKhHDAG5f57uAcRI1QEBtt7wQwKTYly5qyQJkFA= Content-Language: en-ca Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On December 15, 2021 3:45 PM, Jacob Vosmaer wrote: > On Wed, Dec 15, 2021 at 9:38 PM wrote: > > > > The maximum I/O size on the platform is 56Kb. Anything larger will fail. > That's why we use xread and xwrite for non-buffered I/O. > > That sounds like it's orthogonal to what this patch is changing. > Regardless of this patch, the actual writes are performed by write_or_die, > which calls write_in_full. In turn, write_in_full calls xwrite however often is > necessary. We are not making any assumptions anywhere about how large > individual write syscalls turn out. Git packets use userspace buffers so we can > read and write them no matter what the underlying IO sizes are. In that case, it works for me. xread/xwrite know how to deal with the situation. Thanks for the clarification. -Randall