Re: [-mm PATCH] Memory controller improve user interface (v3)



On Sun, 2007-09-02 at 16:20 +0530, Balbir Singh wrote:

+Setting a limit to a number that is not a multiple of page size causes
+rounding up of the value. The user must check back to see (by reading
+memory.limit_in_bytes), to check for differences between desired values and
+committed values. Currently, all accounting is done in multiples of PAGE_SIZE

I wonder if we can say this in a bit more generic fashion.

A successful write to this file does not guarantee a successful
set of this limit to the value written into the file. This can
be due to a number of factors, such as rounding up to page
boundaries or the total availability of memory on the system.
The user is required to re-read this file after a write to
guarantee the value committed by the kernel.

This keeps a user from saying "I page aligned the value I stuck in
there, no I don't have to check it."

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: converting float to double
    ... Although I can not see a guarantee from your floating ... rounding, it does not generalise to, e.g., ...
    (comp.lang.c)
  • Re: Round off
    ... rounding to two decimal places which necessarily gives a String. ... The OP asked about rounding a number to 2 decimals - not about converting it ... Number 3.5 is a multiple of ... FAQ 4.6 can be correspondingly changed. ...
    (comp.lang.javascript)
  • Re: backup archive format saved to disk
    ... there is no way to guarantee this. ... having multiple storage locations with multiple copies and a rigorous ... For example, make multiple identical backups. ...
    (Debian-User)
  • Re: Akron Show -- Where to Get a Burger
    ... swensons (ask anyone at the show where they are - they have multiple ... locations) and get a galley boy burger - guarantee you will not be ...
    (rec.games.pinball)
  • Re: Issues with rounding
    ... There's a huge body of literature out there on BIGNUM algorithms including issues of ... Certainly you can round the string representation. ... the position of the rounding digit. ... nearest whole number multiple of this unit. ...
    (microsoft.public.vc.mfc)