From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by sourceware.org (Postfix) with ESMTPS id 3D5063858D39 for ; Fri, 26 Nov 2021 16:07:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3D5063858D39 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N0o3Z-1meUFo0kwH-00wjfc; Fri, 26 Nov 2021 17:07:21 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0706FA80D40; Fri, 26 Nov 2021 17:07:20 +0100 (CET) Date: Fri, 26 Nov 2021 17:07:20 +0100 From: Corinna Vinschen To: "Z. Majeed" Cc: cygwin-developers@cygwin.com Subject: Re: Why is _WIN64 not defined as 1 in _cygwin.h? Message-ID: Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: "Z. Majeed" , cygwin-developers@cygwin.com References: <1016746971.2414349.1637763426878.ref@mail.yahoo.com> <1016746971.2414349.1637763426878@mail.yahoo.com> <743516839.2623934.1637863584991@mail.yahoo.com> <1907344113.875554.1637937234908@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1907344113.875554.1637937234908@mail.yahoo.com> X-Provags-ID: V03:K1:dWWbkuv0uhjiuGRKs+ZSRuTqSfJvAJTkSaOwaqxR/e4c3UM4xMg Ct+2LeiwaXvCVxwUkejLJi9dAdYOpakT+ANtrLndH4uCjAxuNlFlPWc715PlmUYF1qsVOI5 VdqHbmi16b53uhnCSzEFJuQe9Yh9uY1zaHDt9Qyrwi9ocOjxby70hd74OcfeWLBkzu3m8Iu S+0jfEWYdZghl09Tt8GWA== X-UI-Out-Filterresults: notjunk:1;V03:K0:mnYCc/9iEV4=:JbRGg/6iyAa2c8d/rrVouw 0Ccc9aw3mhFgMD+4AeFRBYIS9NmgfPE+V+i1ODvVRAK3QV2WAo82aHB8cGl8VniJfbTt/CdCC X0N79pATxh3Xgb+YA9ffT3dgBk8j28J5RpccpPmtCLrEprVs4Bqf7ZmZUuDTOLAXtGjvmYnvJ LGPsbk5tdlS1CDNwVxvide1d7nkN0E3j46bHzPQZW0w8UTPp1dTmfPNWevcE72ZciK5PF7Rle KeuhoQQLsx+6KYy6kqeoadfOPWx/odBUcOwEwh/ui2XSSuOjVdoIuQSC6s9tQXYpREWwP1zur Dw0ZDNaxFRj3iup1U4lXc/Q9fCb6OONQ4hMgYO9ahG19hyLRDXtuyPT7mLMs6MUfs7Fzh9uq1 Ly+cUXnZFXdHl65jQHoX+yOziiRStxtyc0iaPUGnTcIi2m0HC5YddzoSFEamCt2g12RyMZrKZ TIRYlazFFzxu38jKE6AHyaACFB35ZvY3zkSkaVfbSCPbysY8JAEfbbfylFfpKdIqdLe1T36nh wBCLzsK3TegChT4moIA0XtSPUn8ik0dx/uqltMfiB5mgItsvH5zYoyzFb7R/vrh0yH8vieyCj sWNfwGtG5O742MWykQaEeNujDHzVk2OAxkz+DyPO5WdUx5fd4zWY0Nd/xsjfJEXEkkGzrVFhh dVoHp2NDajNVLpu9y7BcoHbB1ufQdU84eEYMQk4GvuAGjV3wTJXr9Jq/17vL7JhiN2pMEapTY u/SL+h2JQC5jTfFJ X-Spam-Status: No, score=-99.4 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham 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-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2021 16:07:30 -0000 On Nov 26 14:33, Z. Majeed wrote: > Good idea! I planned to combine Linux and Windows parts of the failing test to reproduce the inconsistent VmSize issue - but making use of TBB code for a cygwin feature is great - I actually needed RLIMIT_AS for this port too > I looked at fhandler_process.cc last night - adding VmPeak seems just couple lines using Win32 PeakPagefileUsage > > On Fri, Nov 26, 2021 at 5:47 AM, Corinna Vinschen wrote: On Nov 25 19:51, Corinna Vinschen wrote: > > On Nov 25 18:06, Z. Majeed wrote: > > > Thanks for clearing that up - I'll send a patch to mingw-w64-public > > > > > > The porting tip is appreciated - luckily the need for Win32 in the > > > port has been minimal - it may be obviated completely if I can add > > > VmPeak support - and take care of the other issue - a VmSize number > > > that does not match Win32 PagefileUsage > > > > Yeah, improving Cygwin's /proc/self/status output would be a nice > > option as well, if you'd like to take a stab at it...? > > Btw., wouldn't it be great to use your Windows limitMem function as > template to implement getrlimit/setrlimit(RLIMIT_AS) inside Cygwin? I took a stab at RLIMIT_AS: https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=3502a6ff2e27 Would you mind to take a look? Thanks, Corinna