Changeset b988014 in rtems-libbsd


Ignore:
Timestamp:
Apr 26, 2016, 1:02:00 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
be708ff
Parents:
a8e84c6
git-author:
Sebastian Huber <sebastian.huber@…> (04/26/16 13:02:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/20/17 12:59:54)
Message:

ZONE(9): Fix uma_zone_set_max()

Account for items provided for per-processor caches.

File:
1 edited

Legend:

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

    ra8e84c6 rb988014  
    30173017                return (0);
    30183018        KEG_LOCK(keg);
     3019#ifdef __rtems__
     3020#ifdef SMP
     3021        /*
     3022         * Ensure we have enough items to fill the per-processor caches.  This
     3023         * is a heuristic approach and works not under all conditions.
     3024         */
     3025        nitems += 2 * BUCKET_MAX * (mp_maxid + 1);
     3026#endif
     3027#endif /* __rtems__ */
    30193028        keg->uk_maxpages = (nitems / keg->uk_ipers) * keg->uk_ppera;
    30203029        if (keg->uk_maxpages * keg->uk_ipers < nitems)
Note: See TracChangeset for help on using the changeset viewer.