Menu

#24 memory controller control values

open
None
5
2008-10-06
2008-08-14
No

Hi
I find while setting control values for memory controller to 7000000, the value being written was found to be 7000064 without any error or warning. Because of this issue testcases for cgroup_modify_cgroup() were failing. This seems to be the standard thing (minimum unit), which I am not very sure of. How will it change with architecture?
So far I have chabged the values to 700064, which however does not seem to be a perfect solution. I am sending the patch now.

Please let me know what to do for this?

thanks
Sudhir

Discussion

  • Balbir Singh

    Balbir Singh - 2008-10-06
    • assigned_to: nobody --> balbir_singh
     
  • Balbir Singh

    Balbir Singh - 2008-10-06

    memory.limit_in_bytes is always rounded to page size. We've documented it in the code, since we can't support partial page size control. This is expected behaviour.

    Closing this if it is OK with you.
    Balbir

     

Log in to post a comment.