From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailg210.ethz.ch (mailg210.ethz.ch [IPv6:2001:67c:10ec:5606::21]) by sourceware.org (Postfix) with ESMTPS id 57CA7385803D for ; Sat, 2 Jan 2021 21:38:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 57CA7385803D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=student.ethz.ch Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=koenigni@student.ethz.ch Received: from mailm211.d.ethz.ch (2001:67c:10ec:5603::25) by mailg210.ethz.ch (2001:67c:10ec:5606::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Sat, 2 Jan 2021 22:37:52 +0100 Received: from [192.168.0.45] (80.218.161.162) by mailm211.d.ethz.ch (2001:67c:10ec:5603::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Sat, 2 Jan 2021 22:38:10 +0100 Subject: Re: Update on shared memory coarrays To: Iain Sandoe , Thomas Koenig CC: Fortran List , References: <3d57a473-4025-890d-d365-6c2f82e7f513@netcologne.de> <0e1c519febec1c47c411339269455b9d@free.fr> <7e332e70-246e-b44e-7689-477642bf114c@netcologne.de> <23f5fbb548e75b1a5029162b31a8ddd7@free.fr> <522f101eda4e212f98f1f071165a46e5@free.fr> <79fdfc28ee95e21ba173dad5780b4e02@free.fr> <0770e8fb5b4b479afc98be8cf6221cc5@free.fr> <1a63faebd65be2a76627a7873d74c0c8@free.fr> <86fa53e3-155d-1912-8b88-b0789323ee09@netcologne.de> <2d94ef13-e12e-b941-dcb0-a9a79362f2d5@netcologne.de> <6D26C802-E6E0-473F-BB17-A9B373541980@sandoe.co.uk> From: =?UTF-8?Q?Nicolas_K=c3=b6nig?= Message-ID: Date: Sat, 2 Jan 2021 23:37:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <6D26C802-E6E0-473F-BB17-A9B373541980@sandoe.co.uk> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [80.218.161.162] X-ClientProxiedBy: mailm116.d.ethz.ch (2001:67c:10ec:5602::28) To mailm211.d.ethz.ch (2001:67c:10ec:5603::25) X-TM-SNTS-SMTP: 276A5FDAC7303A55F52C0E6A76BE009D269551203364764C7F541DAA7AD0D6D02000:8 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, LIKELY_SPAM_FROM, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2021 21:38:14 -0000 Hello Iain, On 02/01/2021 21:55, Iain Sandoe wrote: > Thomas Koenig via Fortran wrote: > >>> map_memory image 0 size 1000 offset 0 pagesize 1000 >>> map_memory image 0 size 2000 offset 0 pagesize 1000 > > pagesize 1000? Pretty sure that's hex :) > > Darwin’s pagesize is 4096 for PPC/X86 and 16384 for Arm64(aarch64). > >>> mmap failed: Invalid argument >> >> That means that a rewrite of shared_memory.c and shared_memory.h >> is required. >> >> I checked the attached program on every Unixoid system I >> could lay my hands on (Linux, AIX, OpenBSD, NetBSD, FreeBSD, >> OpenSolaris), and it passed everywhere.  Seems like MacOS >> is the only one where this particular idiom does not work. > > Perhaps I’m missing what the idiom is here :) At the moment, we are double-mapping pages in the shared_memory. This was on the list of things that should be changed, but according to Thomas's tests, you can't do this on MacOS, so it just got a whole lot more important. Nicolas > > (a bit tied up with other things at the moment so mainly watching from >  the peanut gallery for now) > > Iain >