[ATTN: procps maintainer] RealPageSize
Marty Shannon
mjshannon3@gmail.com
Thu May 4 15:00:00 GMT 2017
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
More information about the Cygwin
mailing list