X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=YJ3msl/xQbJ77O5Oev3QHIB+igEYA Pz5blmUmUMl8EAkik3s5kh9oWNOWdAvVCcS70vDgPw+bk1IZhPQwFHjAoKDsqp+5 Vsu19511d6nT6jlnFP36AvkVZ98tQ1/oYkos5Oj4w+TSP0BfmjBCUlogxIv8cy3U rGIkAaZGl5CP90= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=JAQuCL9S7BOZwOtu4OCIAWfA3Fo=; b=K96 IGdU0/CiVZmlAkGjRUuRhjVFr9h21UtikIWzsQ8pNEizGvFxo4NKKlkjwf6c+8ra fdR2pyFv6LVtrO5bvSWyJ9Nd9yay/Q8l+iXy4NPjA5CctzrW70SMZ32+LB7AYSOT UpYvEdKTpYeAXTT7WA0xtxLAG3i7llCOWi5pQuWc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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 From: Marty Shannon Date: Thu, 4 May 2017 11:00:17 -0400 Message-ID: Subject: [ATTN: procps maintainer] RealPageSize To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 This fix for php (posted by ricardohenrylee AT gmail DOT 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