apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_file.c
Date Tue, 27 Nov 2001 23:50:47 GMT
dougm       01/11/27 15:50:47

  Modified:    include  apr_mmap.h
               buckets  apr_buckets_file.c
  Log:
  move MMAP_{THRESHOLD,LIMIT} defines to apr_mmap.h so they can be used elsewhere
  
  Revision  Changes    Path
  1.27      +16 -0     apr/include/apr_mmap.h
  
  Index: apr_mmap.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_mmap.h,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- apr_mmap.h	2001/11/21 17:00:50	1.26
  +++ apr_mmap.h	2001/11/27 23:50:47	1.27
  @@ -117,6 +117,22 @@
   
   #if APR_HAS_MMAP || defined(DOXYGEN)
   
  +/* Files have to be at least this big before they're mmap()d.  This is to deal
  + * with systems where the expense of doing an mmap() and an munmap() outweighs
  + * the benefit for small files.  It shouldn't be set lower than 1.
  + */
  +#ifndef MMAP_THRESHOLD
  +#  ifdef SUNOS4
  +#    define MMAP_THRESHOLD                (8*1024)
  +#  else
  +#    define MMAP_THRESHOLD                1
  +#  endif /* SUNOS4 */
  +#endif /* MMAP_THRESHOLD */
  +
  +#ifndef MMAP_LIMIT
  +#  define MMAP_LIMIT                      (4*1024*1024)
  +#endif /* MMAP_LIMIT */
  +
   /*   Function definitions */
   
   /** 
  
  
  
  1.59      +0 -15     apr-util/buckets/apr_buckets_file.c
  
  Index: apr_buckets_file.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_file.c,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- apr_buckets_file.c	2001/11/25 04:20:14	1.58
  +++ apr_buckets_file.c	2001/11/27 23:50:47	1.59
  @@ -66,21 +66,6 @@
    * <http://www.isi.edu/~johnh/SOFTWARE/APACHE/index.html>.
    */
   
  -/* Files have to be at least this big before they're mmap()d.  This is to deal
  - * with systems where the expense of doing an mmap() and an munmap() outweighs
  - * the benefit for small files.  It shouldn't be set lower than 1.
  - */
  -#ifndef MMAP_THRESHOLD
  -#  ifdef SUNOS4
  -#  define MMAP_THRESHOLD                (8*1024)
  -#  else
  -#  define MMAP_THRESHOLD                1
  -#  endif /* SUNOS4 */
  -#endif /* MMAP_THRESHOLD */
  -#ifndef MMAP_LIMIT
  -#define MMAP_LIMIT              (4*1024*1024)
  -#endif
  -
   #endif /* APR_HAS_MMAP */
   
   static void file_destroy(void *data)
  
  
  

Mime
View raw message