minio/pkg
Harshavardhana b363709c11 caching: Optimize memory allocations. (#3405)
This change brings in changes at multiple places

 - Reuse buffers at almost all locations ranging
   from rpc, fs, xl, checksum etc.
 - Change caching behavior to disable itself
   under low memory conditions i.e < 8GB of RAM.
 - Only objects cached are of size 1/10th the size
   of the cache for example if 4GB is the cache size
   the maximum object size which will be cached
   is going to be 400MB. This change is an
   optimization to cache more objects rather
   than few larger objects.
 - If object cache is enabled default GC
   percent has been reduced to 20% in lieu
   with newly found behavior of GC. If the cache
   utilization reaches 75% of the maximum value
   GC percent is reduced to 10% to make GC
   more aggressive.
 - Do not use *bytes.Buffer* due to its growth
   requirements. For every allocation *bytes.Buffer*
   allocates an additional buffer for its internal
   purposes. This is undesirable for us, so
   implemented a new cappedWriter which is capped to a
   desired size, beyond this all writes rejected.

Possible fix for #3403.
2016-12-08 20:35:07 -08:00
..
bpool optimize memory allocation during erasure-read by using temporary buffer pool. (#2259) 2016-07-25 14:17:01 -07:00
disk posix: Fix windows performance issues. (#3132) 2016-10-31 09:34:44 -07:00
mimedb api: BucketNotification should disallow duplicate notification. (#2539) 2016-08-23 18:42:30 -07:00
objcache caching: Optimize memory allocations. (#3405) 2016-12-08 20:35:07 -08:00
quick Fix spelling and golint errors. (#3266) 2016-11-15 18:14:23 -08:00
safe api/handlers: Implement streaming signature v4 support. (#2370) 2016-08-08 20:56:29 -07:00
sys build: Add platform specific fixes. 2016-08-16 14:40:41 -07:00
wildcard pkg/wildcard: Simplify the wildcard logic further. (#2555) 2016-08-27 00:27:17 -07:00