Changeset be708ff in rtems-libbsd


Ignore:
Timestamp:
Nov 21, 2016, 1:56:59 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
5ede682
Parents:
b988014
git-author:
Sebastian Huber <sebastian.huber@…> (11/21/16 13:56:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/20/17 12:59:54)
Message:

ZONE(9): Reduce BUCKET_MAX to 128

Reduces the worst-case per-processor caches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/vm/uma_core.c

    rb988014 rbe708ff  
    227227    (((sizeof(void *) * (n)) - sizeof(struct uma_bucket)) / sizeof(void *))
    228228
     229#ifndef __rtems__
    229230#define BUCKET_MAX      BUCKET_SIZE(256)
     231#else /* __rtems__ */
     232#define BUCKET_MAX      BUCKET_SIZE(128)
     233#endif /* __rtems__ */
    230234
    231235struct uma_bucket_zone bucket_zones[] = {
     
    238242        { NULL, "64 Bucket", BUCKET_SIZE(64), 256 },
    239243        { NULL, "128 Bucket", BUCKET_SIZE(128), 128 },
     244#ifndef __rtems__
    240245        { NULL, "256 Bucket", BUCKET_SIZE(256), 64 },
     246#endif /* __rtems__ */
    241247        { NULL, NULL, 0}
    242248};
     
    734740}
    735741
     742#ifndef __rtems__
    736743static void
    737744cache_shrink(uma_zone_t zone)
     
    783790}
    784791
    785 #ifndef __rtems__
    786792/*
    787793 * Safely drain per-CPU caches of a zone(s) to alloc bucket.
Note: See TracChangeset for help on using the changeset viewer.