From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id E6728385841F for ; Sat, 4 Sep 2021 23:18:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E6728385841F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id MVjKm9OfxczbLMew6mGOPw; Sat, 04 Sep 2021 23:18:58 +0000 Received: from [192.168.1.105] ([68.147.0.90]) by cmsmtp with ESMTP id Mew5m9QubU9pxMew5mFPnV; Sat, 04 Sep 2021 23:18:58 +0000 X-Authority-Analysis: v=2.4 cv=Bbi7bph2 c=1 sm=1 tr=0 ts=6133fee2 a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 a=IkcTkHD0fZMA:10 a=iMpC6L0jGsNNbTZxuiUA:9 a=QEXdDO2ut3YA:10 Reply-To: cygwin@cygwin.com Subject: Re: mmap failure [was: cygrunsrv + sshd + rsync = 20 times too slow -- throttled?] To: cygwin@cygwin.com References: <789f056a-f164-d71d-1dc9-230f5a41846d@cornell.edu> <46906957-5850-4D7E-8D5A-EFF3C4068C0D@house.org> <58bdc0c3-d843-343f-d88e-c8a44ec33a15@cornell.edu> <3DB951FB-FC3F-4EE8-B5E0-6137B305B873@house.org> <72F25EBC-6801-4C96-8F6C-48F09B25B712@house.org> <6105153B-D145-449D-97FE-D6F17BEB2032@house.org> <6beb1156-931e-0380-ee60-2ca519f49a2f@cornell.edu> From: Brian Inglis Organization: Systematic Software Message-ID: Date: Sat, 4 Sep 2021 17:18:57 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfG1P0KK5VzSUldr+Iid09oT5+iBYuiVuJDFSbBbVR12mWVJ+IS3A/Oo6O9EQEs+alWJyJkVUIeh0PYhnCkQTEE7pryoo10JSx9UIpRwusdFHESIehswl TereaV7aIGZl+1YbLA+6ywDJDFDAxLkVoFvSuAYEDSYWeJ8wdk7QfDk0PCXSpXzSDqGQTpJPq7TYoZwqHt8Avec/HLAEsfgD8YA= X-Spam-Status: No, score=-1167.1 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2021 23:18:59 -0000 On 2021-09-04 16:37, Ken Brown via Cygwin wrote: > I've reduced the procps failure to the following test case: > > $ cat mmap_test.c > #include > #include > #include > > int > main () > { >   void *addr; >   int page_size = getpagesize (); > >   addr = mmap (0, page_size, PROT_READ | PROT_WRITE, >                MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); >   if (addr == MAP_FAILED) >     perror ("mmap"); > } > > $ gcc mmap_test.c > > $ ./a > mmap: Invalid argument Check on Linux and retry on Cygwin without MAP_PRIVATE? MAP_PRIVATE implies an fd but MAP_ANON does not, and MAP_ANON is in Linux(2)/Unix? not POSIX(3p). -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]