diff options
author | Minchan Kim <[email protected]> | 2014-10-09 15:29:53 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-10-09 22:26:02 -0400 |
commit | 9ada9da9573f3460b156b7755c093e30b258eacb (patch) | |
tree | 45d38673aa9bc81b99131a3a3c5e1e97292bb5f5 /net/lapb/lapb_subr.c | |
parent | 722cdc17232f0f684011407f7cf3c40d39457971 (diff) |
zram: zram memory size limitation
Since zram has no control feature to limit memory usage, it makes hard to
manage system memrory.
This patch adds new knob "mem_limit" via sysfs to set up the a limit so
that zram could fail allocation once it reaches the limit.
In addition, user could change the limit in runtime so that he could
manage the memory more dynamically.
Initial state is no limit so it doesn't break old behavior.
[[email protected]: fix typo, per Sergey]
Signed-off-by: Minchan Kim <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Jerome Marchand <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: Luigi Semenzato <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: David Horner <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions