This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[ATTN: procps maintainer] RealPageSize
- From: Marty Shannon <mjshannon3 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 4 May 2017 11:00:17 -0400
- Subject: [ATTN: procps maintainer] RealPageSize
- Authentication-results: sourceware.org; auth=none
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 <unistd.h>
# 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