20 Matching Annotations
  1. Mar 2025
    1. n->colour_next++; if (n->colour_next >= cachep->colour) n->colour_next = 0; offset = n->colour_next; if (offset >= cachep->colour) offset = 0; offset *= cachep->colour_off;

      Colors are rotated through for cache coloring and offset values for next slab is calculated.

    2. cachep->align = ralign; cachep->colour_off = cache_line_size(); /* Offset must be a multiple of the alignment. */ if (cachep->colour_off < cachep->align) cachep->colour_off = cachep->align;

      defines cache coloring alignments to ensure objects likely to be accessed together aren't placed in the same cache lines

    3. size_t slab_size = PAGE_SIZE << gfporder;

      slab size is fixed based off whatever value for the page order is passed in

  2. Feb 2025
    1. pressure = scale - (reclaimed * scale / scanned); pressure = pressure * 100 / scale;

      Calculates pressure via reclaim efficiency rather than actual memory pressure.

    1. static ssize_t general_profit_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)

      Can be used to evaluate most efficient use of ksm

    1. if (new_order < MAX_PAGECACHE_ORDER) {

      Adjusts new_order so that it's balanced with the readahead window size while increasing it as much as possible.

    2. if (cur < max / 16) return 4 * cur; if (cur <= max / 2) return 2 * cur;

      Set values for scaling readahead window. Might be too minor to need changes though.

    3. unsigned long newsize = roundup_pow_of_two(size); if (newsize <= max / 32) newsize = newsize * 4; else if (newsize <= max / 4) newsize = newsize * 2; else newsize = max; return newsize;

      These are all heuristics to determine intial readahead size. Trades potentially memory overuse for faster access. Could be changed to not use these hardcoded values.

  3. Oct 2024
  4. Sep 2022
    1. But Poisson statisticspredicts that there will be some empty droplets (1,642 empty droplets) and gives a preciserelationship between the average number of copies/droplet and the expected fraction ofempty droplets.

      @Esther?

  5. Apr 2021
  6. Aug 2020
    1. Imagine you prompted the model with “What is one plus one?” I actually don’t know how it would do on this problem. I’m guessing it would answer “two”, just because the question probably appeared a bunch of times in its training data. Now imagine you prompted it with “What is four thousand and eight plus two thousand and six?” or some other long problem that probably didn’t occur exactly in its training data. I predict it would fail, because this model can’t count past five without making mistakes. But I imagine a very similar program, given a thousand times more training data and computational resources, would succeed. It would notice a pattern in sentences including the word “plus” or otherwise describing sums of numbers, it would figure out that pattern, and it would end up able to do simple math. I don’t think this is too much of a stretch given that GPT-2 learned to count to five and acronymize words and so on.

      This is also borne out in my own tests. Easy calculations, the likes of which the model must have seen or easily learnt, it does well on. More exotic ones not so much.

      What is interesting is that what predicts whether or not GPT3 is able to do the calculation is not the difficulty of the calculation, but the likelihood it occurred in its training.

  7. Jul 2020
    1. LoD = LoB + 1.645(SD low concentration sample)

      LoD is the lowest analyte concentration likely to be reliably distinguished from the LoB and at which detection is feasible. LoD is determined by utilising both the measured LoB and test replicates of a sample known to contain a low concentration of analyte.

      LoB is the highest apparent analyte concentration expected to be found when replicates of a blank sample containing no analyte are tested.

      LoB = meanblank + 1.645(SDblank)

  8. May 2020
  9. Apr 2020
  10. Feb 2020
  11. Apr 2018
  12. Oct 2013
    1. When, however, something is to be done, and we are speaking to those who ought, but are not willing, to do it, then great matters must be spoken of with power, and in a manner calculated to sway the mind.

      The word calculated carries overtones of manipulation without emotion or concern