Changeset: 89070599e2d6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=89070599e2d6
Modified Files:
        MonetDB/src/gdk/gdk_system.mx
Branch: Jun2010
Log Message:

Drop legacy (and wrong) physical memory detection intended for Linux 2.4


diffs (27 lines):

diff -r 1518b13bbac5 -r 89070599e2d6 MonetDB/src/gdk/gdk_system.mx
--- a/MonetDB/src/gdk/gdk_system.mx     Mon Jun 28 20:29:29 2010 +0200
+++ b/MonetDB/src/gdk/gdk_system.mx     Tue Jun 29 14:50:44 2010 +0200
@@ -372,22 +372,7 @@
 #  if defined(HAVE_SYSCONF) && defined(_SC_PHYS_PAGES)
        _MT_npages = sysconf(_SC_PHYS_PAGES);
 #  else
-#   if defined(HAVE_GETRLIMIT) && defined(RLIMIT_RSS)
-       {
-               struct rlimit rl;
-
-               /* Specifies the limit (in pages) of the process's resident set
-                * (the number of virtual pages resident in RAM). This limit
-                * only has effect in Linux 2.4.x, x < 30, and there only
-                * affects calls to madvise() specifying MADV_WILLNEED */
-               /* FIXME: this looks like a total wrong thing to check in any
-                * case to me */
-               getrlimit(RLIMIT_RSS, &rl);
-               _MT_npages = rl.rlim_cur / _MT_pagesize;
-       }
-#   else
-#    error "don't know how to get the amount of physical memory for your OS"
-#   endif /* getrlimit */
+#   error "don't know how to get the amount of physical memory for your OS"
 #  endif /* sysconf */
 # endif        /* GlobalMemoryStatus */
 #endif /* GlobalMemoryStatusEx */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to