-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from mariux64/allow-cpu-event-access-by-users
Allow cpu event access by users
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# alloc() - return NULL when no more memory can be allocated.. | ||
# | ||
vm.overcommit_memory = 2 | ||
vm.overcommit_ratio = 100 | ||
|
||
# | ||
# some network pimping.. | ||
# | ||
net.ipv4.ipfrag_low_thresh = 524288 | ||
net.ipv4.ipfrag_high_thresh = 524288 | ||
|
||
# You should consider increasing this number to at least 256k for nfsd. | ||
#net.core.rmem_default = 262144 | ||
#net.core.rmem_max = 262144 | ||
|
||
# likely not enough, nfs4 problems in cluster | ||
# rpc-srv/tcp: nfsd: sent only 949168 when sending 1048640 bytes - shutting down socket | ||
net.core.rmem_max = 16777216 | ||
net.core.wmem_max = 16777216 | ||
net.core.rmem_default = 262144 | ||
net.core.wmem_default = 262144 | ||
net.ipv4.tcp_rmem = 4096 87380 16777216 | ||
net.ipv4.tcp_wmem = 4096 65536 16777216 | ||
net.ipv4.tcp_mem = 16777216 16777216 16777216 | ||
net.ipv4.route.flush = 1 | ||
|
||
# exploit fix for linux < 2.6.32rc6 | ||
# vm.mmap_min_addr = 4096 | ||
|
||
|
||
# don't arp reply on all interfaces | ||
net.ipv4.conf.all.arp_filter = 1 | ||
|
||
# disable ipv6 | ||
net.ipv6.conf.all.disable_ipv6 = 1 | ||
|
||
# on user request increase the number of inode watches. | ||
# 256k should be fine. (default is 8k) | ||
fs.inotify.max_user_watches = 262144 | ||
|
||
kernel.shmmax = 34359738368 | ||
kernel.shmall = 34359738368 | ||
|
||
# user request: Allow CPU event access by users without CAP_SYS_ADMIN | ||
|
||
kernel.perf_event_paranoid = 1 |