aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorDavide Libenzi <[email protected]>2009-01-29 14:25:26 -0800
committerLinus Torvalds <[email protected]>2009-01-29 18:04:45 -0800
commit9df04e1f25effde823a600e755b51475d438f56b (patch)
tree57a207adf5e4bfb010000724dc1482e421933be4 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent3095eb87bb36ae880608fe3fc46cfd59ced1f319 (diff)
epoll: drop max_user_instances and rely only on max_user_watches
Linus suggested to put limits where the money is, and max_user_watches already does that w/out the need of max_user_instances. That has the advantage to mitigate the potential DoS while allowing pretty generous default behavior. Allowing top 4% of low memory (per user) to be allocated in epoll watches, we have: LOMEM MAX_WATCHES (per user) 512MB ~178000 1GB ~356000 2GB ~712000 A box with 512MB of lomem, will meet some challenge in hitting 180K watches, socket buffers math teaches us. No more max_user_instances limits then. Signed-off-by: Davide Libenzi <[email protected]> Cc: Willy Tarreau <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Bron Gondwana <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions