From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7880 invoked by alias); 4 May 2017 15:00:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 124652 invoked by uid 89); 4 May 2017 15:00:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=resident, marty, attn X-HELO: mail-yb0-f172.google.com Received: from mail-yb0-f172.google.com (HELO mail-yb0-f172.google.com) (209.85.213.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 May 2017 15:00:19 +0000 Received: by mail-yb0-f172.google.com with SMTP id s22so4113789ybe.3 for ; Thu, 04 May 2017 08:00:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NtwwSiEdMHvkZuw/Xk/3IUJURIomABK6VUyNBLy/yI8=; b=k6JMEUpdYswP9zkC9X5oIbIr9iInZxnqHkhYWm2yAtzADysJMVuTBc9PUYRtKsv1eP 9ylWqiUMsz3labGh8qgMRlIZ14xD/+k1M1CJuDk2M1FDBb5YGk5cIwUFub26TuIhZL8y oNzlRFRCM8HoXhPAS9nJf1Al+WGsXHAsdxESxUuVrJwgnhxkOaU0ifT8wNWxUa+G8rr6 pWWGpOei9V8o7Pbq2D0e73MrG5V0WNMaohY249kbvErCwOS92V8e0MTNszjZ42JjEvUM kotBGAA7WBuNFDkA3Ndo6iSYDNDBAAFq+qs06FHvTLDQMUezG1jWt2FVKWdbEY8o2h+e g+PA== X-Gm-Message-State: AN3rC/42AykRUJ5PMNSScMWPH7Dh17vjJDO+L37AB5BlHN9cAI8Bel7k SboMnrvDFdA6I+PUGciYHMaShmFCEd5u X-Received: by 10.37.204.205 with SMTP id l196mr34105462ybf.158.1493910018306; Thu, 04 May 2017 08:00:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.155.74 with HTTP; Thu, 4 May 2017 08:00:17 -0700 (PDT) From: Marty Shannon Date: Thu, 04 May 2017 15:00:00 -0000 Message-ID: Subject: [ATTN: procps maintainer] RealPageSize To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-05/txt/msg00049.txt.bz2 This fix for php (posted by ricardohenrylee@gmail.com) should be applied to the code for "top"; it (and /usr/bin/time -v) think the page size is actually 64k, and reports RESident size as 16 times what it should be. # if HAVE_UNISTD_H # include # if defined(_SC_PAGESIZE) +# ifdef __CYGWIN__ +# define REAL_PAGE_SIZE 4096 +# else # define REAL_PAGE_SIZE sysconf(_SC_PAGESIZE); +# endif # elif defined(_SC_PAGE_SIZE) # define REAL_PAGE_SIZE sysconf(_SC_PAGE_SIZE); # endif Cheers, Marty -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple