blob: 1d1194fdc047e8a0fe4e3be058b78afc88433acf [file] [log] [blame]
David Garcia50d786e2020-03-30 14:49:40 +02001# Copyright 2020 Canonical Ltd.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Sysctl values for LXD in production
16fs.inotify.max_queued_events=1048576
17fs.inotify.max_user_instances=1048576
18fs.inotify.max_user_watches=1048576
19vm.max_map_count=262144
20kernel.dmesg_restrict=1
21net.ipv4.neigh.default.gc_thresh3=8192
22net.ipv6.neigh.default.gc_thresh3=8192
23net.core.bpf_jit_limit=3000000000
24kernel.keys.maxkeys=2000
25kernel.keys.maxbytes=2000000