├── .gitmodules ├── Makefile ├── README.md ├── busybox.config ├── images ├── alpine-test.png ├── alpine-test.svg └── nabla-linux.png ├── linux.config └── tests ├── Makefile ├── clone.c ├── ctest.c ├── docker ├── alpine │ ├── Dockerfile │ ├── bm_tornado_http.py │ ├── lmbench_run.sh │ ├── mount_test.sh │ ├── nginx.conf │ ├── plot.gpi │ └── redis.conf └── linux-um-nommu │ ├── Dockerfile │ ├── Makefile │ └── ignore_winch.sh ├── entropy.c ├── exit.c ├── futex.c ├── histo.py ├── hosts ├── image2rootfs.sh ├── image2rootfs_mount.sh ├── init.sh ├── noop.c ├── syscall-x86_64.h ├── syscall_nr.h ├── test.S └── test.c /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "linux-um-nommu"] 2 | path = linux-um-nommu 3 | url = https://github.com/nabla-containers/linux-um-nommu.git 4 | [submodule "busybox"] 5 | path = busybox 6 | url = https://github.com/nabla-containers/busybox.git 7 | [submodule "musl-libc"] 8 | path = musl-libc 9 | url = https://github.com/nabla-containers/musl-libc.git 10 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | all: linux libc busybox 2 | 3 | .PHONY: linux 4 | linux: 5 | cp linux.config linux-um-nommu/.config 6 | make -C linux-um-nommu ARCH=um -j4 7 | 8 | .PHONY: libc 9 | libc: 10 | (cd musl-libc ; ./configure --prefix=`pwd`/build --exec-prefix=`pwd`/build) 11 | make -j$(nproc) -C musl-libc 12 | (cd musl-libc ; make install) # XXX: some issue when doing 'make -C' 13 | 14 | .PHONY: busybox 15 | busybox: libc 16 | cp busybox.config busybox/.config 17 | CC=../musl-libc/build/bin/musl-gcc make -j$(nproc) -C busybox 18 | 19 | clean: 20 | make -C linux-um-nommu clean 21 | make -C musl-libc clean 22 | make -C busybox clean 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is an experimental type of Linux Virtual Machine that does not use a hypervisor (no monitor, no emulation, no HW virtualization). A guest runs multiple processes on the same address-space as a single host process on top of 12 syscalls (sandboxed using seccomp). The guest kernel is a modified Linux configured with User-Mode-Linux (UML) and no-MMU. 2 | 3 | The best way to see this is as a modified User-Mode-Linux (UML) that is faster and more secure, but is significantly less general-purpose. 4 | 5 | [![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/gzxXM8cADRQ/0.jpg)](https://www.youtube.com/watch?v=gzxXM8cADRQ) 6 | 7 | # Try it with this one-liner 8 | 9 | ``` 10 | docker run --rm -it kollerr/linux-um-nommu 11 | ``` 12 | The source dockerfile is [tests/docker/linux-um-nommu/Dockerfile](https://github.com/nabla-containers/nabla-linux/blob/master/tests/docker/linux-um-nommu/Dockerfile) which uses the `alpine-test.ext3` image built 13 | by [tests/Makefile](https://github.com/nabla-containers/nabla-linux/blob/master/tests/Makefile#L11) (which is then based on [tests/docker/alpine/Dockerfile](https://github.com/nabla-containers/nabla-linux/blob/master/tests/docker/alpine/Dockerfile)). 14 | 15 | # Introduction 16 | 17 | Container runtimes have been using virtualization as a way of improving isolation (e.g., Kata containers). And in order to make them feel like regular containers, the community has been trying to slim down their virtual machine (VM) monitors (e.g., Firecracker). This experimental "VM" is what happens when you slim down to the extreme: no monitor at all. 18 | 19 | Nabla Linux is a Linux virtual machine that runs as a single unprivileged user-level process on top of only 12 syscalls. We achieve isolation equivalent to virtual machines, without using a monitor, by restricting the VM process to only these 12 system calls using seccomp. The system was built on top of a combination of two well known Linux features: user mode linux (UML) and no-MMU support (used for embedded devices) both in the kernel and in userspace (musl and busybox). 20 | 21 | ![nabla-linux](images/nabla-linux.png) 22 | 23 | Our initial experiments show that this Linux VM is capable of running multiple unmodified binaries from Alpine (like python, nginx, redis), and can boot in 6 milliseconds (to our knowledge, this is the fastest); albeit with some limitations: PIE executables only, and no forks (processes are emulated using vforks). 24 | 25 | # Demo: 26 | 27 | [![asciicast](https://asciinema.org/a/343173.svg)](https://asciinema.org/a/343173) 28 | 29 | This shows a run with the host syscalls on the left. The point of this is to show that lots of applications just 30 | work while running on a small set of syscalls. 31 | 32 | # Build and test 33 | 34 | A single `make` at the root should build linux, musl, and busybox. Then you need a disk image (think of this as a VM). You 35 | can create a raw disk file based on alpine using the `alpine-test.ext3` target in `tests/`, or just do a `make demo` in `tests/` which 36 | will build one and then run it. 37 | 38 | ``` 39 | make 40 | cd tests && make demo 41 | ``` 42 | 43 | # Related projects 44 | 45 | - Linux Kernel Library (LKL) which also uses the NOMMU config but has a different use case: to be used as a library instead of a "VM". There are two very interesting developments related to LKL: 46 | - [Unifying LKL into UML](https://lwn.net/Articles/804177/). Most of the kernel changes are already implemented in the LKL patch. After it's merged, "nabla linux" could be implemented with mostly userlevel changes. 47 | - [Porting Linux to Nabla Containers](https://dev.to/retrage/porting-linux-to-nabla-containers-j3). 48 | 49 | - Gvisor which looks like UML when running in ptrace mode (one host process per guest process trapped using ptrace). 50 | - The solo5-spt monitor which runs unikernels as a single process sandboxed using seccomp (same idea). 51 | 52 | # Limitations 53 | 54 | - No virtual memory (VM) and no memory protection. A single address space is shared by multiple processes, so a process writing into the NULL page will "kill" every process running in the VM (not what you would expect). 55 | - No `sys_fork`. Which is partially solved by supporting `vfork` (and `posix_spawn`). The catch is that applications need to use `vfork` or `posix_spawn` instead of fork and exec (like busybox configured for NOMMU). Applications doing `sys_fork` will get an `EINVAL`. The most common usage of fork and exec (running a new program) is the shell: that's why we need busybox configured for NOMMU. Other applications like nginx or redis don't fork (haven't seen them fork at least), so they don't need to be patched. 56 | - Can only run [PIE executables](https://en.wikipedia.org/wiki/Position-independent_code). This is the case for most of the binaries in Alpine Linux as explained [here/Secure](https://alpinelinux.org/about/). 57 | - Have to use our modified musl libc. This libc supports making syscalls over [vsyscall](https://lwn.net/Articles/446528/) (i.e. a function call instead of the `syscall` instruction). 58 | -------------------------------------------------------------------------------- /busybox.config: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated make config: don't edit 3 | # Busybox version: 1.32.0.git 4 | # Fri Jun 19 19:12:16 2020 5 | # 6 | CONFIG_HAVE_DOT_CONFIG=y 7 | 8 | # 9 | # Settings 10 | # 11 | CONFIG_DESKTOP=y 12 | # CONFIG_EXTRA_COMPAT is not set 13 | # CONFIG_FEDORA_COMPAT is not set 14 | CONFIG_INCLUDE_SUSv2=y 15 | CONFIG_LONG_OPTS=y 16 | CONFIG_SHOW_USAGE=y 17 | CONFIG_FEATURE_VERBOSE_USAGE=y 18 | CONFIG_FEATURE_COMPRESS_USAGE=y 19 | CONFIG_LFS=y 20 | # CONFIG_PAM is not set 21 | CONFIG_FEATURE_DEVPTS=y 22 | CONFIG_FEATURE_UTMP=y 23 | CONFIG_FEATURE_WTMP=y 24 | CONFIG_FEATURE_PIDFILE=y 25 | CONFIG_PID_FILE_PATH="/var/run" 26 | CONFIG_BUSYBOX=y 27 | CONFIG_FEATURE_SHOW_SCRIPT=y 28 | CONFIG_FEATURE_INSTALLER=y 29 | # CONFIG_INSTALL_NO_USR is not set 30 | CONFIG_FEATURE_SUID=y 31 | CONFIG_FEATURE_SUID_CONFIG=y 32 | CONFIG_FEATURE_SUID_CONFIG_QUIET=y 33 | # CONFIG_FEATURE_PREFER_APPLETS is not set 34 | CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" 35 | # CONFIG_SELINUX is not set 36 | # CONFIG_FEATURE_CLEAN_UP is not set 37 | CONFIG_FEATURE_SYSLOG_INFO=y 38 | CONFIG_FEATURE_SYSLOG=y 39 | CONFIG_PLATFORM_LINUX=y 40 | 41 | # 42 | # Build Options 43 | # 44 | # CONFIG_STATIC is not set 45 | CONFIG_PIE=y 46 | CONFIG_NOMMU=y 47 | # CONFIG_BUILD_LIBBUSYBOX is not set 48 | # CONFIG_FEATURE_LIBBUSYBOX_STATIC is not set 49 | # CONFIG_FEATURE_INDIVIDUAL is not set 50 | # CONFIG_FEATURE_SHARED_BUSYBOX is not set 51 | CONFIG_CROSS_COMPILER_PREFIX="" 52 | CONFIG_SYSROOT="" 53 | CONFIG_EXTRA_CFLAGS="" 54 | CONFIG_EXTRA_LDFLAGS="" 55 | CONFIG_EXTRA_LDLIBS="" 56 | # CONFIG_USE_PORTABLE_CODE is not set 57 | CONFIG_STACK_OPTIMIZATION_386=y 58 | 59 | # 60 | # Installation Options ("make install" behavior) 61 | # 62 | CONFIG_INSTALL_APPLET_SYMLINKS=y 63 | # CONFIG_INSTALL_APPLET_HARDLINKS is not set 64 | # CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set 65 | # CONFIG_INSTALL_APPLET_DONT is not set 66 | # CONFIG_INSTALL_SH_APPLET_SYMLINK is not set 67 | # CONFIG_INSTALL_SH_APPLET_HARDLINK is not set 68 | # CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set 69 | CONFIG_PREFIX="./_install" 70 | 71 | # 72 | # Debugging Options 73 | # 74 | # CONFIG_DEBUG is not set 75 | # CONFIG_DEBUG_PESSIMIZE is not set 76 | # CONFIG_DEBUG_SANITIZE is not set 77 | # CONFIG_UNIT_TEST is not set 78 | # CONFIG_WERROR is not set 79 | # CONFIG_WARN_SIMPLE_MSG is not set 80 | CONFIG_NO_DEBUG_LIB=y 81 | # CONFIG_DMALLOC is not set 82 | # CONFIG_EFENCE is not set 83 | 84 | # 85 | # Library Tuning 86 | # 87 | # CONFIG_FEATURE_USE_BSS_TAIL is not set 88 | CONFIG_FLOAT_DURATION=y 89 | CONFIG_FEATURE_RTMINMAX=y 90 | CONFIG_FEATURE_RTMINMAX_USE_LIBC_DEFINITIONS=y 91 | CONFIG_FEATURE_BUFFERS_USE_MALLOC=y 92 | # CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set 93 | # CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set 94 | CONFIG_PASSWORD_MINLEN=6 95 | CONFIG_MD5_SMALL=1 96 | CONFIG_SHA3_SMALL=1 97 | # CONFIG_FEATURE_FAST_TOP is not set 98 | # CONFIG_FEATURE_ETC_NETWORKS is not set 99 | # CONFIG_FEATURE_ETC_SERVICES is not set 100 | CONFIG_FEATURE_EDITING=y 101 | CONFIG_FEATURE_EDITING_MAX_LEN=1024 102 | # CONFIG_FEATURE_EDITING_VI is not set 103 | CONFIG_FEATURE_EDITING_HISTORY=255 104 | CONFIG_FEATURE_EDITING_SAVEHISTORY=y 105 | # CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set 106 | CONFIG_FEATURE_REVERSE_SEARCH=y 107 | CONFIG_FEATURE_TAB_COMPLETION=y 108 | CONFIG_FEATURE_USERNAME_COMPLETION=y 109 | CONFIG_FEATURE_EDITING_FANCY_PROMPT=y 110 | CONFIG_FEATURE_EDITING_WINCH=y 111 | # CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set 112 | # CONFIG_LOCALE_SUPPORT is not set 113 | CONFIG_UNICODE_SUPPORT=y 114 | # CONFIG_UNICODE_USING_LOCALE is not set 115 | # CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set 116 | CONFIG_SUBST_WCHAR=63 117 | CONFIG_LAST_SUPPORTED_WCHAR=767 118 | # CONFIG_UNICODE_COMBINING_WCHARS is not set 119 | # CONFIG_UNICODE_WIDE_WCHARS is not set 120 | # CONFIG_UNICODE_BIDI_SUPPORT is not set 121 | # CONFIG_UNICODE_NEUTRAL_TABLE is not set 122 | # CONFIG_UNICODE_PRESERVE_BROKEN is not set 123 | CONFIG_FEATURE_NON_POSIX_CP=y 124 | # CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set 125 | CONFIG_FEATURE_USE_SENDFILE=y 126 | CONFIG_FEATURE_COPYBUF_KB=4 127 | CONFIG_FEATURE_SKIP_ROOTFS=y 128 | CONFIG_MONOTONIC_SYSCALL=y 129 | CONFIG_IOCTL_HEX2STR_ERROR=y 130 | CONFIG_FEATURE_HWIB=y 131 | 132 | # 133 | # Applets 134 | # 135 | 136 | # 137 | # Archival Utilities 138 | # 139 | CONFIG_FEATURE_SEAMLESS_XZ=y 140 | CONFIG_FEATURE_SEAMLESS_LZMA=y 141 | CONFIG_FEATURE_SEAMLESS_BZ2=y 142 | CONFIG_FEATURE_SEAMLESS_GZ=y 143 | # CONFIG_FEATURE_SEAMLESS_Z is not set 144 | # CONFIG_AR is not set 145 | # CONFIG_FEATURE_AR_LONG_FILENAMES is not set 146 | # CONFIG_FEATURE_AR_CREATE is not set 147 | # CONFIG_UNCOMPRESS is not set 148 | CONFIG_GUNZIP=y 149 | CONFIG_ZCAT=y 150 | CONFIG_FEATURE_GUNZIP_LONG_OPTIONS=y 151 | CONFIG_BUNZIP2=y 152 | CONFIG_BZCAT=y 153 | CONFIG_UNLZMA=y 154 | CONFIG_LZCAT=y 155 | CONFIG_LZMA=y 156 | CONFIG_UNXZ=y 157 | CONFIG_XZCAT=y 158 | CONFIG_XZ=y 159 | CONFIG_BZIP2=y 160 | CONFIG_BZIP2_SMALL=8 161 | CONFIG_FEATURE_BZIP2_DECOMPRESS=y 162 | CONFIG_CPIO=y 163 | CONFIG_FEATURE_CPIO_O=y 164 | CONFIG_FEATURE_CPIO_P=y 165 | CONFIG_DPKG=y 166 | CONFIG_DPKG_DEB=y 167 | CONFIG_GZIP=y 168 | CONFIG_FEATURE_GZIP_LONG_OPTIONS=y 169 | CONFIG_GZIP_FAST=0 170 | # CONFIG_FEATURE_GZIP_LEVELS is not set 171 | CONFIG_FEATURE_GZIP_DECOMPRESS=y 172 | CONFIG_LZOP=y 173 | # CONFIG_UNLZOP is not set 174 | # CONFIG_LZOPCAT is not set 175 | # CONFIG_LZOP_COMPR_HIGH is not set 176 | CONFIG_RPM=y 177 | CONFIG_RPM2CPIO=y 178 | CONFIG_TAR=y 179 | CONFIG_FEATURE_TAR_LONG_OPTIONS=y 180 | CONFIG_FEATURE_TAR_CREATE=y 181 | CONFIG_FEATURE_TAR_AUTODETECT=y 182 | CONFIG_FEATURE_TAR_FROM=y 183 | CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y 184 | CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y 185 | CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y 186 | CONFIG_FEATURE_TAR_TO_COMMAND=y 187 | CONFIG_FEATURE_TAR_UNAME_GNAME=y 188 | CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y 189 | # CONFIG_FEATURE_TAR_SELINUX is not set 190 | CONFIG_UNZIP=y 191 | CONFIG_FEATURE_UNZIP_CDF=y 192 | CONFIG_FEATURE_UNZIP_BZIP2=y 193 | CONFIG_FEATURE_UNZIP_LZMA=y 194 | CONFIG_FEATURE_UNZIP_XZ=y 195 | # CONFIG_FEATURE_LZMA_FAST is not set 196 | 197 | # 198 | # Coreutils 199 | # 200 | CONFIG_BASENAME=y 201 | CONFIG_CAT=y 202 | CONFIG_FEATURE_CATN=y 203 | CONFIG_FEATURE_CATV=y 204 | CONFIG_CHGRP=y 205 | CONFIG_CHMOD=y 206 | CONFIG_CHOWN=y 207 | CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y 208 | CONFIG_CHROOT=y 209 | CONFIG_CKSUM=y 210 | CONFIG_COMM=y 211 | CONFIG_CP=y 212 | CONFIG_FEATURE_CP_LONG_OPTIONS=y 213 | CONFIG_FEATURE_CP_REFLINK=y 214 | CONFIG_CUT=y 215 | CONFIG_DATE=y 216 | CONFIG_FEATURE_DATE_ISOFMT=y 217 | # CONFIG_FEATURE_DATE_NANO is not set 218 | CONFIG_FEATURE_DATE_COMPAT=y 219 | CONFIG_DD=y 220 | CONFIG_FEATURE_DD_SIGNAL_HANDLING=y 221 | CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y 222 | CONFIG_FEATURE_DD_IBS_OBS=y 223 | CONFIG_FEATURE_DD_STATUS=y 224 | CONFIG_DF=y 225 | CONFIG_FEATURE_DF_FANCY=y 226 | CONFIG_DIRNAME=y 227 | CONFIG_DOS2UNIX=y 228 | CONFIG_UNIX2DOS=y 229 | CONFIG_DU=y 230 | CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y 231 | CONFIG_ECHO=y 232 | CONFIG_FEATURE_FANCY_ECHO=y 233 | CONFIG_ENV=y 234 | CONFIG_EXPAND=y 235 | CONFIG_UNEXPAND=y 236 | CONFIG_EXPR=y 237 | CONFIG_EXPR_MATH_SUPPORT_64=y 238 | CONFIG_FACTOR=y 239 | CONFIG_FALSE=y 240 | CONFIG_FOLD=y 241 | CONFIG_HEAD=y 242 | CONFIG_FEATURE_FANCY_HEAD=y 243 | CONFIG_HOSTID=y 244 | CONFIG_ID=y 245 | CONFIG_GROUPS=y 246 | CONFIG_INSTALL=y 247 | CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y 248 | CONFIG_LINK=y 249 | CONFIG_LN=y 250 | CONFIG_LOGNAME=y 251 | CONFIG_LS=y 252 | CONFIG_FEATURE_LS_FILETYPES=y 253 | CONFIG_FEATURE_LS_FOLLOWLINKS=y 254 | CONFIG_FEATURE_LS_RECURSIVE=y 255 | CONFIG_FEATURE_LS_WIDTH=y 256 | CONFIG_FEATURE_LS_SORTFILES=y 257 | CONFIG_FEATURE_LS_TIMESTAMPS=y 258 | CONFIG_FEATURE_LS_USERNAME=y 259 | CONFIG_FEATURE_LS_COLOR=y 260 | CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y 261 | CONFIG_MD5SUM=y 262 | CONFIG_SHA1SUM=y 263 | CONFIG_SHA256SUM=y 264 | CONFIG_SHA512SUM=y 265 | CONFIG_SHA3SUM=y 266 | 267 | # 268 | # Common options for md5sum, sha1sum, sha256sum, sha512sum, sha3sum 269 | # 270 | CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y 271 | CONFIG_MKDIR=y 272 | CONFIG_MKFIFO=y 273 | CONFIG_MKNOD=y 274 | CONFIG_MKTEMP=y 275 | CONFIG_MV=y 276 | CONFIG_NICE=y 277 | CONFIG_NL=y 278 | CONFIG_NOHUP=y 279 | CONFIG_NPROC=y 280 | CONFIG_OD=y 281 | CONFIG_PASTE=y 282 | CONFIG_PRINTENV=y 283 | CONFIG_PRINTF=y 284 | CONFIG_PWD=y 285 | CONFIG_READLINK=y 286 | CONFIG_FEATURE_READLINK_FOLLOW=y 287 | CONFIG_REALPATH=y 288 | CONFIG_RM=y 289 | CONFIG_RMDIR=y 290 | CONFIG_SEQ=y 291 | CONFIG_SHRED=y 292 | CONFIG_SHUF=y 293 | CONFIG_SLEEP=y 294 | CONFIG_FEATURE_FANCY_SLEEP=y 295 | CONFIG_SORT=y 296 | CONFIG_FEATURE_SORT_BIG=y 297 | # CONFIG_FEATURE_SORT_OPTIMIZE_MEMORY is not set 298 | CONFIG_SPLIT=y 299 | CONFIG_FEATURE_SPLIT_FANCY=y 300 | CONFIG_STAT=y 301 | CONFIG_FEATURE_STAT_FORMAT=y 302 | CONFIG_FEATURE_STAT_FILESYSTEM=y 303 | CONFIG_STTY=y 304 | CONFIG_SUM=y 305 | CONFIG_SYNC=y 306 | CONFIG_FEATURE_SYNC_FANCY=y 307 | CONFIG_FSYNC=y 308 | CONFIG_TAC=y 309 | CONFIG_TAIL=y 310 | CONFIG_FEATURE_FANCY_TAIL=y 311 | CONFIG_TEE=y 312 | CONFIG_FEATURE_TEE_USE_BLOCK_IO=y 313 | CONFIG_TEST=y 314 | CONFIG_TEST1=y 315 | CONFIG_TEST2=y 316 | CONFIG_FEATURE_TEST_64=y 317 | CONFIG_TIMEOUT=y 318 | CONFIG_TOUCH=y 319 | CONFIG_FEATURE_TOUCH_NODEREF=y 320 | CONFIG_FEATURE_TOUCH_SUSV3=y 321 | CONFIG_TR=y 322 | CONFIG_FEATURE_TR_CLASSES=y 323 | CONFIG_FEATURE_TR_EQUIV=y 324 | CONFIG_TRUE=y 325 | CONFIG_TRUNCATE=y 326 | CONFIG_TTY=y 327 | CONFIG_UNAME=y 328 | CONFIG_UNAME_OSNAME="GNU/Linux" 329 | CONFIG_BB_ARCH=y 330 | CONFIG_UNIQ=y 331 | CONFIG_UNLINK=y 332 | CONFIG_USLEEP=y 333 | CONFIG_UUDECODE=y 334 | CONFIG_BASE64=y 335 | CONFIG_UUENCODE=y 336 | CONFIG_WC=y 337 | CONFIG_FEATURE_WC_LARGE=y 338 | CONFIG_WHO=y 339 | CONFIG_W=y 340 | CONFIG_USERS=y 341 | CONFIG_WHOAMI=y 342 | CONFIG_YES=y 343 | 344 | # 345 | # Common options 346 | # 347 | CONFIG_FEATURE_VERBOSE=y 348 | 349 | # 350 | # Common options for cp and mv 351 | # 352 | CONFIG_FEATURE_PRESERVE_HARDLINKS=y 353 | 354 | # 355 | # Common options for df, du, ls 356 | # 357 | CONFIG_FEATURE_HUMAN_READABLE=y 358 | 359 | # 360 | # Console Utilities 361 | # 362 | CONFIG_CHVT=y 363 | CONFIG_CLEAR=y 364 | CONFIG_DEALLOCVT=y 365 | CONFIG_DUMPKMAP=y 366 | CONFIG_FGCONSOLE=y 367 | CONFIG_KBD_MODE=y 368 | CONFIG_LOADFONT=y 369 | CONFIG_SETFONT=y 370 | CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y 371 | CONFIG_DEFAULT_SETFONT_DIR="" 372 | 373 | # 374 | # Common options for loadfont and setfont 375 | # 376 | CONFIG_FEATURE_LOADFONT_PSF2=y 377 | CONFIG_FEATURE_LOADFONT_RAW=y 378 | CONFIG_LOADKMAP=y 379 | CONFIG_OPENVT=y 380 | CONFIG_RESET=y 381 | CONFIG_RESIZE=y 382 | CONFIG_FEATURE_RESIZE_PRINT=y 383 | CONFIG_SETCONSOLE=y 384 | CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y 385 | CONFIG_SETKEYCODES=y 386 | CONFIG_SETLOGCONS=y 387 | CONFIG_SHOWKEY=y 388 | 389 | # 390 | # Debian Utilities 391 | # 392 | CONFIG_PIPE_PROGRESS=y 393 | CONFIG_RUN_PARTS=y 394 | CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y 395 | CONFIG_FEATURE_RUN_PARTS_FANCY=y 396 | CONFIG_START_STOP_DAEMON=y 397 | CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y 398 | CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y 399 | CONFIG_WHICH=y 400 | 401 | # 402 | # klibc-utils 403 | # 404 | # CONFIG_MINIPS is not set 405 | CONFIG_NUKE=y 406 | CONFIG_RESUME=y 407 | CONFIG_RUN_INIT=y 408 | 409 | # 410 | # Editors 411 | # 412 | CONFIG_AWK=y 413 | CONFIG_FEATURE_AWK_LIBM=y 414 | CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y 415 | CONFIG_CMP=y 416 | CONFIG_DIFF=y 417 | CONFIG_FEATURE_DIFF_LONG_OPTIONS=y 418 | CONFIG_FEATURE_DIFF_DIR=y 419 | CONFIG_ED=y 420 | CONFIG_PATCH=y 421 | CONFIG_SED=y 422 | CONFIG_VI=y 423 | CONFIG_FEATURE_VI_MAX_LEN=4096 424 | # CONFIG_FEATURE_VI_8BIT is not set 425 | CONFIG_FEATURE_VI_COLON=y 426 | CONFIG_FEATURE_VI_YANKMARK=y 427 | CONFIG_FEATURE_VI_SEARCH=y 428 | # CONFIG_FEATURE_VI_REGEX_SEARCH is not set 429 | CONFIG_FEATURE_VI_USE_SIGNALS=y 430 | CONFIG_FEATURE_VI_DOT_CMD=y 431 | CONFIG_FEATURE_VI_READONLY=y 432 | CONFIG_FEATURE_VI_SETOPTS=y 433 | CONFIG_FEATURE_VI_SET=y 434 | CONFIG_FEATURE_VI_WIN_RESIZE=y 435 | CONFIG_FEATURE_VI_ASK_TERMINAL=y 436 | CONFIG_FEATURE_VI_UNDO=y 437 | CONFIG_FEATURE_VI_UNDO_QUEUE=y 438 | CONFIG_FEATURE_VI_UNDO_QUEUE_MAX=256 439 | CONFIG_FEATURE_ALLOW_EXEC=y 440 | 441 | # 442 | # Finding Utilities 443 | # 444 | CONFIG_FIND=y 445 | CONFIG_FEATURE_FIND_PRINT0=y 446 | CONFIG_FEATURE_FIND_MTIME=y 447 | CONFIG_FEATURE_FIND_MMIN=y 448 | CONFIG_FEATURE_FIND_PERM=y 449 | CONFIG_FEATURE_FIND_TYPE=y 450 | CONFIG_FEATURE_FIND_EXECUTABLE=y 451 | CONFIG_FEATURE_FIND_XDEV=y 452 | CONFIG_FEATURE_FIND_MAXDEPTH=y 453 | CONFIG_FEATURE_FIND_NEWER=y 454 | CONFIG_FEATURE_FIND_INUM=y 455 | CONFIG_FEATURE_FIND_EXEC=y 456 | CONFIG_FEATURE_FIND_EXEC_PLUS=y 457 | CONFIG_FEATURE_FIND_USER=y 458 | CONFIG_FEATURE_FIND_GROUP=y 459 | CONFIG_FEATURE_FIND_NOT=y 460 | CONFIG_FEATURE_FIND_DEPTH=y 461 | CONFIG_FEATURE_FIND_PAREN=y 462 | CONFIG_FEATURE_FIND_SIZE=y 463 | CONFIG_FEATURE_FIND_PRUNE=y 464 | CONFIG_FEATURE_FIND_QUIT=y 465 | CONFIG_FEATURE_FIND_DELETE=y 466 | CONFIG_FEATURE_FIND_EMPTY=y 467 | CONFIG_FEATURE_FIND_PATH=y 468 | CONFIG_FEATURE_FIND_REGEX=y 469 | # CONFIG_FEATURE_FIND_CONTEXT is not set 470 | CONFIG_FEATURE_FIND_LINKS=y 471 | CONFIG_GREP=y 472 | CONFIG_EGREP=y 473 | CONFIG_FGREP=y 474 | CONFIG_FEATURE_GREP_CONTEXT=y 475 | CONFIG_XARGS=y 476 | CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y 477 | CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y 478 | CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y 479 | CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y 480 | CONFIG_FEATURE_XARGS_SUPPORT_REPL_STR=y 481 | CONFIG_FEATURE_XARGS_SUPPORT_PARALLEL=y 482 | CONFIG_FEATURE_XARGS_SUPPORT_ARGS_FILE=y 483 | 484 | # 485 | # Init Utilities 486 | # 487 | CONFIG_BOOTCHARTD=y 488 | CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y 489 | CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y 490 | CONFIG_HALT=y 491 | CONFIG_POWEROFF=y 492 | CONFIG_REBOOT=y 493 | CONFIG_FEATURE_WAIT_FOR_INIT=y 494 | # CONFIG_FEATURE_CALL_TELINIT is not set 495 | CONFIG_TELINIT_PATH="" 496 | CONFIG_INIT=y 497 | CONFIG_LINUXRC=y 498 | CONFIG_FEATURE_USE_INITTAB=y 499 | # CONFIG_FEATURE_KILL_REMOVED is not set 500 | CONFIG_FEATURE_KILL_DELAY=0 501 | CONFIG_FEATURE_INIT_SCTTY=y 502 | CONFIG_FEATURE_INIT_SYSLOG=y 503 | CONFIG_FEATURE_INIT_QUIET=y 504 | # CONFIG_FEATURE_INIT_COREDUMPS is not set 505 | CONFIG_INIT_TERMINAL_TYPE="linux" 506 | CONFIG_FEATURE_INIT_MODIFY_CMDLINE=y 507 | 508 | # 509 | # Login/Password Management Utilities 510 | # 511 | CONFIG_FEATURE_SHADOWPASSWDS=y 512 | CONFIG_USE_BB_PWD_GRP=y 513 | CONFIG_USE_BB_SHADOW=y 514 | CONFIG_USE_BB_CRYPT=y 515 | CONFIG_USE_BB_CRYPT_SHA=y 516 | CONFIG_ADD_SHELL=y 517 | CONFIG_REMOVE_SHELL=y 518 | CONFIG_ADDGROUP=y 519 | CONFIG_FEATURE_ADDUSER_TO_GROUP=y 520 | CONFIG_ADDUSER=y 521 | # CONFIG_FEATURE_CHECK_NAMES is not set 522 | CONFIG_LAST_ID=60000 523 | CONFIG_FIRST_SYSTEM_ID=100 524 | CONFIG_LAST_SYSTEM_ID=999 525 | CONFIG_CHPASSWD=y 526 | CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des" 527 | CONFIG_CRYPTPW=y 528 | CONFIG_MKPASSWD=y 529 | CONFIG_DELUSER=y 530 | CONFIG_DELGROUP=y 531 | CONFIG_FEATURE_DEL_USER_FROM_GROUP=y 532 | CONFIG_GETTY=y 533 | CONFIG_LOGIN=y 534 | # CONFIG_LOGIN_SESSION_AS_CHILD is not set 535 | CONFIG_LOGIN_SCRIPTS=y 536 | CONFIG_FEATURE_NOLOGIN=y 537 | CONFIG_FEATURE_SECURETTY=y 538 | CONFIG_PASSWD=y 539 | CONFIG_FEATURE_PASSWD_WEAK_CHECK=y 540 | CONFIG_SU=y 541 | CONFIG_FEATURE_SU_SYSLOG=y 542 | CONFIG_FEATURE_SU_CHECKS_SHELLS=y 543 | # CONFIG_FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY is not set 544 | CONFIG_SULOGIN=y 545 | CONFIG_VLOCK=y 546 | 547 | # 548 | # Linux Ext2 FS Progs 549 | # 550 | CONFIG_CHATTR=y 551 | CONFIG_FSCK=y 552 | CONFIG_LSATTR=y 553 | # CONFIG_TUNE2FS is not set 554 | 555 | # 556 | # Linux Module Utilities 557 | # 558 | CONFIG_MODPROBE_SMALL=y 559 | CONFIG_DEPMOD=y 560 | CONFIG_INSMOD=y 561 | CONFIG_LSMOD=y 562 | # CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set 563 | CONFIG_MODINFO=y 564 | CONFIG_MODPROBE=y 565 | # CONFIG_FEATURE_MODPROBE_BLACKLIST is not set 566 | CONFIG_RMMOD=y 567 | 568 | # 569 | # Options common to multiple modutils 570 | # 571 | CONFIG_FEATURE_CMDLINE_MODULE_OPTIONS=y 572 | CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y 573 | # CONFIG_FEATURE_2_4_MODULES is not set 574 | # CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set 575 | # CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set 576 | # CONFIG_FEATURE_INSMOD_LOADINKMEM is not set 577 | # CONFIG_FEATURE_INSMOD_LOAD_MAP is not set 578 | # CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set 579 | # CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set 580 | # CONFIG_FEATURE_INSMOD_TRY_MMAP is not set 581 | # CONFIG_FEATURE_MODUTILS_ALIAS is not set 582 | # CONFIG_FEATURE_MODUTILS_SYMBOLS is not set 583 | CONFIG_DEFAULT_MODULES_DIR="/lib/modules" 584 | CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" 585 | 586 | # 587 | # Linux System Utilities 588 | # 589 | CONFIG_ACPID=y 590 | CONFIG_FEATURE_ACPID_COMPAT=y 591 | CONFIG_BLKDISCARD=y 592 | CONFIG_BLKID=y 593 | CONFIG_FEATURE_BLKID_TYPE=y 594 | CONFIG_BLOCKDEV=y 595 | CONFIG_CAL=y 596 | CONFIG_CHRT=y 597 | CONFIG_DMESG=y 598 | CONFIG_FEATURE_DMESG_PRETTY=y 599 | CONFIG_EJECT=y 600 | CONFIG_FEATURE_EJECT_SCSI=y 601 | CONFIG_FALLOCATE=y 602 | CONFIG_FATATTR=y 603 | CONFIG_FBSET=y 604 | CONFIG_FEATURE_FBSET_FANCY=y 605 | CONFIG_FEATURE_FBSET_READMODE=y 606 | CONFIG_FDFORMAT=y 607 | CONFIG_FDISK=y 608 | # CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set 609 | CONFIG_FEATURE_FDISK_WRITABLE=y 610 | # CONFIG_FEATURE_AIX_LABEL is not set 611 | # CONFIG_FEATURE_SGI_LABEL is not set 612 | # CONFIG_FEATURE_SUN_LABEL is not set 613 | # CONFIG_FEATURE_OSF_LABEL is not set 614 | # CONFIG_FEATURE_GPT_LABEL is not set 615 | CONFIG_FEATURE_FDISK_ADVANCED=y 616 | CONFIG_FINDFS=y 617 | CONFIG_FLOCK=y 618 | CONFIG_FDFLUSH=y 619 | CONFIG_FREERAMDISK=y 620 | CONFIG_FSCK_MINIX=y 621 | CONFIG_FSFREEZE=y 622 | CONFIG_FSTRIM=y 623 | CONFIG_GETOPT=y 624 | CONFIG_FEATURE_GETOPT_LONG=y 625 | CONFIG_HEXDUMP=y 626 | CONFIG_FEATURE_HEXDUMP_REVERSE=y 627 | CONFIG_HD=y 628 | CONFIG_XXD=y 629 | CONFIG_HWCLOCK=y 630 | # CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set 631 | CONFIG_IONICE=y 632 | CONFIG_IPCRM=y 633 | CONFIG_IPCS=y 634 | CONFIG_LAST=y 635 | CONFIG_FEATURE_LAST_FANCY=y 636 | CONFIG_LOSETUP=y 637 | CONFIG_LSPCI=y 638 | CONFIG_LSUSB=y 639 | CONFIG_MDEV=y 640 | CONFIG_FEATURE_MDEV_CONF=y 641 | CONFIG_FEATURE_MDEV_RENAME=y 642 | CONFIG_FEATURE_MDEV_RENAME_REGEXP=y 643 | CONFIG_FEATURE_MDEV_EXEC=y 644 | CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y 645 | CONFIG_FEATURE_MDEV_DAEMON=y 646 | CONFIG_MESG=y 647 | CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y 648 | CONFIG_MKE2FS=y 649 | CONFIG_MKFS_EXT2=y 650 | CONFIG_MKFS_MINIX=y 651 | CONFIG_FEATURE_MINIX2=y 652 | # CONFIG_MKFS_REISER is not set 653 | CONFIG_MKDOSFS=y 654 | CONFIG_MKFS_VFAT=y 655 | CONFIG_MKSWAP=y 656 | CONFIG_FEATURE_MKSWAP_UUID=y 657 | CONFIG_MORE=y 658 | CONFIG_MOUNT=y 659 | CONFIG_FEATURE_MOUNT_FAKE=y 660 | CONFIG_FEATURE_MOUNT_VERBOSE=y 661 | # CONFIG_FEATURE_MOUNT_HELPERS is not set 662 | CONFIG_FEATURE_MOUNT_LABEL=y 663 | # CONFIG_FEATURE_MOUNT_NFS is not set 664 | CONFIG_FEATURE_MOUNT_CIFS=y 665 | CONFIG_FEATURE_MOUNT_FLAGS=y 666 | CONFIG_FEATURE_MOUNT_FSTAB=y 667 | CONFIG_FEATURE_MOUNT_OTHERTAB=y 668 | CONFIG_MOUNTPOINT=y 669 | CONFIG_NOLOGIN=y 670 | CONFIG_NOLOGIN_DEPENDENCIES=y 671 | CONFIG_NSENTER=y 672 | CONFIG_PIVOT_ROOT=y 673 | CONFIG_RDATE=y 674 | CONFIG_RDEV=y 675 | CONFIG_READPROFILE=y 676 | CONFIG_RENICE=y 677 | CONFIG_REV=y 678 | CONFIG_RTCWAKE=y 679 | CONFIG_SCRIPT=y 680 | CONFIG_SCRIPTREPLAY=y 681 | CONFIG_SETARCH=y 682 | CONFIG_LINUX32=y 683 | CONFIG_LINUX64=y 684 | CONFIG_SETPRIV=y 685 | CONFIG_FEATURE_SETPRIV_DUMP=y 686 | CONFIG_FEATURE_SETPRIV_CAPABILITIES=y 687 | CONFIG_FEATURE_SETPRIV_CAPABILITY_NAMES=y 688 | CONFIG_SETSID=y 689 | CONFIG_SWAPON=y 690 | CONFIG_FEATURE_SWAPON_DISCARD=y 691 | CONFIG_FEATURE_SWAPON_PRI=y 692 | CONFIG_SWAPOFF=y 693 | CONFIG_FEATURE_SWAPONOFF_LABEL=y 694 | CONFIG_SWITCH_ROOT=y 695 | CONFIG_TASKSET=y 696 | CONFIG_FEATURE_TASKSET_FANCY=y 697 | CONFIG_FEATURE_TASKSET_CPULIST=y 698 | CONFIG_UEVENT=y 699 | CONFIG_UMOUNT=y 700 | CONFIG_FEATURE_UMOUNT_ALL=y 701 | # CONFIG_UNSHARE is not set 702 | CONFIG_WALL=y 703 | 704 | # 705 | # Common options for mount/umount 706 | # 707 | CONFIG_FEATURE_MOUNT_LOOP=y 708 | CONFIG_FEATURE_MOUNT_LOOP_CREATE=y 709 | # CONFIG_FEATURE_MTAB_SUPPORT is not set 710 | CONFIG_VOLUMEID=y 711 | 712 | # 713 | # Filesystem/Volume identification 714 | # 715 | CONFIG_FEATURE_VOLUMEID_BCACHE=y 716 | CONFIG_FEATURE_VOLUMEID_BTRFS=y 717 | CONFIG_FEATURE_VOLUMEID_CRAMFS=y 718 | CONFIG_FEATURE_VOLUMEID_EXFAT=y 719 | CONFIG_FEATURE_VOLUMEID_EXT=y 720 | CONFIG_FEATURE_VOLUMEID_F2FS=y 721 | CONFIG_FEATURE_VOLUMEID_FAT=y 722 | CONFIG_FEATURE_VOLUMEID_HFS=y 723 | CONFIG_FEATURE_VOLUMEID_ISO9660=y 724 | CONFIG_FEATURE_VOLUMEID_JFS=y 725 | CONFIG_FEATURE_VOLUMEID_LFS=y 726 | CONFIG_FEATURE_VOLUMEID_LINUXRAID=y 727 | CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y 728 | CONFIG_FEATURE_VOLUMEID_LUKS=y 729 | CONFIG_FEATURE_VOLUMEID_MINIX=y 730 | CONFIG_FEATURE_VOLUMEID_NILFS=y 731 | CONFIG_FEATURE_VOLUMEID_NTFS=y 732 | CONFIG_FEATURE_VOLUMEID_OCFS2=y 733 | CONFIG_FEATURE_VOLUMEID_REISERFS=y 734 | CONFIG_FEATURE_VOLUMEID_ROMFS=y 735 | CONFIG_FEATURE_VOLUMEID_SQUASHFS=y 736 | CONFIG_FEATURE_VOLUMEID_SYSV=y 737 | CONFIG_FEATURE_VOLUMEID_UBIFS=y 738 | CONFIG_FEATURE_VOLUMEID_UDF=y 739 | CONFIG_FEATURE_VOLUMEID_XFS=y 740 | 741 | # 742 | # Miscellaneous Utilities 743 | # 744 | CONFIG_ADJTIMEX=y 745 | # CONFIG_BBCONFIG is not set 746 | # CONFIG_FEATURE_COMPRESS_BBCONFIG is not set 747 | CONFIG_BC=y 748 | CONFIG_DC=y 749 | CONFIG_FEATURE_DC_BIG=y 750 | # CONFIG_FEATURE_DC_LIBM is not set 751 | CONFIG_FEATURE_BC_INTERACTIVE=y 752 | CONFIG_FEATURE_BC_LONG_OPTIONS=y 753 | CONFIG_BEEP=y 754 | CONFIG_FEATURE_BEEP_FREQ=4000 755 | CONFIG_FEATURE_BEEP_LENGTH_MS=30 756 | CONFIG_CHAT=y 757 | CONFIG_FEATURE_CHAT_NOFAIL=y 758 | # CONFIG_FEATURE_CHAT_TTY_HIFI is not set 759 | CONFIG_FEATURE_CHAT_IMPLICIT_CR=y 760 | CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y 761 | CONFIG_FEATURE_CHAT_SEND_ESCAPES=y 762 | CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y 763 | CONFIG_FEATURE_CHAT_CLR_ABORT=y 764 | CONFIG_CONSPY=y 765 | CONFIG_CROND=y 766 | CONFIG_FEATURE_CROND_D=y 767 | CONFIG_FEATURE_CROND_CALL_SENDMAIL=y 768 | CONFIG_FEATURE_CROND_SPECIAL_TIMES=y 769 | CONFIG_FEATURE_CROND_DIR="/var/spool/cron" 770 | CONFIG_CRONTAB=y 771 | # CONFIG_DEVFSD is not set 772 | # CONFIG_DEVFSD_MODLOAD is not set 773 | # CONFIG_DEVFSD_FG_NP is not set 774 | # CONFIG_DEVFSD_VERBOSE is not set 775 | # CONFIG_FEATURE_DEVFS is not set 776 | CONFIG_DEVMEM=y 777 | CONFIG_FBSPLASH=y 778 | # CONFIG_FLASH_ERASEALL is not set 779 | # CONFIG_FLASH_LOCK is not set 780 | # CONFIG_FLASH_UNLOCK is not set 781 | # CONFIG_FLASHCP is not set 782 | CONFIG_HDPARM=y 783 | CONFIG_FEATURE_HDPARM_GET_IDENTITY=y 784 | CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y 785 | CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y 786 | CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y 787 | CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y 788 | CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y 789 | CONFIG_HEXEDIT=y 790 | CONFIG_I2CGET=y 791 | CONFIG_I2CSET=y 792 | CONFIG_I2CDUMP=y 793 | CONFIG_I2CDETECT=y 794 | CONFIG_I2CTRANSFER=y 795 | # CONFIG_INOTIFYD is not set 796 | CONFIG_LESS=y 797 | CONFIG_FEATURE_LESS_MAXLINES=9999999 798 | CONFIG_FEATURE_LESS_BRACKETS=y 799 | CONFIG_FEATURE_LESS_FLAGS=y 800 | CONFIG_FEATURE_LESS_TRUNCATE=y 801 | CONFIG_FEATURE_LESS_MARKS=y 802 | CONFIG_FEATURE_LESS_REGEXP=y 803 | CONFIG_FEATURE_LESS_WINCH=y 804 | CONFIG_FEATURE_LESS_ASK_TERMINAL=y 805 | CONFIG_FEATURE_LESS_DASHCMD=y 806 | CONFIG_FEATURE_LESS_LINENUMS=y 807 | CONFIG_FEATURE_LESS_RAW=y 808 | CONFIG_FEATURE_LESS_ENV=y 809 | CONFIG_LSSCSI=y 810 | CONFIG_MAKEDEVS=y 811 | # CONFIG_FEATURE_MAKEDEVS_LEAF is not set 812 | CONFIG_FEATURE_MAKEDEVS_TABLE=y 813 | CONFIG_MAN=y 814 | CONFIG_MICROCOM=y 815 | CONFIG_MIM=y 816 | CONFIG_MT=y 817 | CONFIG_NANDWRITE=y 818 | CONFIG_NANDDUMP=y 819 | CONFIG_PARTPROBE=y 820 | CONFIG_RAIDAUTORUN=y 821 | CONFIG_READAHEAD=y 822 | # CONFIG_RFKILL is not set 823 | CONFIG_RUNLEVEL=y 824 | CONFIG_RX=y 825 | CONFIG_SETFATTR=y 826 | CONFIG_SETSERIAL=y 827 | CONFIG_STRINGS=y 828 | CONFIG_TIME=y 829 | CONFIG_TS=y 830 | CONFIG_TTYSIZE=y 831 | CONFIG_UBIATTACH=y 832 | CONFIG_UBIDETACH=y 833 | CONFIG_UBIMKVOL=y 834 | CONFIG_UBIRMVOL=y 835 | CONFIG_UBIRSVOL=y 836 | CONFIG_UBIUPDATEVOL=y 837 | CONFIG_UBIRENAME=y 838 | CONFIG_VOLNAME=y 839 | CONFIG_WATCHDOG=y 840 | 841 | # 842 | # Networking Utilities 843 | # 844 | CONFIG_FEATURE_IPV6=y 845 | # CONFIG_FEATURE_UNIX_LOCAL is not set 846 | CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y 847 | # CONFIG_VERBOSE_RESOLUTION_ERRORS is not set 848 | # CONFIG_FEATURE_TLS_SHA1 is not set 849 | CONFIG_ARP=y 850 | CONFIG_ARPING=y 851 | CONFIG_BRCTL=y 852 | CONFIG_FEATURE_BRCTL_FANCY=y 853 | CONFIG_FEATURE_BRCTL_SHOW=y 854 | CONFIG_DNSD=y 855 | CONFIG_ETHER_WAKE=y 856 | CONFIG_FTPD=y 857 | CONFIG_FEATURE_FTPD_WRITE=y 858 | CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y 859 | CONFIG_FEATURE_FTPD_AUTHENTICATION=y 860 | CONFIG_FTPGET=y 861 | CONFIG_FTPPUT=y 862 | CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y 863 | CONFIG_HOSTNAME=y 864 | CONFIG_DNSDOMAINNAME=y 865 | CONFIG_HTTPD=y 866 | CONFIG_FEATURE_HTTPD_RANGES=y 867 | CONFIG_FEATURE_HTTPD_SETUID=y 868 | CONFIG_FEATURE_HTTPD_BASIC_AUTH=y 869 | CONFIG_FEATURE_HTTPD_AUTH_MD5=y 870 | CONFIG_FEATURE_HTTPD_CGI=y 871 | CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y 872 | CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y 873 | CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y 874 | CONFIG_FEATURE_HTTPD_ERROR_PAGES=y 875 | CONFIG_FEATURE_HTTPD_PROXY=y 876 | CONFIG_FEATURE_HTTPD_GZIP=y 877 | CONFIG_IFCONFIG=y 878 | CONFIG_FEATURE_IFCONFIG_STATUS=y 879 | CONFIG_FEATURE_IFCONFIG_SLIP=y 880 | CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y 881 | CONFIG_FEATURE_IFCONFIG_HW=y 882 | CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y 883 | CONFIG_IFENSLAVE=y 884 | CONFIG_IFPLUGD=y 885 | CONFIG_IFUP=y 886 | CONFIG_IFDOWN=y 887 | CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" 888 | CONFIG_FEATURE_IFUPDOWN_IP=y 889 | CONFIG_FEATURE_IFUPDOWN_IPV4=y 890 | CONFIG_FEATURE_IFUPDOWN_IPV6=y 891 | CONFIG_FEATURE_IFUPDOWN_MAPPING=y 892 | # CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set 893 | CONFIG_INETD=y 894 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y 895 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y 896 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y 897 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y 898 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y 899 | # CONFIG_FEATURE_INETD_RPC is not set 900 | CONFIG_IP=y 901 | CONFIG_IPADDR=y 902 | CONFIG_IPLINK=y 903 | CONFIG_IPROUTE=y 904 | CONFIG_IPTUNNEL=y 905 | CONFIG_IPRULE=y 906 | CONFIG_IPNEIGH=y 907 | CONFIG_FEATURE_IP_ADDRESS=y 908 | CONFIG_FEATURE_IP_LINK=y 909 | CONFIG_FEATURE_IP_ROUTE=y 910 | CONFIG_FEATURE_IP_ROUTE_DIR="/etc/iproute2" 911 | CONFIG_FEATURE_IP_TUNNEL=y 912 | CONFIG_FEATURE_IP_RULE=y 913 | CONFIG_FEATURE_IP_NEIGH=y 914 | # CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set 915 | CONFIG_IPCALC=y 916 | CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y 917 | CONFIG_FEATURE_IPCALC_FANCY=y 918 | CONFIG_FAKEIDENTD=y 919 | CONFIG_NAMEIF=y 920 | CONFIG_FEATURE_NAMEIF_EXTENDED=y 921 | CONFIG_NBDCLIENT=y 922 | CONFIG_NC=y 923 | # CONFIG_NETCAT is not set 924 | CONFIG_NC_SERVER=y 925 | CONFIG_NC_EXTRA=y 926 | CONFIG_NC_110_COMPAT=y 927 | CONFIG_NETSTAT=y 928 | CONFIG_FEATURE_NETSTAT_WIDE=y 929 | CONFIG_FEATURE_NETSTAT_PRG=y 930 | CONFIG_NSLOOKUP=y 931 | CONFIG_FEATURE_NSLOOKUP_BIG=y 932 | CONFIG_FEATURE_NSLOOKUP_LONG_OPTIONS=y 933 | CONFIG_NTPD=y 934 | CONFIG_FEATURE_NTPD_SERVER=y 935 | CONFIG_FEATURE_NTPD_CONF=y 936 | CONFIG_FEATURE_NTP_AUTH=y 937 | CONFIG_PING=y 938 | CONFIG_PING6=y 939 | CONFIG_FEATURE_FANCY_PING=y 940 | CONFIG_PSCAN=y 941 | CONFIG_ROUTE=y 942 | CONFIG_SLATTACH=y 943 | CONFIG_SSL_CLIENT=y 944 | CONFIG_TC=y 945 | CONFIG_FEATURE_TC_INGRESS=y 946 | CONFIG_TCPSVD=y 947 | CONFIG_UDPSVD=y 948 | CONFIG_TELNET=y 949 | CONFIG_FEATURE_TELNET_TTYPE=y 950 | CONFIG_FEATURE_TELNET_AUTOLOGIN=y 951 | CONFIG_FEATURE_TELNET_WIDTH=y 952 | CONFIG_TELNETD=y 953 | CONFIG_FEATURE_TELNETD_STANDALONE=y 954 | CONFIG_FEATURE_TELNETD_INETD_WAIT=y 955 | CONFIG_TFTP=y 956 | CONFIG_FEATURE_TFTP_PROGRESS_BAR=y 957 | CONFIG_FEATURE_TFTP_HPA_COMPAT=y 958 | CONFIG_TFTPD=y 959 | CONFIG_FEATURE_TFTP_GET=y 960 | CONFIG_FEATURE_TFTP_PUT=y 961 | CONFIG_FEATURE_TFTP_BLOCKSIZE=y 962 | # CONFIG_TFTP_DEBUG is not set 963 | CONFIG_TLS=y 964 | CONFIG_TRACEROUTE=y 965 | CONFIG_TRACEROUTE6=y 966 | CONFIG_FEATURE_TRACEROUTE_VERBOSE=y 967 | CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y 968 | CONFIG_TUNCTL=y 969 | CONFIG_FEATURE_TUNCTL_UG=y 970 | CONFIG_VCONFIG=y 971 | CONFIG_WGET=y 972 | CONFIG_FEATURE_WGET_LONG_OPTIONS=y 973 | CONFIG_FEATURE_WGET_STATUSBAR=y 974 | CONFIG_FEATURE_WGET_AUTHENTICATION=y 975 | CONFIG_FEATURE_WGET_TIMEOUT=y 976 | CONFIG_FEATURE_WGET_HTTPS=y 977 | CONFIG_FEATURE_WGET_OPENSSL=y 978 | CONFIG_WHOIS=y 979 | CONFIG_ZCIP=y 980 | CONFIG_UDHCPD=y 981 | # CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set 982 | CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y 983 | CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" 984 | CONFIG_DUMPLEASES=y 985 | CONFIG_DHCPRELAY=y 986 | CONFIG_UDHCPC=y 987 | CONFIG_FEATURE_UDHCPC_ARPING=y 988 | CONFIG_FEATURE_UDHCPC_SANITIZEOPT=y 989 | CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" 990 | CONFIG_UDHCPC6=y 991 | CONFIG_FEATURE_UDHCPC6_RFC3646=y 992 | CONFIG_FEATURE_UDHCPC6_RFC4704=y 993 | CONFIG_FEATURE_UDHCPC6_RFC4833=y 994 | CONFIG_FEATURE_UDHCPC6_RFC5970=y 995 | 996 | # 997 | # Common options for DHCP applets 998 | # 999 | # CONFIG_FEATURE_UDHCP_PORT is not set 1000 | CONFIG_UDHCP_DEBUG=2 1001 | CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 1002 | CONFIG_FEATURE_UDHCP_RFC3397=y 1003 | CONFIG_FEATURE_UDHCP_8021Q=y 1004 | CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" 1005 | 1006 | # 1007 | # Print Utilities 1008 | # 1009 | CONFIG_LPD=y 1010 | CONFIG_LPR=y 1011 | CONFIG_LPQ=y 1012 | 1013 | # 1014 | # Mail Utilities 1015 | # 1016 | CONFIG_MAKEMIME=y 1017 | CONFIG_POPMAILDIR=y 1018 | CONFIG_FEATURE_POPMAILDIR_DELIVERY=y 1019 | CONFIG_REFORMIME=y 1020 | CONFIG_FEATURE_REFORMIME_COMPAT=y 1021 | CONFIG_SENDMAIL=y 1022 | CONFIG_FEATURE_MIME_CHARSET="us-ascii" 1023 | 1024 | # 1025 | # Process Utilities 1026 | # 1027 | CONFIG_FREE=y 1028 | CONFIG_FUSER=y 1029 | CONFIG_IOSTAT=y 1030 | CONFIG_KILL=y 1031 | CONFIG_KILLALL=y 1032 | CONFIG_KILLALL5=y 1033 | CONFIG_LSOF=y 1034 | CONFIG_MPSTAT=y 1035 | CONFIG_NMETER=y 1036 | CONFIG_PGREP=y 1037 | CONFIG_PKILL=y 1038 | CONFIG_PIDOF=y 1039 | CONFIG_FEATURE_PIDOF_SINGLE=y 1040 | CONFIG_FEATURE_PIDOF_OMIT=y 1041 | CONFIG_PMAP=y 1042 | CONFIG_POWERTOP=y 1043 | CONFIG_FEATURE_POWERTOP_INTERACTIVE=y 1044 | CONFIG_PS=y 1045 | # CONFIG_FEATURE_PS_WIDE is not set 1046 | # CONFIG_FEATURE_PS_LONG is not set 1047 | CONFIG_FEATURE_PS_TIME=y 1048 | # CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set 1049 | CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y 1050 | CONFIG_PSTREE=y 1051 | CONFIG_PWDX=y 1052 | CONFIG_SMEMCAP=y 1053 | CONFIG_BB_SYSCTL=y 1054 | CONFIG_TOP=y 1055 | CONFIG_FEATURE_TOP_INTERACTIVE=y 1056 | CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y 1057 | CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y 1058 | CONFIG_FEATURE_TOP_SMP_CPU=y 1059 | CONFIG_FEATURE_TOP_DECIMALS=y 1060 | CONFIG_FEATURE_TOP_SMP_PROCESS=y 1061 | CONFIG_FEATURE_TOPMEM=y 1062 | CONFIG_UPTIME=y 1063 | CONFIG_FEATURE_UPTIME_UTMP_SUPPORT=y 1064 | CONFIG_WATCH=y 1065 | CONFIG_FEATURE_SHOW_THREADS=y 1066 | 1067 | # 1068 | # Runit Utilities 1069 | # 1070 | CONFIG_CHPST=y 1071 | CONFIG_SETUIDGID=y 1072 | CONFIG_ENVUIDGID=y 1073 | CONFIG_ENVDIR=y 1074 | CONFIG_SOFTLIMIT=y 1075 | CONFIG_RUNSV=y 1076 | CONFIG_RUNSVDIR=y 1077 | # CONFIG_FEATURE_RUNSVDIR_LOG is not set 1078 | CONFIG_SV=y 1079 | CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" 1080 | CONFIG_SVC=y 1081 | CONFIG_SVOK=y 1082 | CONFIG_SVLOGD=y 1083 | # CONFIG_CHCON is not set 1084 | # CONFIG_GETENFORCE is not set 1085 | # CONFIG_GETSEBOOL is not set 1086 | # CONFIG_LOAD_POLICY is not set 1087 | # CONFIG_MATCHPATHCON is not set 1088 | # CONFIG_RUNCON is not set 1089 | # CONFIG_SELINUXENABLED is not set 1090 | # CONFIG_SESTATUS is not set 1091 | # CONFIG_SETENFORCE is not set 1092 | # CONFIG_SETFILES is not set 1093 | # CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set 1094 | # CONFIG_RESTORECON is not set 1095 | # CONFIG_SETSEBOOL is not set 1096 | 1097 | # 1098 | # Shells 1099 | # 1100 | # CONFIG_SH_IS_ASH is not set 1101 | CONFIG_SH_IS_HUSH=y 1102 | # CONFIG_SH_IS_NONE is not set 1103 | # CONFIG_BASH_IS_ASH is not set 1104 | # CONFIG_BASH_IS_HUSH is not set 1105 | CONFIG_BASH_IS_NONE=y 1106 | # CONFIG_ASH is not set 1107 | # CONFIG_ASH_OPTIMIZE_FOR_SIZE is not set 1108 | # CONFIG_ASH_INTERNAL_GLOB is not set 1109 | # CONFIG_ASH_BASH_COMPAT is not set 1110 | # CONFIG_ASH_BASH_SOURCE_CURDIR is not set 1111 | # CONFIG_ASH_BASH_NOT_FOUND_HOOK is not set 1112 | # CONFIG_ASH_JOB_CONTROL is not set 1113 | # CONFIG_ASH_ALIAS is not set 1114 | # CONFIG_ASH_RANDOM_SUPPORT is not set 1115 | # CONFIG_ASH_EXPAND_PRMT is not set 1116 | # CONFIG_ASH_IDLE_TIMEOUT is not set 1117 | # CONFIG_ASH_MAIL is not set 1118 | # CONFIG_ASH_ECHO is not set 1119 | # CONFIG_ASH_PRINTF is not set 1120 | # CONFIG_ASH_TEST is not set 1121 | # CONFIG_ASH_HELP is not set 1122 | # CONFIG_ASH_GETOPTS is not set 1123 | # CONFIG_ASH_CMDCMD is not set 1124 | CONFIG_CTTYHACK=y 1125 | CONFIG_HUSH=y 1126 | CONFIG_HUSH_BASH_COMPAT=y 1127 | CONFIG_HUSH_BRACE_EXPANSION=y 1128 | CONFIG_HUSH_LINENO_VAR=y 1129 | # CONFIG_HUSH_BASH_SOURCE_CURDIR is not set 1130 | CONFIG_HUSH_INTERACTIVE=y 1131 | CONFIG_HUSH_SAVEHISTORY=y 1132 | CONFIG_HUSH_JOB=y 1133 | CONFIG_HUSH_TICK=y 1134 | CONFIG_HUSH_IF=y 1135 | CONFIG_HUSH_LOOPS=y 1136 | CONFIG_HUSH_CASE=y 1137 | CONFIG_HUSH_FUNCTIONS=y 1138 | CONFIG_HUSH_LOCAL=y 1139 | CONFIG_HUSH_RANDOM_SUPPORT=y 1140 | CONFIG_HUSH_MODE_X=y 1141 | CONFIG_HUSH_ECHO=y 1142 | CONFIG_HUSH_PRINTF=y 1143 | CONFIG_HUSH_TEST=y 1144 | CONFIG_HUSH_HELP=y 1145 | CONFIG_HUSH_EXPORT=y 1146 | CONFIG_HUSH_EXPORT_N=y 1147 | CONFIG_HUSH_READONLY=y 1148 | CONFIG_HUSH_KILL=y 1149 | CONFIG_HUSH_WAIT=y 1150 | CONFIG_HUSH_COMMAND=y 1151 | CONFIG_HUSH_TRAP=y 1152 | CONFIG_HUSH_TYPE=y 1153 | CONFIG_HUSH_TIMES=y 1154 | CONFIG_HUSH_READ=y 1155 | CONFIG_HUSH_SET=y 1156 | CONFIG_HUSH_UNSET=y 1157 | CONFIG_HUSH_ULIMIT=y 1158 | CONFIG_HUSH_UMASK=y 1159 | CONFIG_HUSH_GETOPTS=y 1160 | # CONFIG_HUSH_MEMLEAK is not set 1161 | 1162 | # 1163 | # Options common to all shells 1164 | # 1165 | CONFIG_FEATURE_SH_MATH=y 1166 | CONFIG_FEATURE_SH_MATH_64=y 1167 | CONFIG_FEATURE_SH_MATH_BASE=y 1168 | CONFIG_FEATURE_SH_EXTRA_QUIET=y 1169 | # CONFIG_FEATURE_SH_STANDALONE is not set 1170 | # CONFIG_FEATURE_SH_NOFORK is not set 1171 | CONFIG_FEATURE_SH_READ_FRAC=y 1172 | CONFIG_FEATURE_SH_HISTFILESIZE=y 1173 | CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS=y 1174 | 1175 | # 1176 | # System Logging Utilities 1177 | # 1178 | CONFIG_KLOGD=y 1179 | 1180 | # 1181 | # klogd should not be used together with syslog to kernel printk buffer 1182 | # 1183 | CONFIG_FEATURE_KLOGD_KLOGCTL=y 1184 | CONFIG_LOGGER=y 1185 | CONFIG_LOGREAD=y 1186 | CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y 1187 | CONFIG_SYSLOGD=y 1188 | CONFIG_FEATURE_ROTATE_LOGFILE=y 1189 | CONFIG_FEATURE_REMOTE_LOG=y 1190 | CONFIG_FEATURE_SYSLOGD_DUP=y 1191 | CONFIG_FEATURE_SYSLOGD_CFG=y 1192 | # CONFIG_FEATURE_SYSLOGD_PRECISE_TIMESTAMPS is not set 1193 | CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 1194 | CONFIG_FEATURE_IPC_SYSLOG=y 1195 | CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 1196 | CONFIG_FEATURE_KMSG_SYSLOG=y 1197 | -------------------------------------------------------------------------------- /images/alpine-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nabla-containers/nabla-linux/a17c725aa721fa710185d0d6714a19c19e871b66/images/alpine-test.png -------------------------------------------------------------------------------- /images/nabla-linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nabla-containers/nabla-linux/a17c725aa721fa710185d0d6714a19c19e871b66/images/nabla-linux.png -------------------------------------------------------------------------------- /linux.config: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated file; DO NOT EDIT. 3 | # Linux/um 5.3.0-rc1 Kernel Configuration 4 | # 5 | 6 | # 7 | # Compiler: gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010 8 | # 9 | CONFIG_CC_IS_GCC=y 10 | CONFIG_GCC_VERSION=50500 11 | CONFIG_CLANG_VERSION=0 12 | CONFIG_CC_CAN_LINK=y 13 | CONFIG_CC_HAS_ASM_GOTO=y 14 | CONFIG_CC_HAS_WARN_MAYBE_UNINITIALIZED=y 15 | CONFIG_CC_DISABLE_WARN_MAYBE_UNINITIALIZED=y 16 | CONFIG_IRQ_WORK=y 17 | 18 | # 19 | # General setup 20 | # 21 | CONFIG_BROKEN_ON_SMP=y 22 | CONFIG_INIT_ENV_ARG_LIMIT=128 23 | # CONFIG_HEADER_TEST is not set 24 | CONFIG_LOCALVERSION="" 25 | CONFIG_LOCALVERSION_AUTO=y 26 | CONFIG_BUILD_SALT="" 27 | CONFIG_DEFAULT_HOSTNAME="(none)" 28 | CONFIG_SYSVIPC=y 29 | CONFIG_SYSVIPC_SYSCTL=y 30 | CONFIG_POSIX_MQUEUE=y 31 | CONFIG_POSIX_MQUEUE_SYSCTL=y 32 | # CONFIG_USELIB is not set 33 | # CONFIG_AUDIT is not set 34 | CONFIG_HAVE_ARCH_AUDITSYSCALL=y 35 | 36 | # 37 | # IRQ subsystem 38 | # 39 | CONFIG_GENERIC_IRQ_SHOW=y 40 | # end of IRQ subsystem 41 | 42 | CONFIG_GENERIC_CLOCKEVENTS=y 43 | 44 | # 45 | # Timers subsystem 46 | # 47 | CONFIG_TICK_ONESHOT=y 48 | CONFIG_NO_HZ_COMMON=y 49 | # CONFIG_HZ_PERIODIC is not set 50 | CONFIG_NO_HZ_IDLE=y 51 | CONFIG_NO_HZ=y 52 | CONFIG_HIGH_RES_TIMERS=y 53 | # end of Timers subsystem 54 | 55 | CONFIG_PREEMPT_NONE=y 56 | 57 | # 58 | # CPU/Task time and stats accounting 59 | # 60 | CONFIG_TICK_CPU_ACCOUNTING=y 61 | CONFIG_BSD_PROCESS_ACCT=y 62 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set 63 | # CONFIG_TASKSTATS is not set 64 | # CONFIG_PSI is not set 65 | # end of CPU/Task time and stats accounting 66 | 67 | # 68 | # RCU Subsystem 69 | # 70 | CONFIG_TINY_RCU=y 71 | # CONFIG_RCU_EXPERT is not set 72 | CONFIG_SRCU=y 73 | CONFIG_TINY_SRCU=y 74 | # end of RCU Subsystem 75 | 76 | CONFIG_IKCONFIG=y 77 | CONFIG_IKCONFIG_PROC=y 78 | # CONFIG_IKHEADERS is not set 79 | CONFIG_LOG_BUF_SHIFT=14 80 | CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13 81 | 82 | # 83 | # Scheduler features 84 | # 85 | # end of Scheduler features 86 | 87 | CONFIG_CGROUPS=y 88 | # CONFIG_MEMCG is not set 89 | CONFIG_BLK_CGROUP=y 90 | CONFIG_CGROUP_SCHED=y 91 | CONFIG_FAIR_GROUP_SCHED=y 92 | # CONFIG_CFS_BANDWIDTH is not set 93 | # CONFIG_RT_GROUP_SCHED is not set 94 | # CONFIG_CGROUP_PIDS is not set 95 | # CONFIG_CGROUP_RDMA is not set 96 | # CONFIG_CGROUP_FREEZER is not set 97 | CONFIG_CGROUP_DEVICE=y 98 | CONFIG_CGROUP_CPUACCT=y 99 | # CONFIG_CGROUP_DEBUG is not set 100 | CONFIG_NAMESPACES=y 101 | CONFIG_UTS_NS=y 102 | CONFIG_IPC_NS=y 103 | # CONFIG_USER_NS is not set 104 | # CONFIG_PID_NS is not set 105 | CONFIG_NET_NS=y 106 | # CONFIG_CHECKPOINT_RESTORE is not set 107 | # CONFIG_SCHED_AUTOGROUP is not set 108 | CONFIG_SYSFS_DEPRECATED=y 109 | # CONFIG_SYSFS_DEPRECATED_V2 is not set 110 | # CONFIG_RELAY is not set 111 | # CONFIG_BLK_DEV_INITRD is not set 112 | # CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set 113 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y 114 | CONFIG_SYSCTL=y 115 | CONFIG_HAVE_UID16=y 116 | CONFIG_BPF=y 117 | # CONFIG_EXPERT is not set 118 | CONFIG_UID16=y 119 | CONFIG_MULTIUSER=y 120 | CONFIG_SYSFS_SYSCALL=y 121 | CONFIG_FHANDLE=y 122 | CONFIG_POSIX_TIMERS=y 123 | CONFIG_PRINTK=y 124 | CONFIG_BUG=y 125 | CONFIG_ELF_CORE=y 126 | CONFIG_BASE_FULL=y 127 | CONFIG_FUTEX=y 128 | CONFIG_FUTEX_PI=y 129 | CONFIG_HAVE_FUTEX_CMPXCHG=y 130 | CONFIG_EPOLL=y 131 | CONFIG_SIGNALFD=y 132 | CONFIG_TIMERFD=y 133 | CONFIG_EVENTFD=y 134 | CONFIG_AIO=y 135 | CONFIG_IO_URING=y 136 | CONFIG_ADVISE_SYSCALLS=y 137 | CONFIG_MEMBARRIER=y 138 | CONFIG_KALLSYMS=y 139 | # CONFIG_KALLSYMS_ALL is not set 140 | CONFIG_KALLSYMS_BASE_RELATIVE=y 141 | # CONFIG_BPF_SYSCALL is not set 142 | # CONFIG_EMBEDDED is not set 143 | 144 | # 145 | # Kernel Performance Events And Counters 146 | # 147 | # end of Kernel Performance Events And Counters 148 | 149 | CONFIG_VM_EVENT_COUNTERS=y 150 | CONFIG_COMPAT_BRK=y 151 | CONFIG_SLAB=y 152 | # CONFIG_SLUB is not set 153 | CONFIG_SLAB_MERGE_DEFAULT=y 154 | # CONFIG_SLAB_FREELIST_RANDOM is not set 155 | # CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set 156 | # CONFIG_PROFILING is not set 157 | # end of General setup 158 | 159 | # 160 | # UML-specific options 161 | # 162 | CONFIG_UML=y 163 | CONFIG_NO_IOMEM=y 164 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y 165 | CONFIG_LOCKDEP_SUPPORT=y 166 | CONFIG_STACKTRACE_SUPPORT=y 167 | CONFIG_HZ=100 168 | CONFIG_NR_CPUS=1 169 | 170 | # 171 | # Host processor type and features 172 | # 173 | # CONFIG_MK8 is not set 174 | # CONFIG_MPSC is not set 175 | # CONFIG_MCORE2 is not set 176 | # CONFIG_MATOM is not set 177 | CONFIG_GENERIC_CPU=y 178 | CONFIG_X86_INTERNODE_CACHE_SHIFT=6 179 | CONFIG_X86_L1_CACHE_SHIFT=6 180 | CONFIG_X86_TSC=y 181 | CONFIG_X86_CMPXCHG64=y 182 | CONFIG_X86_CMOV=y 183 | CONFIG_X86_MINIMUM_CPU_FAMILY=64 184 | CONFIG_CPU_SUP_INTEL=y 185 | CONFIG_CPU_SUP_AMD=y 186 | CONFIG_CPU_SUP_HYGON=y 187 | CONFIG_CPU_SUP_CENTAUR=y 188 | CONFIG_CPU_SUP_ZHAOXIN=y 189 | # end of Host processor type and features 190 | 191 | CONFIG_UML_X86=y 192 | CONFIG_64BIT=y 193 | CONFIG_X86_64=y 194 | CONFIG_ARCH_DEFCONFIG="arch/um/configs/x86_64_defconfig" 195 | CONFIG_3_LEVEL_PGTABLES=y 196 | CONFIG_GENERIC_HWEIGHT=y 197 | CONFIG_STATIC_LINK=y 198 | CONFIG_LD_SCRIPT_STATIC=y 199 | # CONFIG_HOSTFS is not set 200 | # CONFIG_MCONSOLE is not set 201 | CONFIG_KERNEL_STACK_ORDER=3 202 | # CONFIG_MMAPPER is not set 203 | CONFIG_NO_DMA=y 204 | CONFIG_PGTABLE_LEVELS=3 205 | # CONFIG_SECCOMP is not set 206 | # CONFIG_UML_TIME_TRAVEL_SUPPORT is not set 207 | # end of UML-specific options 208 | 209 | # 210 | # UML Character Devices 211 | # 212 | CONFIG_STDERR_CONSOLE=y 213 | CONFIG_SSL=y 214 | CONFIG_NULL_CHAN=y 215 | CONFIG_PORT_CHAN=y 216 | CONFIG_PTY_CHAN=y 217 | CONFIG_TTY_CHAN=y 218 | CONFIG_XTERM_CHAN=y 219 | CONFIG_CON_ZERO_CHAN="fd:0,fd:1" 220 | CONFIG_CON_CHAN="pts" 221 | CONFIG_SSL_CHAN="pts" 222 | CONFIG_UML_SOUND=m 223 | CONFIG_SOUND=m 224 | CONFIG_SOUND_OSS_CORE=y 225 | CONFIG_HOSTAUDIO=m 226 | # end of UML Character Devices 227 | 228 | # 229 | # UML Network Devices 230 | # 231 | CONFIG_UML_NET=y 232 | CONFIG_UML_NET_ETHERTAP=y 233 | CONFIG_UML_NET_TUNTAP=y 234 | CONFIG_UML_NET_SLIP=y 235 | CONFIG_UML_NET_DAEMON=y 236 | # CONFIG_UML_NET_VECTOR is not set 237 | # CONFIG_UML_NET_VDE is not set 238 | CONFIG_UML_NET_MCAST=y 239 | # CONFIG_UML_NET_PCAP is not set 240 | CONFIG_UML_NET_SLIRP=y 241 | # end of UML Network Devices 242 | 243 | # 244 | # General architecture-dependent options 245 | # 246 | CONFIG_HAVE_ARCH_SECCOMP_FILTER=y 247 | CONFIG_CC_HAS_STACKPROTECTOR_NONE=y 248 | CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y 249 | CONFIG_MODULES_USE_ELF_RELA=y 250 | CONFIG_64BIT_TIME=y 251 | CONFIG_ARCH_NO_PREEMPT=y 252 | # CONFIG_REFCOUNT_FULL is not set 253 | 254 | # 255 | # GCOV-based kernel profiling 256 | # 257 | # end of GCOV-based kernel profiling 258 | 259 | CONFIG_PLUGIN_HOSTCC="" 260 | CONFIG_HAVE_GCC_PLUGINS=y 261 | # end of General architecture-dependent options 262 | 263 | CONFIG_RT_MUTEXES=y 264 | CONFIG_BASE_SMALL=0 265 | CONFIG_MODULES=y 266 | # CONFIG_MODULE_FORCE_LOAD is not set 267 | CONFIG_MODULE_UNLOAD=y 268 | # CONFIG_MODULE_FORCE_UNLOAD is not set 269 | # CONFIG_MODVERSIONS is not set 270 | # CONFIG_MODULE_SRCVERSION_ALL is not set 271 | # CONFIG_MODULE_SIG is not set 272 | # CONFIG_MODULE_COMPRESS is not set 273 | # CONFIG_TRIM_UNUSED_KSYMS is not set 274 | CONFIG_BLOCK=y 275 | # CONFIG_BLK_DEV_BSG is not set 276 | # CONFIG_BLK_DEV_BSGLIB is not set 277 | # CONFIG_BLK_DEV_INTEGRITY is not set 278 | # CONFIG_BLK_DEV_ZONED is not set 279 | # CONFIG_BLK_DEV_THROTTLING is not set 280 | # CONFIG_BLK_CMDLINE_PARSER is not set 281 | # CONFIG_BLK_WBT is not set 282 | # CONFIG_BLK_CGROUP_IOLATENCY is not set 283 | # CONFIG_BLK_SED_OPAL is not set 284 | 285 | # 286 | # Partition Types 287 | # 288 | # CONFIG_PARTITION_ADVANCED is not set 289 | CONFIG_MSDOS_PARTITION=y 290 | CONFIG_EFI_PARTITION=y 291 | # end of Partition Types 292 | 293 | # 294 | # IO Schedulers 295 | # 296 | CONFIG_MQ_IOSCHED_DEADLINE=y 297 | CONFIG_MQ_IOSCHED_KYBER=y 298 | # CONFIG_IOSCHED_BFQ is not set 299 | # end of IO Schedulers 300 | 301 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y 302 | CONFIG_INLINE_READ_UNLOCK=y 303 | CONFIG_INLINE_READ_UNLOCK_IRQ=y 304 | CONFIG_INLINE_WRITE_UNLOCK=y 305 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y 306 | 307 | # 308 | # Executable file formats 309 | # 310 | CONFIG_BINFMT_ELF_FDPIC=y 311 | CONFIG_ELFCORE=y 312 | CONFIG_BINFMT_SCRIPT=y 313 | CONFIG_BINFMT_MISC=m 314 | CONFIG_COREDUMP=y 315 | # end of Executable file formats 316 | 317 | # 318 | # Memory Management options 319 | # 320 | CONFIG_FLATMEM=y 321 | CONFIG_FLAT_NODE_MEM_MAP=y 322 | CONFIG_SPLIT_PTLOCK_CPUS=999999 323 | CONFIG_PHYS_ADDR_T_64BIT=y 324 | CONFIG_NOMMU_INITIAL_TRIM_EXCESS=1 325 | CONFIG_NEED_PER_CPU_KM=y 326 | # CONFIG_CLEANCACHE is not set 327 | # CONFIG_ZPOOL is not set 328 | # CONFIG_ZBUD is not set 329 | # CONFIG_PERCPU_STATS is not set 330 | # CONFIG_GUP_BENCHMARK is not set 331 | # end of Memory Management options 332 | 333 | CONFIG_NET=y 334 | 335 | # 336 | # Networking options 337 | # 338 | CONFIG_PACKET=y 339 | # CONFIG_PACKET_DIAG is not set 340 | CONFIG_UNIX=y 341 | CONFIG_UNIX_SCM=y 342 | # CONFIG_UNIX_DIAG is not set 343 | # CONFIG_TLS is not set 344 | # CONFIG_XFRM_USER is not set 345 | # CONFIG_NET_KEY is not set 346 | CONFIG_INET=y 347 | # CONFIG_IP_MULTICAST is not set 348 | # CONFIG_IP_ADVANCED_ROUTER is not set 349 | # CONFIG_IP_PNP is not set 350 | # CONFIG_NET_IPIP is not set 351 | # CONFIG_NET_IPGRE_DEMUX is not set 352 | CONFIG_NET_IP_TUNNEL=y 353 | # CONFIG_SYN_COOKIES is not set 354 | # CONFIG_NET_IPVTI is not set 355 | # CONFIG_NET_FOU is not set 356 | # CONFIG_NET_FOU_IP_TUNNELS is not set 357 | # CONFIG_INET_AH is not set 358 | # CONFIG_INET_ESP is not set 359 | # CONFIG_INET_IPCOMP is not set 360 | CONFIG_INET_TUNNEL=y 361 | CONFIG_INET_DIAG=y 362 | CONFIG_INET_TCP_DIAG=y 363 | # CONFIG_INET_UDP_DIAG is not set 364 | # CONFIG_INET_RAW_DIAG is not set 365 | # CONFIG_INET_DIAG_DESTROY is not set 366 | # CONFIG_TCP_CONG_ADVANCED is not set 367 | CONFIG_TCP_CONG_CUBIC=y 368 | CONFIG_DEFAULT_TCP_CONG="cubic" 369 | # CONFIG_TCP_MD5SIG is not set 370 | CONFIG_IPV6=y 371 | # CONFIG_IPV6_ROUTER_PREF is not set 372 | # CONFIG_IPV6_OPTIMISTIC_DAD is not set 373 | # CONFIG_INET6_AH is not set 374 | # CONFIG_INET6_ESP is not set 375 | # CONFIG_INET6_IPCOMP is not set 376 | # CONFIG_IPV6_MIP6 is not set 377 | # CONFIG_IPV6_VTI is not set 378 | CONFIG_IPV6_SIT=y 379 | # CONFIG_IPV6_SIT_6RD is not set 380 | CONFIG_IPV6_NDISC_NODETYPE=y 381 | # CONFIG_IPV6_TUNNEL is not set 382 | # CONFIG_IPV6_MULTIPLE_TABLES is not set 383 | # CONFIG_IPV6_MROUTE is not set 384 | # CONFIG_IPV6_SEG6_LWTUNNEL is not set 385 | # CONFIG_IPV6_SEG6_HMAC is not set 386 | # CONFIG_NETWORK_SECMARK is not set 387 | # CONFIG_NETWORK_PHY_TIMESTAMPING is not set 388 | # CONFIG_NETFILTER is not set 389 | # CONFIG_BPFILTER is not set 390 | # CONFIG_IP_DCCP is not set 391 | # CONFIG_IP_SCTP is not set 392 | # CONFIG_RDS is not set 393 | # CONFIG_TIPC is not set 394 | # CONFIG_ATM is not set 395 | # CONFIG_L2TP is not set 396 | # CONFIG_BRIDGE is not set 397 | CONFIG_HAVE_NET_DSA=y 398 | # CONFIG_NET_DSA is not set 399 | # CONFIG_VLAN_8021Q is not set 400 | # CONFIG_DECNET is not set 401 | # CONFIG_LLC2 is not set 402 | # CONFIG_ATALK is not set 403 | # CONFIG_X25 is not set 404 | # CONFIG_LAPB is not set 405 | # CONFIG_PHONET is not set 406 | # CONFIG_6LOWPAN is not set 407 | # CONFIG_IEEE802154 is not set 408 | # CONFIG_NET_SCHED is not set 409 | # CONFIG_DCB is not set 410 | # CONFIG_BATMAN_ADV is not set 411 | # CONFIG_OPENVSWITCH is not set 412 | # CONFIG_VSOCKETS is not set 413 | # CONFIG_NETLINK_DIAG is not set 414 | # CONFIG_MPLS is not set 415 | # CONFIG_NET_NSH is not set 416 | # CONFIG_HSR is not set 417 | # CONFIG_NET_SWITCHDEV is not set 418 | # CONFIG_NET_L3_MASTER_DEV is not set 419 | # CONFIG_NET_NCSI is not set 420 | # CONFIG_CGROUP_NET_PRIO is not set 421 | # CONFIG_CGROUP_NET_CLASSID is not set 422 | CONFIG_NET_RX_BUSY_POLL=y 423 | CONFIG_BQL=y 424 | 425 | # 426 | # Network testing 427 | # 428 | # CONFIG_NET_PKTGEN is not set 429 | # end of Network testing 430 | # end of Networking options 431 | 432 | # CONFIG_HAMRADIO is not set 433 | # CONFIG_CAN is not set 434 | # CONFIG_BT is not set 435 | # CONFIG_AF_RXRPC is not set 436 | # CONFIG_AF_KCM is not set 437 | CONFIG_WIRELESS=y 438 | # CONFIG_CFG80211 is not set 439 | 440 | # 441 | # CFG80211 needs to be enabled for MAC80211 442 | # 443 | CONFIG_MAC80211_STA_HASH_MAX_SIZE=0 444 | # CONFIG_WIMAX is not set 445 | # CONFIG_RFKILL is not set 446 | # CONFIG_NET_9P is not set 447 | # CONFIG_CAIF is not set 448 | # CONFIG_CEPH_LIB is not set 449 | # CONFIG_NFC is not set 450 | # CONFIG_PSAMPLE is not set 451 | # CONFIG_NET_IFE is not set 452 | # CONFIG_LWTUNNEL is not set 453 | CONFIG_DST_CACHE=y 454 | CONFIG_GRO_CELLS=y 455 | # CONFIG_FAILOVER is not set 456 | 457 | # 458 | # Device Drivers 459 | # 460 | 461 | # 462 | # Generic Driver Options 463 | # 464 | # CONFIG_UEVENT_HELPER is not set 465 | CONFIG_DEVTMPFS=y 466 | CONFIG_DEVTMPFS_MOUNT=y 467 | CONFIG_STANDALONE=y 468 | CONFIG_PREVENT_FIRMWARE_BUILD=y 469 | 470 | # 471 | # Firmware loader 472 | # 473 | CONFIG_FW_LOADER=y 474 | CONFIG_EXTRA_FIRMWARE="" 475 | # CONFIG_FW_LOADER_USER_HELPER is not set 476 | # CONFIG_FW_LOADER_COMPRESS is not set 477 | # end of Firmware loader 478 | 479 | CONFIG_ALLOW_DEV_COREDUMP=y 480 | # CONFIG_DEBUG_DRIVER is not set 481 | # CONFIG_DEBUG_DEVRES is not set 482 | # CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set 483 | # CONFIG_TEST_ASYNC_DRIVER_PROBE is not set 484 | CONFIG_GENERIC_CPU_DEVICES=y 485 | # end of Generic Driver Options 486 | 487 | # 488 | # Bus devices 489 | # 490 | # end of Bus devices 491 | 492 | # CONFIG_CONNECTOR is not set 493 | # CONFIG_GNSS is not set 494 | # CONFIG_MTD is not set 495 | # CONFIG_OF is not set 496 | CONFIG_BLK_DEV=y 497 | # CONFIG_BLK_DEV_NULL_BLK is not set 498 | CONFIG_BLK_DEV_UBD=y 499 | # CONFIG_BLK_DEV_UBD_SYNC is not set 500 | CONFIG_BLK_DEV_COW_COMMON=y 501 | CONFIG_BLK_DEV_LOOP=m 502 | CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 503 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set 504 | # CONFIG_BLK_DEV_DRBD is not set 505 | CONFIG_BLK_DEV_NBD=m 506 | # CONFIG_BLK_DEV_RAM is not set 507 | # CONFIG_ATA_OVER_ETH is not set 508 | # CONFIG_BLK_DEV_RBD is not set 509 | 510 | # 511 | # NVME Support 512 | # 513 | # end of NVME Support 514 | 515 | # 516 | # Misc devices 517 | # 518 | # CONFIG_DUMMY_IRQ is not set 519 | # CONFIG_ENCLOSURE_SERVICES is not set 520 | # CONFIG_XILINX_SDFEC is not set 521 | # CONFIG_C2PORT is not set 522 | 523 | # 524 | # EEPROM support 525 | # 526 | # CONFIG_EEPROM_93CX6 is not set 527 | # end of EEPROM support 528 | 529 | # 530 | # Texas Instruments shared transport line discipline 531 | # 532 | # end of Texas Instruments shared transport line discipline 533 | 534 | # 535 | # Altera FPGA firmware download module (requires I2C) 536 | # 537 | 538 | # 539 | # Intel MIC & related support 540 | # 541 | 542 | # 543 | # Intel MIC Bus Driver 544 | # 545 | 546 | # 547 | # SCIF Bus Driver 548 | # 549 | 550 | # 551 | # VOP Bus Driver 552 | # 553 | # CONFIG_VOP_BUS is not set 554 | 555 | # 556 | # Intel MIC Host Driver 557 | # 558 | 559 | # 560 | # Intel MIC Card Driver 561 | # 562 | 563 | # 564 | # SCIF Driver 565 | # 566 | 567 | # 568 | # Intel MIC Coprocessor State Management (COSM) Drivers 569 | # 570 | 571 | # 572 | # VOP Driver 573 | # 574 | # end of Intel MIC & related support 575 | 576 | # CONFIG_ECHO is not set 577 | # end of Misc devices 578 | 579 | # 580 | # SCSI device support 581 | # 582 | CONFIG_SCSI_MOD=y 583 | # CONFIG_RAID_ATTRS is not set 584 | # CONFIG_SCSI is not set 585 | # end of SCSI device support 586 | 587 | # CONFIG_MD is not set 588 | # CONFIG_TARGET_CORE is not set 589 | CONFIG_NETDEVICES=y 590 | CONFIG_NET_CORE=y 591 | # CONFIG_BONDING is not set 592 | CONFIG_DUMMY=m 593 | # CONFIG_EQUALIZER is not set 594 | # CONFIG_NET_TEAM is not set 595 | # CONFIG_MACVLAN is not set 596 | # CONFIG_IPVLAN is not set 597 | # CONFIG_VXLAN is not set 598 | # CONFIG_GENEVE is not set 599 | # CONFIG_GTP is not set 600 | # CONFIG_MACSEC is not set 601 | # CONFIG_NETCONSOLE is not set 602 | CONFIG_TUN=m 603 | # CONFIG_TUN_VNET_CROSS_LE is not set 604 | # CONFIG_VETH is not set 605 | # CONFIG_NLMON is not set 606 | 607 | # 608 | # CAIF transport drivers 609 | # 610 | 611 | # 612 | # Distributed Switch Architecture drivers 613 | # 614 | # end of Distributed Switch Architecture drivers 615 | 616 | CONFIG_ETHERNET=y 617 | CONFIG_NET_VENDOR_ALACRITECH=y 618 | CONFIG_NET_VENDOR_AMAZON=y 619 | CONFIG_NET_VENDOR_AQUANTIA=y 620 | CONFIG_NET_VENDOR_ARC=y 621 | CONFIG_NET_VENDOR_AURORA=y 622 | CONFIG_NET_VENDOR_CAVIUM=y 623 | CONFIG_NET_VENDOR_CORTINA=y 624 | CONFIG_NET_VENDOR_EZCHIP=y 625 | CONFIG_NET_VENDOR_GOOGLE=y 626 | CONFIG_NET_VENDOR_HUAWEI=y 627 | CONFIG_NET_VENDOR_I825XX=y 628 | CONFIG_NET_VENDOR_INTEL=y 629 | CONFIG_NET_VENDOR_MARVELL=y 630 | CONFIG_NET_VENDOR_MICROCHIP=y 631 | CONFIG_NET_VENDOR_MICROSEMI=y 632 | CONFIG_NET_VENDOR_NATSEMI=y 633 | CONFIG_NET_VENDOR_NETRONOME=y 634 | CONFIG_NET_VENDOR_NI=y 635 | CONFIG_NET_VENDOR_8390=y 636 | CONFIG_NET_VENDOR_QUALCOMM=y 637 | # CONFIG_RMNET is not set 638 | CONFIG_NET_VENDOR_RENESAS=y 639 | CONFIG_NET_VENDOR_ROCKER=y 640 | CONFIG_NET_VENDOR_SAMSUNG=y 641 | CONFIG_NET_VENDOR_SOLARFLARE=y 642 | CONFIG_NET_VENDOR_SOCIONEXT=y 643 | CONFIG_NET_VENDOR_SYNOPSYS=y 644 | CONFIG_NET_VENDOR_VIA=y 645 | # CONFIG_MDIO_DEVICE is not set 646 | # CONFIG_PHYLIB is not set 647 | CONFIG_PPP=m 648 | # CONFIG_PPP_BSDCOMP is not set 649 | # CONFIG_PPP_DEFLATE is not set 650 | # CONFIG_PPP_FILTER is not set 651 | # CONFIG_PPP_MPPE is not set 652 | # CONFIG_PPP_MULTILINK is not set 653 | # CONFIG_PPPOE is not set 654 | # CONFIG_PPP_ASYNC is not set 655 | # CONFIG_PPP_SYNC_TTY is not set 656 | CONFIG_SLIP=m 657 | CONFIG_SLHC=m 658 | # CONFIG_SLIP_COMPRESSED is not set 659 | # CONFIG_SLIP_SMART is not set 660 | # CONFIG_SLIP_MODE_SLIP6 is not set 661 | 662 | # 663 | # Host-side USB support is needed for USB Network Adapter support 664 | # 665 | CONFIG_WLAN=y 666 | CONFIG_WLAN_VENDOR_ADMTEK=y 667 | CONFIG_WLAN_VENDOR_ATH=y 668 | # CONFIG_ATH_DEBUG is not set 669 | CONFIG_WLAN_VENDOR_ATMEL=y 670 | CONFIG_WLAN_VENDOR_BROADCOM=y 671 | CONFIG_WLAN_VENDOR_CISCO=y 672 | CONFIG_WLAN_VENDOR_INTEL=y 673 | CONFIG_WLAN_VENDOR_INTERSIL=y 674 | # CONFIG_HOSTAP is not set 675 | CONFIG_WLAN_VENDOR_MARVELL=y 676 | CONFIG_WLAN_VENDOR_MEDIATEK=y 677 | CONFIG_WLAN_VENDOR_RALINK=y 678 | CONFIG_WLAN_VENDOR_REALTEK=y 679 | CONFIG_WLAN_VENDOR_RSI=y 680 | CONFIG_WLAN_VENDOR_ST=y 681 | CONFIG_WLAN_VENDOR_TI=y 682 | CONFIG_WLAN_VENDOR_ZYDAS=y 683 | CONFIG_WLAN_VENDOR_QUANTENNA=y 684 | 685 | # 686 | # Enable WiMAX (Networking options) to see the WiMAX drivers 687 | # 688 | # CONFIG_WAN is not set 689 | # CONFIG_NET_FAILOVER is not set 690 | # CONFIG_NVM is not set 691 | 692 | # 693 | # Character devices 694 | # 695 | CONFIG_TTY=y 696 | CONFIG_UNIX98_PTYS=y 697 | CONFIG_LEGACY_PTYS=y 698 | CONFIG_LEGACY_PTY_COUNT=32 699 | # CONFIG_N_GSM is not set 700 | # CONFIG_TRACE_SINK is not set 701 | # CONFIG_NULL_TTY is not set 702 | CONFIG_LDISC_AUTOLOAD=y 703 | CONFIG_DEVMEM=y 704 | # CONFIG_DEVKMEM is not set 705 | # CONFIG_SERIAL_DEV_BUS is not set 706 | # CONFIG_HW_RANDOM is not set 707 | CONFIG_UML_RANDOM=y 708 | # CONFIG_RAW_DRIVER is not set 709 | # end of Character devices 710 | 711 | # 712 | # I2C support 713 | # 714 | # CONFIG_I2C is not set 715 | # end of I2C support 716 | 717 | # CONFIG_I3C is not set 718 | # CONFIG_SPMI is not set 719 | # CONFIG_HSI is not set 720 | # CONFIG_PPS is not set 721 | 722 | # 723 | # PTP clock support 724 | # 725 | # CONFIG_PTP_1588_CLOCK is not set 726 | 727 | # 728 | # Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. 729 | # 730 | # end of PTP clock support 731 | 732 | # CONFIG_PINCTRL is not set 733 | # CONFIG_GPIOLIB is not set 734 | # CONFIG_POWER_AVS is not set 735 | # CONFIG_POWER_RESET is not set 736 | # CONFIG_POWER_SUPPLY is not set 737 | # CONFIG_THERMAL is not set 738 | # CONFIG_WATCHDOG is not set 739 | # CONFIG_REGULATOR is not set 740 | 741 | # 742 | # Graphics support 743 | # 744 | # end of Graphics support 745 | 746 | CONFIG_SOUND_OSS_CORE_PRECLAIM=y 747 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y 748 | # CONFIG_UWB is not set 749 | # CONFIG_MEMSTICK is not set 750 | # CONFIG_NEW_LEDS is not set 751 | # CONFIG_ACCESSIBILITY is not set 752 | 753 | # 754 | # DMABUF options 755 | # 756 | # CONFIG_SYNC_FILE is not set 757 | # end of DMABUF options 758 | 759 | # CONFIG_AUXDISPLAY is not set 760 | # CONFIG_VIRT_DRIVERS is not set 761 | CONFIG_VIRTIO_MENU=y 762 | 763 | # 764 | # Microsoft Hyper-V guest support 765 | # 766 | # end of Microsoft Hyper-V guest support 767 | 768 | # CONFIG_STAGING is not set 769 | # CONFIG_HWSPINLOCK is not set 770 | 771 | # 772 | # Clock Source drivers 773 | # 774 | # end of Clock Source drivers 775 | 776 | # CONFIG_MAILBOX is not set 777 | 778 | # 779 | # Remoteproc drivers 780 | # 781 | # end of Remoteproc drivers 782 | 783 | # 784 | # Rpmsg drivers 785 | # 786 | # end of Rpmsg drivers 787 | 788 | # CONFIG_SOUNDWIRE is not set 789 | 790 | # 791 | # SOC (System On Chip) specific Drivers 792 | # 793 | 794 | # 795 | # Amlogic SoC drivers 796 | # 797 | # end of Amlogic SoC drivers 798 | 799 | # 800 | # Aspeed SoC drivers 801 | # 802 | # end of Aspeed SoC drivers 803 | 804 | # 805 | # Broadcom SoC drivers 806 | # 807 | # end of Broadcom SoC drivers 808 | 809 | # 810 | # NXP/Freescale QorIQ SoC drivers 811 | # 812 | # end of NXP/Freescale QorIQ SoC drivers 813 | 814 | # 815 | # i.MX SoC drivers 816 | # 817 | # end of i.MX SoC drivers 818 | 819 | # 820 | # IXP4xx SoC drivers 821 | # 822 | # CONFIG_IXP4XX_QMGR is not set 823 | # CONFIG_IXP4XX_NPE is not set 824 | # end of IXP4xx SoC drivers 825 | 826 | # 827 | # Qualcomm SoC drivers 828 | # 829 | # end of Qualcomm SoC drivers 830 | 831 | # CONFIG_SOC_TI is not set 832 | 833 | # 834 | # Xilinx SoC drivers 835 | # 836 | # end of Xilinx SoC drivers 837 | # end of SOC (System On Chip) specific Drivers 838 | 839 | # CONFIG_PM_DEVFREQ is not set 840 | # CONFIG_EXTCON is not set 841 | # CONFIG_MEMORY is not set 842 | # CONFIG_IIO is not set 843 | # CONFIG_PWM is not set 844 | 845 | # 846 | # IRQ chip support 847 | # 848 | # end of IRQ chip support 849 | 850 | # CONFIG_RESET_CONTROLLER is not set 851 | 852 | # 853 | # PHY Subsystem 854 | # 855 | # CONFIG_GENERIC_PHY is not set 856 | # end of PHY Subsystem 857 | 858 | # CONFIG_POWERCAP is not set 859 | # CONFIG_RAS is not set 860 | 861 | # 862 | # Android 863 | # 864 | # CONFIG_ANDROID is not set 865 | # end of Android 866 | 867 | # CONFIG_DAX is not set 868 | # CONFIG_NVMEM is not set 869 | 870 | # 871 | # HW tracing support 872 | # 873 | # CONFIG_STM is not set 874 | # end of HW tracing support 875 | 876 | # CONFIG_FPGA is not set 877 | # CONFIG_SIOX is not set 878 | # CONFIG_SLIMBUS is not set 879 | # CONFIG_INTERCONNECT is not set 880 | # CONFIG_COUNTER is not set 881 | # end of Device Drivers 882 | 883 | # 884 | # File systems 885 | # 886 | # CONFIG_VALIDATE_FS_PARSER is not set 887 | CONFIG_FS_IOMAP=y 888 | # CONFIG_EXT2_FS is not set 889 | # CONFIG_EXT3_FS is not set 890 | CONFIG_EXT4_FS=y 891 | CONFIG_EXT4_USE_FOR_EXT2=y 892 | # CONFIG_EXT4_FS_POSIX_ACL is not set 893 | # CONFIG_EXT4_FS_SECURITY is not set 894 | # CONFIG_EXT4_DEBUG is not set 895 | CONFIG_JBD2=y 896 | # CONFIG_JBD2_DEBUG is not set 897 | CONFIG_FS_MBCACHE=y 898 | CONFIG_REISERFS_FS=y 899 | # CONFIG_REISERFS_CHECK is not set 900 | # CONFIG_REISERFS_PROC_INFO is not set 901 | # CONFIG_REISERFS_FS_XATTR is not set 902 | # CONFIG_JFS_FS is not set 903 | # CONFIG_XFS_FS is not set 904 | # CONFIG_GFS2_FS is not set 905 | # CONFIG_BTRFS_FS is not set 906 | # CONFIG_NILFS2_FS is not set 907 | # CONFIG_F2FS_FS is not set 908 | CONFIG_EXPORTFS=y 909 | # CONFIG_EXPORTFS_BLOCK_OPS is not set 910 | CONFIG_FILE_LOCKING=y 911 | CONFIG_MANDATORY_FILE_LOCKING=y 912 | # CONFIG_FS_ENCRYPTION is not set 913 | CONFIG_FSNOTIFY=y 914 | CONFIG_DNOTIFY=y 915 | CONFIG_INOTIFY_USER=y 916 | # CONFIG_FANOTIFY is not set 917 | CONFIG_QUOTA=y 918 | # CONFIG_QUOTA_NETLINK_INTERFACE is not set 919 | CONFIG_PRINT_QUOTA_WARNING=y 920 | # CONFIG_QUOTA_DEBUG is not set 921 | # CONFIG_QFMT_V1 is not set 922 | # CONFIG_QFMT_V2 is not set 923 | CONFIG_QUOTACTL=y 924 | CONFIG_AUTOFS4_FS=m 925 | CONFIG_AUTOFS_FS=m 926 | # CONFIG_FUSE_FS is not set 927 | # CONFIG_OVERLAY_FS is not set 928 | 929 | # 930 | # Caches 931 | # 932 | # CONFIG_FSCACHE is not set 933 | # end of Caches 934 | 935 | # 936 | # CD-ROM/DVD Filesystems 937 | # 938 | CONFIG_ISO9660_FS=y 939 | CONFIG_JOLIET=y 940 | # CONFIG_ZISOFS is not set 941 | # CONFIG_UDF_FS is not set 942 | # end of CD-ROM/DVD Filesystems 943 | 944 | # 945 | # DOS/FAT/NT Filesystems 946 | # 947 | # CONFIG_MSDOS_FS is not set 948 | # CONFIG_VFAT_FS is not set 949 | # CONFIG_NTFS_FS is not set 950 | # end of DOS/FAT/NT Filesystems 951 | 952 | # 953 | # Pseudo filesystems 954 | # 955 | CONFIG_PROC_FS=y 956 | CONFIG_PROC_SYSCTL=y 957 | # CONFIG_PROC_CHILDREN is not set 958 | CONFIG_KERNFS=y 959 | CONFIG_SYSFS=y 960 | # CONFIG_CONFIGFS_FS is not set 961 | # end of Pseudo filesystems 962 | 963 | CONFIG_MISC_FILESYSTEMS=y 964 | # CONFIG_ORANGEFS_FS is not set 965 | # CONFIG_ADFS_FS is not set 966 | # CONFIG_AFFS_FS is not set 967 | # CONFIG_HFS_FS is not set 968 | # CONFIG_HFSPLUS_FS is not set 969 | # CONFIG_BEFS_FS is not set 970 | # CONFIG_BFS_FS is not set 971 | # CONFIG_EFS_FS is not set 972 | # CONFIG_CRAMFS is not set 973 | # CONFIG_SQUASHFS is not set 974 | # CONFIG_VXFS_FS is not set 975 | # CONFIG_MINIX_FS is not set 976 | # CONFIG_OMFS_FS is not set 977 | # CONFIG_HPFS_FS is not set 978 | # CONFIG_QNX4FS_FS is not set 979 | # CONFIG_QNX6FS_FS is not set 980 | # CONFIG_ROMFS_FS is not set 981 | # CONFIG_PSTORE is not set 982 | # CONFIG_SYSV_FS is not set 983 | # CONFIG_UFS_FS is not set 984 | CONFIG_NETWORK_FILESYSTEMS=y 985 | # CONFIG_NFS_FS is not set 986 | # CONFIG_NFSD is not set 987 | # CONFIG_CEPH_FS is not set 988 | # CONFIG_CIFS is not set 989 | # CONFIG_CODA_FS is not set 990 | # CONFIG_AFS_FS is not set 991 | CONFIG_NLS=y 992 | CONFIG_NLS_DEFAULT="iso8859-1" 993 | # CONFIG_NLS_CODEPAGE_437 is not set 994 | # CONFIG_NLS_CODEPAGE_737 is not set 995 | # CONFIG_NLS_CODEPAGE_775 is not set 996 | # CONFIG_NLS_CODEPAGE_850 is not set 997 | # CONFIG_NLS_CODEPAGE_852 is not set 998 | # CONFIG_NLS_CODEPAGE_855 is not set 999 | # CONFIG_NLS_CODEPAGE_857 is not set 1000 | # CONFIG_NLS_CODEPAGE_860 is not set 1001 | # CONFIG_NLS_CODEPAGE_861 is not set 1002 | # CONFIG_NLS_CODEPAGE_862 is not set 1003 | # CONFIG_NLS_CODEPAGE_863 is not set 1004 | # CONFIG_NLS_CODEPAGE_864 is not set 1005 | # CONFIG_NLS_CODEPAGE_865 is not set 1006 | # CONFIG_NLS_CODEPAGE_866 is not set 1007 | # CONFIG_NLS_CODEPAGE_869 is not set 1008 | # CONFIG_NLS_CODEPAGE_936 is not set 1009 | # CONFIG_NLS_CODEPAGE_950 is not set 1010 | # CONFIG_NLS_CODEPAGE_932 is not set 1011 | # CONFIG_NLS_CODEPAGE_949 is not set 1012 | # CONFIG_NLS_CODEPAGE_874 is not set 1013 | # CONFIG_NLS_ISO8859_8 is not set 1014 | # CONFIG_NLS_CODEPAGE_1250 is not set 1015 | # CONFIG_NLS_CODEPAGE_1251 is not set 1016 | # CONFIG_NLS_ASCII is not set 1017 | # CONFIG_NLS_ISO8859_1 is not set 1018 | # CONFIG_NLS_ISO8859_2 is not set 1019 | # CONFIG_NLS_ISO8859_3 is not set 1020 | # CONFIG_NLS_ISO8859_4 is not set 1021 | # CONFIG_NLS_ISO8859_5 is not set 1022 | # CONFIG_NLS_ISO8859_6 is not set 1023 | # CONFIG_NLS_ISO8859_7 is not set 1024 | # CONFIG_NLS_ISO8859_9 is not set 1025 | # CONFIG_NLS_ISO8859_13 is not set 1026 | # CONFIG_NLS_ISO8859_14 is not set 1027 | # CONFIG_NLS_ISO8859_15 is not set 1028 | # CONFIG_NLS_KOI8_R is not set 1029 | # CONFIG_NLS_KOI8_U is not set 1030 | # CONFIG_NLS_MAC_ROMAN is not set 1031 | # CONFIG_NLS_MAC_CELTIC is not set 1032 | # CONFIG_NLS_MAC_CENTEURO is not set 1033 | # CONFIG_NLS_MAC_CROATIAN is not set 1034 | # CONFIG_NLS_MAC_CYRILLIC is not set 1035 | # CONFIG_NLS_MAC_GAELIC is not set 1036 | # CONFIG_NLS_MAC_GREEK is not set 1037 | # CONFIG_NLS_MAC_ICELAND is not set 1038 | # CONFIG_NLS_MAC_INUIT is not set 1039 | # CONFIG_NLS_MAC_ROMANIAN is not set 1040 | # CONFIG_NLS_MAC_TURKISH is not set 1041 | # CONFIG_NLS_UTF8 is not set 1042 | # CONFIG_UNICODE is not set 1043 | # end of File systems 1044 | 1045 | # 1046 | # Security options 1047 | # 1048 | # CONFIG_KEYS is not set 1049 | # CONFIG_SECURITY_DMESG_RESTRICT is not set 1050 | # CONFIG_SECURITY is not set 1051 | # CONFIG_SECURITYFS is not set 1052 | CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y 1053 | # CONFIG_HARDENED_USERCOPY is not set 1054 | # CONFIG_STATIC_USERMODEHELPER is not set 1055 | CONFIG_DEFAULT_SECURITY_DAC=y 1056 | CONFIG_LSM="yama,loadpin,safesetid,integrity" 1057 | 1058 | # 1059 | # Kernel hardening options 1060 | # 1061 | 1062 | # 1063 | # Memory initialization 1064 | # 1065 | CONFIG_INIT_STACK_NONE=y 1066 | # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set 1067 | # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set 1068 | # end of Memory initialization 1069 | # end of Kernel hardening options 1070 | # end of Security options 1071 | 1072 | CONFIG_CRYPTO=y 1073 | 1074 | # 1075 | # Crypto core or helper 1076 | # 1077 | CONFIG_CRYPTO_ALGAPI=y 1078 | CONFIG_CRYPTO_ALGAPI2=y 1079 | CONFIG_CRYPTO_HASH=y 1080 | CONFIG_CRYPTO_HASH2=y 1081 | # CONFIG_CRYPTO_MANAGER is not set 1082 | # CONFIG_CRYPTO_USER is not set 1083 | # CONFIG_CRYPTO_NULL is not set 1084 | # CONFIG_CRYPTO_CRYPTD is not set 1085 | # CONFIG_CRYPTO_AUTHENC is not set 1086 | # CONFIG_CRYPTO_TEST is not set 1087 | 1088 | # 1089 | # Public-key cryptography 1090 | # 1091 | # CONFIG_CRYPTO_RSA is not set 1092 | # CONFIG_CRYPTO_DH is not set 1093 | # CONFIG_CRYPTO_ECDH is not set 1094 | # CONFIG_CRYPTO_ECRDSA is not set 1095 | 1096 | # 1097 | # Authenticated Encryption with Associated Data 1098 | # 1099 | # CONFIG_CRYPTO_CCM is not set 1100 | # CONFIG_CRYPTO_GCM is not set 1101 | # CONFIG_CRYPTO_CHACHA20POLY1305 is not set 1102 | # CONFIG_CRYPTO_AEGIS128 is not set 1103 | # CONFIG_CRYPTO_AEGIS128L is not set 1104 | # CONFIG_CRYPTO_AEGIS256 is not set 1105 | # CONFIG_CRYPTO_MORUS640 is not set 1106 | # CONFIG_CRYPTO_MORUS1280 is not set 1107 | # CONFIG_CRYPTO_SEQIV is not set 1108 | # CONFIG_CRYPTO_ECHAINIV is not set 1109 | 1110 | # 1111 | # Block modes 1112 | # 1113 | # CONFIG_CRYPTO_CBC is not set 1114 | # CONFIG_CRYPTO_CFB is not set 1115 | # CONFIG_CRYPTO_CTR is not set 1116 | # CONFIG_CRYPTO_CTS is not set 1117 | # CONFIG_CRYPTO_ECB is not set 1118 | # CONFIG_CRYPTO_LRW is not set 1119 | # CONFIG_CRYPTO_OFB is not set 1120 | # CONFIG_CRYPTO_PCBC is not set 1121 | # CONFIG_CRYPTO_XTS is not set 1122 | # CONFIG_CRYPTO_KEYWRAP is not set 1123 | # CONFIG_CRYPTO_ADIANTUM is not set 1124 | 1125 | # 1126 | # Hash modes 1127 | # 1128 | # CONFIG_CRYPTO_CMAC is not set 1129 | # CONFIG_CRYPTO_HMAC is not set 1130 | # CONFIG_CRYPTO_XCBC is not set 1131 | # CONFIG_CRYPTO_VMAC is not set 1132 | 1133 | # 1134 | # Digest 1135 | # 1136 | CONFIG_CRYPTO_CRC32C=y 1137 | # CONFIG_CRYPTO_CRC32 is not set 1138 | # CONFIG_CRYPTO_XXHASH is not set 1139 | # CONFIG_CRYPTO_CRCT10DIF is not set 1140 | # CONFIG_CRYPTO_GHASH is not set 1141 | # CONFIG_CRYPTO_POLY1305 is not set 1142 | # CONFIG_CRYPTO_MD4 is not set 1143 | # CONFIG_CRYPTO_MD5 is not set 1144 | # CONFIG_CRYPTO_MICHAEL_MIC is not set 1145 | # CONFIG_CRYPTO_RMD128 is not set 1146 | # CONFIG_CRYPTO_RMD160 is not set 1147 | # CONFIG_CRYPTO_RMD256 is not set 1148 | # CONFIG_CRYPTO_RMD320 is not set 1149 | # CONFIG_CRYPTO_SHA1 is not set 1150 | # CONFIG_CRYPTO_SHA256 is not set 1151 | # CONFIG_CRYPTO_SHA512 is not set 1152 | # CONFIG_CRYPTO_SHA3 is not set 1153 | # CONFIG_CRYPTO_SM3 is not set 1154 | # CONFIG_CRYPTO_STREEBOG is not set 1155 | # CONFIG_CRYPTO_TGR192 is not set 1156 | # CONFIG_CRYPTO_WP512 is not set 1157 | 1158 | # 1159 | # Ciphers 1160 | # 1161 | # CONFIG_CRYPTO_AES is not set 1162 | # CONFIG_CRYPTO_AES_TI is not set 1163 | # CONFIG_CRYPTO_AES_X86_64 is not set 1164 | # CONFIG_CRYPTO_ANUBIS is not set 1165 | # CONFIG_CRYPTO_ARC4 is not set 1166 | # CONFIG_CRYPTO_BLOWFISH is not set 1167 | # CONFIG_CRYPTO_CAMELLIA is not set 1168 | # CONFIG_CRYPTO_CAST5 is not set 1169 | # CONFIG_CRYPTO_CAST6 is not set 1170 | # CONFIG_CRYPTO_DES is not set 1171 | # CONFIG_CRYPTO_FCRYPT is not set 1172 | # CONFIG_CRYPTO_KHAZAD is not set 1173 | # CONFIG_CRYPTO_SALSA20 is not set 1174 | # CONFIG_CRYPTO_CHACHA20 is not set 1175 | # CONFIG_CRYPTO_SEED is not set 1176 | # CONFIG_CRYPTO_SERPENT is not set 1177 | # CONFIG_CRYPTO_SM4 is not set 1178 | # CONFIG_CRYPTO_TEA is not set 1179 | # CONFIG_CRYPTO_TWOFISH is not set 1180 | # CONFIG_CRYPTO_TWOFISH_X86_64 is not set 1181 | 1182 | # 1183 | # Compression 1184 | # 1185 | # CONFIG_CRYPTO_DEFLATE is not set 1186 | # CONFIG_CRYPTO_LZO is not set 1187 | # CONFIG_CRYPTO_842 is not set 1188 | # CONFIG_CRYPTO_LZ4 is not set 1189 | # CONFIG_CRYPTO_LZ4HC is not set 1190 | # CONFIG_CRYPTO_ZSTD is not set 1191 | 1192 | # 1193 | # Random Number Generation 1194 | # 1195 | # CONFIG_CRYPTO_ANSI_CPRNG is not set 1196 | # CONFIG_CRYPTO_DRBG_MENU is not set 1197 | # CONFIG_CRYPTO_JITTERENTROPY is not set 1198 | # CONFIG_CRYPTO_USER_API_HASH is not set 1199 | # CONFIG_CRYPTO_USER_API_SKCIPHER is not set 1200 | # CONFIG_CRYPTO_USER_API_RNG is not set 1201 | # CONFIG_CRYPTO_USER_API_AEAD is not set 1202 | CONFIG_CRYPTO_HW=y 1203 | 1204 | # 1205 | # Certificates for signature checking 1206 | # 1207 | # end of Certificates for signature checking 1208 | 1209 | # 1210 | # Library routines 1211 | # 1212 | # CONFIG_PACKING is not set 1213 | CONFIG_BITREVERSE=y 1214 | CONFIG_GENERIC_NET_UTILS=y 1215 | CONFIG_GENERIC_FIND_FIRST_BIT=y 1216 | # CONFIG_CORDIC is not set 1217 | # CONFIG_CRC_CCITT is not set 1218 | CONFIG_CRC16=y 1219 | # CONFIG_CRC_T10DIF is not set 1220 | # CONFIG_CRC_ITU_T is not set 1221 | CONFIG_CRC32=y 1222 | # CONFIG_CRC32_SELFTEST is not set 1223 | CONFIG_CRC32_SLICEBY8=y 1224 | # CONFIG_CRC32_SLICEBY4 is not set 1225 | # CONFIG_CRC32_SARWATE is not set 1226 | # CONFIG_CRC32_BIT is not set 1227 | # CONFIG_CRC64 is not set 1228 | # CONFIG_CRC4 is not set 1229 | # CONFIG_CRC7 is not set 1230 | # CONFIG_LIBCRC32C is not set 1231 | # CONFIG_CRC8 is not set 1232 | # CONFIG_RANDOM32_SELFTEST is not set 1233 | # CONFIG_XZ_DEC is not set 1234 | CONFIG_ARCH_DMA_ADDR_T_64BIT=y 1235 | # CONFIG_DMA_API_DEBUG is not set 1236 | CONFIG_DQL=y 1237 | CONFIG_NLATTR=y 1238 | # CONFIG_IRQ_POLL is not set 1239 | CONFIG_DIMLIB=y 1240 | CONFIG_SBITMAP=y 1241 | # CONFIG_STRING_SELFTEST is not set 1242 | # end of Library routines 1243 | 1244 | # 1245 | # Kernel hacking 1246 | # 1247 | 1248 | # 1249 | # printk and dmesg options 1250 | # 1251 | # CONFIG_PRINTK_TIME is not set 1252 | # CONFIG_PRINTK_CALLER is not set 1253 | CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 1254 | CONFIG_CONSOLE_LOGLEVEL_QUIET=4 1255 | CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 1256 | # end of printk and dmesg options 1257 | 1258 | # 1259 | # Compile-time checks and compiler options 1260 | # 1261 | CONFIG_DEBUG_INFO=y 1262 | # CONFIG_DEBUG_INFO_REDUCED is not set 1263 | # CONFIG_DEBUG_INFO_SPLIT is not set 1264 | # CONFIG_DEBUG_INFO_DWARF4 is not set 1265 | # CONFIG_DEBUG_INFO_BTF is not set 1266 | # CONFIG_GDB_SCRIPTS is not set 1267 | CONFIG_ENABLE_MUST_CHECK=y 1268 | CONFIG_FRAME_WARN=1024 1269 | # CONFIG_STRIP_ASM_SYMS is not set 1270 | # CONFIG_READABLE_ASM is not set 1271 | # CONFIG_UNUSED_SYMBOLS is not set 1272 | # CONFIG_DEBUG_FS is not set 1273 | # CONFIG_OPTIMIZE_INLINING is not set 1274 | # CONFIG_DEBUG_SECTION_MISMATCH is not set 1275 | CONFIG_SECTION_MISMATCH_WARN_ONLY=y 1276 | CONFIG_FRAME_POINTER=y 1277 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set 1278 | # end of Compile-time checks and compiler options 1279 | 1280 | CONFIG_DEBUG_KERNEL=y 1281 | CONFIG_DEBUG_MISC=y 1282 | 1283 | # 1284 | # Memory Debugging 1285 | # 1286 | # CONFIG_PAGE_EXTENSION is not set 1287 | # CONFIG_DEBUG_PAGEALLOC is not set 1288 | # CONFIG_PAGE_OWNER is not set 1289 | # CONFIG_PAGE_POISONING is not set 1290 | # CONFIG_DEBUG_OBJECTS is not set 1291 | # CONFIG_DEBUG_SLAB is not set 1292 | CONFIG_HAVE_DEBUG_KMEMLEAK=y 1293 | # CONFIG_DEBUG_KMEMLEAK is not set 1294 | # CONFIG_DEBUG_STACK_USAGE is not set 1295 | # CONFIG_DEBUG_VM is not set 1296 | # CONFIG_DEBUG_NOMMU_REGIONS is not set 1297 | CONFIG_DEBUG_MEMORY_INIT=y 1298 | CONFIG_CC_HAS_KASAN_GENERIC=y 1299 | CONFIG_KASAN_STACK=1 1300 | # end of Memory Debugging 1301 | 1302 | CONFIG_ARCH_HAS_KCOV=y 1303 | # CONFIG_DEBUG_SHIRQ is not set 1304 | 1305 | # 1306 | # Debug Lockups and Hangs 1307 | # 1308 | # CONFIG_SOFTLOCKUP_DETECTOR is not set 1309 | # CONFIG_DETECT_HUNG_TASK is not set 1310 | # CONFIG_WQ_WATCHDOG is not set 1311 | # end of Debug Lockups and Hangs 1312 | 1313 | # CONFIG_PANIC_ON_OOPS is not set 1314 | CONFIG_PANIC_ON_OOPS_VALUE=0 1315 | CONFIG_PANIC_TIMEOUT=0 1316 | CONFIG_SCHED_DEBUG=y 1317 | # CONFIG_SCHEDSTATS is not set 1318 | # CONFIG_SCHED_STACK_END_CHECK is not set 1319 | # CONFIG_DEBUG_TIMEKEEPING is not set 1320 | 1321 | # 1322 | # Lock Debugging (spinlocks, mutexes, etc...) 1323 | # 1324 | CONFIG_LOCK_DEBUGGING_SUPPORT=y 1325 | # CONFIG_PROVE_LOCKING is not set 1326 | # CONFIG_LOCK_STAT is not set 1327 | # CONFIG_DEBUG_RT_MUTEXES is not set 1328 | # CONFIG_DEBUG_SPINLOCK is not set 1329 | # CONFIG_DEBUG_MUTEXES is not set 1330 | # CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set 1331 | # CONFIG_DEBUG_RWSEMS is not set 1332 | # CONFIG_DEBUG_LOCK_ALLOC is not set 1333 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set 1334 | # CONFIG_LOCK_TORTURE_TEST is not set 1335 | # CONFIG_WW_MUTEX_SELFTEST is not set 1336 | # end of Lock Debugging (spinlocks, mutexes, etc...) 1337 | 1338 | CONFIG_STACKTRACE=y 1339 | # CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set 1340 | # CONFIG_DEBUG_KOBJECT is not set 1341 | CONFIG_HAVE_DEBUG_BUGVERBOSE=y 1342 | CONFIG_DEBUG_BUGVERBOSE=y 1343 | # CONFIG_DEBUG_LIST is not set 1344 | # CONFIG_DEBUG_PLIST is not set 1345 | # CONFIG_DEBUG_SG is not set 1346 | # CONFIG_DEBUG_NOTIFIERS is not set 1347 | # CONFIG_DEBUG_CREDENTIALS is not set 1348 | 1349 | # 1350 | # RCU Debugging 1351 | # 1352 | # CONFIG_RCU_PERF_TEST is not set 1353 | # CONFIG_RCU_TORTURE_TEST is not set 1354 | # CONFIG_RCU_TRACE is not set 1355 | # CONFIG_RCU_EQS_DEBUG is not set 1356 | # end of RCU Debugging 1357 | 1358 | # CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set 1359 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set 1360 | # CONFIG_NOTIFIER_ERROR_INJECTION is not set 1361 | # CONFIG_FAULT_INJECTION is not set 1362 | # CONFIG_LATENCYTOP is not set 1363 | CONFIG_TRACING_SUPPORT=y 1364 | CONFIG_FTRACE=y 1365 | # CONFIG_PREEMPTIRQ_EVENTS is not set 1366 | # CONFIG_IRQSOFF_TRACER is not set 1367 | # CONFIG_SCHED_TRACER is not set 1368 | # CONFIG_HWLAT_TRACER is not set 1369 | # CONFIG_ENABLE_DEFAULT_TRACERS is not set 1370 | # CONFIG_TRACER_SNAPSHOT is not set 1371 | CONFIG_BRANCH_PROFILE_NONE=y 1372 | # CONFIG_PROFILE_ANNOTATED_BRANCHES is not set 1373 | # CONFIG_PROFILE_ALL_BRANCHES is not set 1374 | # CONFIG_BLK_DEV_IO_TRACE is not set 1375 | # CONFIG_TRACEPOINT_BENCHMARK is not set 1376 | # CONFIG_PREEMPTIRQ_DELAY_TEST is not set 1377 | CONFIG_RUNTIME_TESTING_MENU=y 1378 | # CONFIG_TEST_LIST_SORT is not set 1379 | # CONFIG_TEST_SORT is not set 1380 | # CONFIG_BACKTRACE_SELF_TEST is not set 1381 | # CONFIG_RBTREE_TEST is not set 1382 | # CONFIG_REED_SOLOMON_TEST is not set 1383 | # CONFIG_INTERVAL_TREE_TEST is not set 1384 | # CONFIG_PERCPU_TEST is not set 1385 | # CONFIG_ATOMIC64_SELFTEST is not set 1386 | # CONFIG_TEST_HEXDUMP is not set 1387 | # CONFIG_TEST_STRING_HELPERS is not set 1388 | # CONFIG_TEST_STRSCPY is not set 1389 | # CONFIG_TEST_KSTRTOX is not set 1390 | # CONFIG_TEST_PRINTF is not set 1391 | # CONFIG_TEST_BITMAP is not set 1392 | # CONFIG_TEST_BITFIELD is not set 1393 | # CONFIG_TEST_UUID is not set 1394 | # CONFIG_TEST_XARRAY is not set 1395 | # CONFIG_TEST_OVERFLOW is not set 1396 | # CONFIG_TEST_RHASHTABLE is not set 1397 | # CONFIG_TEST_HASH is not set 1398 | # CONFIG_TEST_IDA is not set 1399 | # CONFIG_TEST_LKM is not set 1400 | # CONFIG_TEST_USER_COPY is not set 1401 | # CONFIG_TEST_BPF is not set 1402 | # CONFIG_TEST_BLACKHOLE_DEV is not set 1403 | # CONFIG_FIND_BIT_BENCHMARK is not set 1404 | # CONFIG_TEST_FIRMWARE is not set 1405 | # CONFIG_TEST_SYSCTL is not set 1406 | # CONFIG_TEST_UDELAY is not set 1407 | # CONFIG_TEST_STATIC_KEYS is not set 1408 | # CONFIG_TEST_KMOD is not set 1409 | # CONFIG_TEST_MEMCAT_P is not set 1410 | # CONFIG_TEST_STACKINIT is not set 1411 | # CONFIG_TEST_MEMINIT is not set 1412 | # CONFIG_MEMTEST is not set 1413 | # CONFIG_BUG_ON_DATA_CORRUPTION is not set 1414 | # CONFIG_SAMPLES is not set 1415 | # CONFIG_UBSAN is not set 1416 | CONFIG_UBSAN_ALIGNMENT=y 1417 | # CONFIG_GPROF is not set 1418 | # CONFIG_GCOV is not set 1419 | CONFIG_EARLY_PRINTK=y 1420 | # end of Kernel hacking 1421 | -------------------------------------------------------------------------------- /tests/Makefile: -------------------------------------------------------------------------------- 1 | all: run 2 | 3 | MUSL_BUILD ?= ../musl-libc/build 4 | BUSYBOX_BUILD ?= ../busybox 5 | VMLINUX ?= ../linux-um-nommu/vmlinux 6 | 7 | # sudo is needed for mounting in ./image2rootfs_mount.sh. Otherwise, use 8 | # ./image2rootfs.sh which doesn't require privileges and uses genext2fs 9 | # instead. 10 | 11 | alpine-test.ext3: init.sh entropy 12 | sudo bash -c 'BUSYBOX_BUILD=$(BUSYBOX_BUILD) MUSL_BUILD=$(MUSL_BUILD) ./image2rootfs_mount.sh kollerr/alpine-test latest ext3' 13 | 14 | alpine-test.iso: init.sh entropy 15 | sudo bash -c 'BUSYBOX_BUILD=$(BUSYBOX_BUILD) MUSL_BUILD=$(MUSL_BUILD) ./image2rootfs.sh kollerr/alpine-test latest iso' 16 | 17 | pytorch-alpine.ext3: init.sh entropy 18 | sudo bash -c 'BUSYBOX_BUILD=$(BUSYBOX_BUILD) MUSL_BUILD=$(MUSL_BUILD) ./image2rootfs_mount.sh petronetto/pytorch-alpine latest ext3' 19 | 20 | alpine-jupyter-notebook.ext3: init.sh entropy 21 | sudo bash -c 'BUSYBOX_BUILD=$(BUSYBOX_BUILD) MUSL_BUILD=$(MUSL_BUILD) ./image2rootfs_mount.sh kollerr/alpine-jupyter-notebook latest ext3' 22 | 23 | # not working as python (from anaconda) is not a PIE executable 24 | tensorflow-alpine.ext3: init.sh entropy 25 | sudo bash -c 'BUSYBOX_BUILD=$(BUSYBOX_BUILD) MUSL_BUILD=$(MUSL_BUILD) ./image2rootfs_mount.sh bwits/tensorflow-alpine latest ext3' 26 | 27 | testpie: test.c 28 | $(MUSL_BUILD)/bin/musl-gcc -nostdlib -pie -fPIE -fomit-frame-pointer $< -o $@ 29 | 30 | test: test.c 31 | $(MUSL_BUILD)/bin/musl-gcc -O0 -ggdb -nostdlib -shared -fPIC -fomit-frame-pointer $< -o $@ 32 | 33 | exit: exit.c 34 | $(MUSL_BUILD)/bin/musl-gcc -O0 -ggdb -nostdlib -shared -fPIC -fomit-frame-pointer $< -o $@ 35 | 36 | exitpie: exit.c 37 | $(MUSL_BUILD)/bin/musl-gcc -nostdlib -pie -fPIE -fomit-frame-pointer $< -o $@ 38 | 39 | noop: noop.c 40 | $(MUSL_BUILD)/bin/musl-gcc -O0 -ggdb -nostdlib -shared -fPIC -fomit-frame-pointer $< -o $@ 41 | 42 | ctest: ctest.c 43 | $(MUSL_BUILD)/bin/musl-gcc -pie -fPIE $< -o $@ 44 | 45 | futex: futex.c 46 | $(MUSL_BUILD)/bin/musl-gcc -pie -fPIE $< -o $@ 47 | 48 | clone: clone.c 49 | $(MUSL_BUILD)/bin/musl-gcc -pie -fPIE $< -o $@ 50 | 51 | test_libc.iso: test testpie ctest noop exit exitpie futex clone 52 | mkdir -p /tmp/nl_mnt 53 | cp test noop testpie exit exitpie ctest futex clone /tmp/nl_mnt/. 54 | chmod -R 777 /tmp/nl_mnt 55 | mkdir /tmp/nl_mnt/files 56 | mkdir /tmp/nl_mnt/lib 57 | echo "inside uml." | tee /tmp/nl_mnt/files/mifile 58 | echo "inside uml dos.**********************************" | tee /tmp/nl_mnt/files/mifile2 59 | cp $(MUSL_BUILD)/lib/libc.so /tmp/nl_mnt/lib/ld-musl-x86_64.so.1 60 | cp $(MUSL_BUILD)/lib/libc.so /tmp/nl_mnt/lib/libc.so 61 | genisoimage -o $@ -r /tmp/nl_mnt 62 | rm -rf /tmp/nl_mnt 63 | 64 | entropy: entropy.c 65 | $(MUSL_BUILD)/bin/musl-gcc entropy.c -pie -fPIE -o entropy 66 | 67 | test_as: test.S 68 | as -s test.S -o test.o 69 | ld -non_shared -static --pic-executable test.o -o $@ 70 | 71 | run_tty: alpine-test.ext3 72 | # show the output (only): "sudo cat /dev/vcs6 > /tmp/foo ; cat /tmp/foo" 73 | # find out what's the vcs[1-9] 74 | sudo $(VMLINUX) ubda=./$< rw mem=1024m con0=tty:/dev/tty6 init=/init.sh /bin/sh 75 | 76 | run: test_libc.iso 77 | $(VMLINUX) ubda=./test_libc.iso ro loglevel=0 mem=512m init=/ctest noop 78 | 79 | # measure boot time (time to exit through host exit syscall) 80 | boot: 81 | # install hyperfine (https://github.com/sharkdp/hyperfine.git) 82 | taskset -c 0 hyperfine -w 10 -r 50 -i '$(VMLINUX) ubd0=./test_libc.iso ro mem=64m loglevel=0 init=/exit' 83 | 84 | # measure boot time (time to exit through libc) 85 | boot_libc: 86 | taskset -c 0 hyperfine -w 10 -r 50 '$(VMLINUX) ubd0=./test_libc.iso ro mem=64m loglevel=0 init=/ctest noop' 87 | 88 | demo: alpine-test.ext3 89 | taskset -c 0 $(VMLINUX) eth0=tuntap,tap100,fe:fd:0:0:0:1,10.0.0.1 ubd0=./$< rw mem=1024m loglevel=0 init=/init.sh /bin/sh 90 | 91 | demo2: alpine-test.ext3 92 | taskset -c 0 $(VMLINUX) rw ubd0=./$< mem=1024m loglevel=0 init=/init.sh /bin/sh 93 | 94 | syscalls: 95 | # don't remove the space before %evt.type 96 | sudo bash -c "sysdig proc.name=vmlinux and evt.type!='switch' and evt.type!='signaldeliver' and evt.dir='>' --print=' %evt.type' | python histo.py" 97 | 98 | clean: 99 | rm -f alpine-test.ext3 test_libc.iso clone ctest \ 100 | docker/linux-um-nommu/alpine-test.ext3 \ 101 | docker/linux-um-nommu/vmlinux \ 102 | entropy exit exitpie futex noop test test_libc.iso testpie 103 | -------------------------------------------------------------------------------- /tests/clone.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ 11 | } while (0) 12 | 13 | static int /* Start function for cloned child */ 14 | childFunc(void *arg) 15 | { 16 | struct utsname uts; 17 | 18 | printf("arg=%lx\n", arg); 19 | 20 | /* Change hostname in UTS namespace of child */ 21 | 22 | if (sethostname(arg, strlen(arg)) == -1) 23 | errExit("sethostname"); 24 | 25 | /* Retrieve and display hostname */ 26 | 27 | if (uname(&uts) == -1) 28 | errExit("uname"); 29 | printf("uts.nodename in child: %s\n", uts.nodename); 30 | 31 | /* Keep the namespace open for a while, by sleeping. 32 | This allows some experimentation--for example, another 33 | process might join the namespace. */ 34 | 35 | return 0; /* Child terminates now */ 36 | } 37 | 38 | #define STACK_SIZE (1024 * 1024) /* Stack size for cloned child */ 39 | 40 | int 41 | main(int argc, char *argv[]) 42 | { 43 | char *stack; /* Start of stack buffer */ 44 | char *stackTop; /* End of stack buffer */ 45 | pid_t pid; 46 | struct utsname uts; 47 | 48 | if (argc < 2) { 49 | fprintf(stderr, "Usage: %s \n", argv[0]); 50 | exit(EXIT_SUCCESS); 51 | } 52 | 53 | /* Allocate stack for child */ 54 | 55 | stack = malloc(STACK_SIZE); 56 | if (stack == NULL) 57 | errExit("malloc"); 58 | stackTop = stack + STACK_SIZE; /* Assume stack grows downward */ 59 | 60 | /* Create child that has its own UTS namespace; 61 | child commences execution in childFunc() */ 62 | 63 | printf("arg=%lx\n", argv[1]); 64 | pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]); 65 | if (pid == -1) 66 | errExit("clone"); 67 | printf("clone() returned %ld\n", (long) pid); 68 | 69 | /* Parent falls through to here */ 70 | 71 | /* Display hostname in parent's UTS namespace. This will be 72 | different from hostname in child's UTS namespace. */ 73 | 74 | if (uname(&uts) == -1) 75 | errExit("uname"); 76 | printf("uts.nodename in parent: %s\n", uts.nodename); 77 | 78 | if (waitpid(pid, NULL, 0) == -1) /* Wait for child */ 79 | errExit("waitpid"); 80 | printf("child has terminated\n"); 81 | 82 | exit(EXIT_SUCCESS); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /tests/ctest.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | static void kill(int pid, int sig) { 12 | register int syscall_no asm("rax") = 62; 13 | register int arg1 asm("rdi") = pid; 14 | register int arg2 asm("rsi") = sig; 15 | asm("syscall"); 16 | } 17 | 18 | static void exit_host(int r){ 19 | kill(0, 9); 20 | return; 21 | } 22 | 23 | int vfork1() 24 | { 25 | int a = 0; 26 | int ret = 0xfafafafa; 27 | ret = vfork(); 28 | return ret; 29 | } 30 | 31 | int vfork2() 32 | { 33 | return vfork(); 34 | } 35 | 36 | void test_files(); 37 | 38 | char *argv[3] = {"/ctest", "noop", NULL}; 39 | char *env[2] = {"PATH=/", NULL}; 40 | 41 | int test_vfork() 42 | { 43 | int i, ret; 44 | int status; 45 | 46 | ret = vfork(); 47 | if (ret == 0) { 48 | printf("child: ret=%d\r\n", ret); 49 | //printf("got %c\n", getchar()); 50 | ret = execve("./ctest", argv, env); 51 | if (ret != 0) { 52 | printf("child: exec ret=%d\r\n", ret); 53 | while(1); 54 | _exit(0); 55 | } 56 | 57 | // should not be here 58 | test_files(); 59 | _exit(0); 60 | } else if (ret < 0) { 61 | printf("error %d\r\n", ret); 62 | while(1); 63 | _exit(0); 64 | } else { 65 | wait(&status); 66 | //while(1); 67 | printf("parent (%s): fork status=%d child_pid=%d\r\n", __FUNCTION__, status, ret); 68 | } 69 | return ret; 70 | } 71 | 72 | void test_files() 73 | { 74 | printf("opening\r\n"); 75 | char *tmpname = "/files/mifile"; 76 | char buf[128]; 77 | int fd = open("/files/mifile2", O_RDONLY, 0); 78 | if (fd < 1) { 79 | printf("could not open %d\n", fd); 80 | return 1; 81 | } 82 | //write(fd, "_*_", 3); 83 | fsync(fd); 84 | close(fd); 85 | printf("opening\r\n"); 86 | fd = open("/files/mifile2", O_RDONLY, 0); 87 | if (fd < 1) { 88 | printf("could not open %d\n", fd); 89 | return 1; 90 | } 91 | 92 | memset(buf, 0, 128); 93 | read(fd, buf, 64); 94 | printf("%s\r\n", buf); 95 | } 96 | 97 | int test_vfork_only() 98 | { 99 | int i, ret; 100 | int status; 101 | 102 | ret = vfork1(); 103 | if (ret == 0) { 104 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 105 | printf("child %s\n", __FUNCTION__); 106 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 107 | sleep(1); 108 | _exit(0); 109 | } else if (ret < 0) { 110 | printf("error %d\r\n", ret); 111 | while(1); 112 | _exit(0); 113 | } else { 114 | sleep(1); 115 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 116 | printf("parent (%s): fork status=%d child_pid=%d\r\n", __FUNCTION__, status, ret); 117 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 118 | } 119 | return ret; 120 | } 121 | 122 | 123 | 124 | int test_vfork_sleeping() 125 | { 126 | int i, ret; 127 | int status; 128 | 129 | ret = vfork(); 130 | if (ret == 0) { 131 | ret = execve("./ctest", argv, env); 132 | _exit(0); 133 | } else if (ret < 0) { 134 | printf("error %d\r\n", ret); 135 | while(1); 136 | _exit(0); 137 | } else { 138 | printf("parent (%s): fork status=%d child_pid=%d\r\n", __FUNCTION__, status, ret); 139 | } 140 | return ret; 141 | } 142 | 143 | 144 | int test_vfork_in_vfork() 145 | { 146 | int i, ret; 147 | int status; 148 | 149 | ret = vfork(); 150 | if (ret == 0) { 151 | printf("child 1\n"); 152 | ret = vfork(); 153 | if (ret == 0) { 154 | printf("child 2\n"); 155 | _exit(0); 156 | } else if (ret < 0) { 157 | printf("error %d\r\n", ret); 158 | while(1); 159 | _exit(0); 160 | } else { 161 | printf("parent: fork status=%d child_pid=%d\r\n", status, ret); 162 | } 163 | _exit(0); 164 | } else if (ret < 0) { 165 | printf("error %d\r\n", ret); 166 | while(1); 167 | _exit(0); 168 | } else { 169 | printf("parent (%s): fork status=%d child_pid=%d\r\n", __FUNCTION__, status, ret); 170 | } 171 | return ret; 172 | } 173 | 174 | int test_exec_with_vfork_in_vfork() 175 | { 176 | int i, ret; 177 | int status; 178 | 179 | char *argv[3] = {"/ctest", "fork", NULL}; 180 | char *env[2] = {"PATH=/", NULL}; 181 | 182 | ret = vfork(); 183 | if (ret == 0) { 184 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 185 | printf("child %s\n", __FUNCTION__); 186 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 187 | ret = execve("./ctest", argv, env); 188 | while(1); // should not be reached 189 | } else if (ret < 0) { 190 | printf("error %d\r\n", ret); 191 | while(1); 192 | _exit(0); 193 | } else { 194 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 195 | printf("parent (%s): fork status=%d child_pid=%d\r\n", __FUNCTION__, status, ret); 196 | printf("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); 197 | } 198 | return ret; 199 | } 200 | 201 | 202 | int main(int argc, char **argv) 203 | { 204 | int i, ret; 205 | int iterations; 206 | 207 | if (argc < 2) { 208 | iterations = 10; 209 | } else if (strcmp(argv[1], "files") == 0) { 210 | test_files(); 211 | exit(0); 212 | } else if (strcmp(argv[1], "loop") == 0) { 213 | printf("looping forever\n"); 214 | //printf("got %c\n", getchar()); 215 | while(1); 216 | exit(0); 217 | } else if (strcmp(argv[1], "fork") == 0) { 218 | //test_vfork_only(); 219 | test_vfork(); 220 | exit(0); 221 | } else if (strcmp(argv[1], "exec") == 0) { 222 | test_exec_with_vfork_in_vfork(); 223 | test_files(); 224 | exit(0); 225 | } else if (strcmp(argv[1], "noop") == 0) { 226 | printf("noop\n"); 227 | exit(0); 228 | } else if (strcmp(argv[1], "exit") == 0) { 229 | printf("exit"); 230 | exit_host(0); 231 | } else if (strcmp(argv[1], "time") == 0) { 232 | struct timeval current_time; 233 | gettimeofday(¤t_time, NULL); 234 | printf("seconds : %ld\nmicro seconds : %ld\n", 235 | current_time.tv_sec, current_time.tv_usec); 236 | exit(0); 237 | } else { 238 | printf("default arg\n"); 239 | } 240 | 241 | test_exec_with_vfork_in_vfork(); 242 | 243 | test_vfork(); 244 | test_vfork(); 245 | test_vfork(); 246 | test_vfork(); 247 | test_vfork_sleeping(); 248 | 249 | test_files(); 250 | 251 | printf("got %c\n", getchar()); 252 | 253 | //while(1); 254 | exit(0); 255 | } 256 | -------------------------------------------------------------------------------- /tests/docker/alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.10 2 | 3 | RUN apk update && apk add python py-pip python3 nginx curl file build-base python-dev \ 4 | fio redis vim clang git libtirpc-dev libtirpc procps imlib2 linux-headers ncurses sl nodejs 5 | #RUN apk update && apk add vim python nginx redis file curl py-pip build-base file python-dev 6 | #RUN apk update && apk add vim python3 nginx redis py-pip build-base file curl 7 | #RUN pip3 install ipython httplib2 8 | COPY bm_tornado_http.py /bm_tornado_http.py 9 | RUN pip install tornado==4.5.3 six numpy==1.15 10 | RUN (git clone https://github.com/ricarkol/lmbench2.git; cd lmbench2; make) 11 | 12 | RUN mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak 13 | COPY nginx.conf /etc/nginx/nginx.conf 14 | 15 | RUN mv /etc/redis.conf /etc/redis.conf.bak 16 | COPY redis.conf /etc/redis.conf 17 | 18 | COPY lmbench_run.sh /lmbench2/bin/x86_64-linux-gnulibc1/lmbench_run.sh 19 | 20 | RUN apk add e2fsprogs 21 | COPY mount_test.sh /mount_test.sh 22 | 23 | RUN echo 'export PS1="[\u@docker] \W # "' >> /root/.ash_profile 24 | RUN apk add gnuplot 25 | COPY plot.gpi /plot.gpi 26 | -------------------------------------------------------------------------------- /tests/docker/alpine/bm_tornado_http.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | """Test the performance of simple HTTP serving and client using the Tornado 3 | framework. 4 | 5 | A trivial "application" is generated which generates a number of chunks of 6 | data as a HTTP response's body. 7 | """ 8 | 9 | import time 10 | import sys 11 | import socket 12 | 13 | from six.moves import xrange 14 | 15 | from tornado.httpclient import AsyncHTTPClient 16 | from tornado.httpserver import HTTPServer 17 | from tornado.gen import coroutine, Task 18 | from tornado.ioloop import IOLoop 19 | from tornado.netutil import bind_sockets 20 | from tornado.web import RequestHandler, Application 21 | 22 | 23 | HOST = "127.0.0.1" 24 | FAMILY = socket.AF_INET 25 | 26 | CHUNK = b"Hello world\n" * 1000 27 | NCHUNKS = 5 28 | 29 | CONCURRENCY = 1 30 | 31 | 32 | class MainHandler(RequestHandler): 33 | 34 | @coroutine 35 | def get(self): 36 | for i in range(NCHUNKS): 37 | self.write(CHUNK) 38 | yield Task(self.flush) 39 | 40 | def compute_etag(self): 41 | # Overriden to avoid stressing hashlib in this benchmark 42 | return None 43 | 44 | 45 | def make_application(): 46 | return Application([ 47 | (r"/", MainHandler), 48 | ]) 49 | 50 | 51 | def make_http_server(request_handler): 52 | server = HTTPServer(request_handler) 53 | sockets = bind_sockets(0, HOST, family=FAMILY) 54 | assert len(sockets) == 1 55 | server.add_sockets(sockets) 56 | sock = sockets[0] 57 | return server, sock 58 | 59 | 60 | def bench_tornado(loops, sleep=1): 61 | server, sock = make_http_server(make_application()) 62 | host, port = sock.getsockname() 63 | url = "http://%s:%s/" % (host, port) 64 | namespace = {} 65 | 66 | @coroutine 67 | def run_client(): 68 | client = AsyncHTTPClient() 69 | range_it = xrange(loops) 70 | 71 | if loops == -1: 72 | # -1 is forever 73 | range_it = iter(int, 1) 74 | else: 75 | range_it = xrange(loops) 76 | 77 | for _ in range_it: 78 | futures = [client.fetch(url) for j in xrange(CONCURRENCY)] 79 | for fut in futures: 80 | resp = yield fut 81 | buf = resp.buffer 82 | buf.seek(0, 2) 83 | assert buf.tell() == len(CHUNK) * NCHUNKS 84 | time.sleep(sleep) 85 | 86 | client.close() 87 | 88 | IOLoop.current().run_sync(run_client) 89 | server.stop() 90 | 91 | return namespace['dt'] 92 | 93 | 94 | if __name__ == "__main__": 95 | # 3.8 changed the default event loop to ProactorEventLoop which doesn't 96 | # implement everything required by tornado and breaks this benchmark. 97 | # Restore the old WindowsSelectorEventLoop default for now. 98 | # https://bugs.python.org/issue37373 99 | # https://github.com/python/pyperformance/issues/61 100 | # https://github.com/tornadoweb/tornado/pull/2686 101 | if sys.platform == 'win32' and sys.version_info[:2] == (3, 8): 102 | import asyncio 103 | asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) 104 | 105 | print('starting...') 106 | print('looping forever, sleeping 1 second each iteration') 107 | bench_tornado(-1) 108 | #runner.bench_time_func('tornado_http', bench_tornado) 109 | -------------------------------------------------------------------------------- /tests/docker/alpine/lmbench_run.sh: -------------------------------------------------------------------------------- 1 | cp hello /tmp/hello 2 | 3 | ENOUGH=10000 time ./lat_select file 10 4 | ENOUGH=10000 time ./lat_select file 100 5 | ENOUGH=10000 time ./lat_select file 1000 6 | 7 | ENOUGH=100000 time ./lat_syscall null 8 | ENOUGH=100000 time ./lat_syscall read 9 | ENOUGH=100000 time ./lat_syscall write 10 | ENOUGH=100000 time ./lat_syscall stat 11 | ENOUGH=100000 time ./lat_syscall open 12 | ENOUGH=10000 time ./lat_proc shell 13 | ENOUGH=10000 time ./lat_proc exec 14 | -------------------------------------------------------------------------------- /tests/docker/alpine/mount_test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | dd if=/dev/zero of=disk count=8192 bs=8192 4 | mkfs.ext3 disk 5 | mount disk /mnt 6 | ls /mnt 7 | cd /mnt 8 | mkdir a 9 | touch a/b 10 | ln a/b a/c 11 | ln -s a/c a/d 12 | chmod -R +wr * 13 | chown -R root:root * 14 | cp -r a aa 15 | tar -c a | gzip > a.tar.gz 16 | cd / 17 | df 18 | -------------------------------------------------------------------------------- /tests/docker/alpine/nginx.conf: -------------------------------------------------------------------------------- 1 | user nginx; 2 | worker_processes 0; 3 | daemon off; 4 | master_process off; 5 | 6 | error_log /var/log/nginx/error.log warn; 7 | pid /var/run/nginx.pid; 8 | 9 | 10 | events { 11 | worker_connections 1024; 12 | } 13 | 14 | 15 | http { 16 | include /etc/nginx/mime.types; 17 | default_type application/octet-stream; 18 | 19 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 20 | '$status $body_bytes_sent "$http_referer" ' 21 | '"$http_user_agent" "$http_x_forwarded_for"'; 22 | 23 | access_log /var/log/nginx/access.log main; 24 | 25 | sendfile on; 26 | #tcp_nopush on; 27 | 28 | keepalive_timeout 65; 29 | 30 | #gzip on; 31 | 32 | include /etc/nginx/conf.d/*.conf; 33 | } 34 | 35 | -------------------------------------------------------------------------------- /tests/docker/alpine/plot.gpi: -------------------------------------------------------------------------------- 1 | set term dumb 2 | 3 | plot sin(x) 4 | -------------------------------------------------------------------------------- /tests/docker/alpine/redis.conf: -------------------------------------------------------------------------------- 1 | # Redis configuration file example. 2 | # 3 | # Note that in order to read the configuration file, Redis must be 4 | # started with the file path as first argument: 5 | # 6 | # ./redis-server /path/to/redis.conf 7 | 8 | # Note on units: when memory size is needed, it is possible to specify 9 | # it in the usual form of 1k 5GB 4M and so forth: 10 | # 11 | # 1k => 1000 bytes 12 | # 1kb => 1024 bytes 13 | # 1m => 1000000 bytes 14 | # 1mb => 1024*1024 bytes 15 | # 1g => 1000000000 bytes 16 | # 1gb => 1024*1024*1024 bytes 17 | # 18 | # units are case insensitive so 1GB 1Gb 1gB are all the same. 19 | 20 | ################################## INCLUDES ################################### 21 | 22 | # Include one or more other config files here. This is useful if you 23 | # have a standard template that goes to all Redis servers but also need 24 | # to customize a few per-server settings. Include files can include 25 | # other files, so use this wisely. 26 | # 27 | # Notice option "include" won't be rewritten by command "CONFIG REWRITE" 28 | # from admin or Redis Sentinel. Since Redis always uses the last processed 29 | # line as value of a configuration directive, you'd better put includes 30 | # at the beginning of this file to avoid overwriting config change at runtime. 31 | # 32 | # If instead you are interested in using includes to override configuration 33 | # options, it is better to use include as the last line. 34 | # 35 | # include /path/to/local.conf 36 | # include /path/to/other.conf 37 | 38 | ################################## MODULES ##################################### 39 | 40 | # Load modules at startup. If the server is not able to load modules 41 | # it will abort. It is possible to use multiple loadmodule directives. 42 | # 43 | # loadmodule /path/to/my_module.so 44 | # loadmodule /path/to/other_module.so 45 | 46 | ################################## NETWORK ##################################### 47 | 48 | # By default, if no "bind" configuration directive is specified, Redis listens 49 | # for connections from all the network interfaces available on the server. 50 | # It is possible to listen to just one or multiple selected interfaces using 51 | # the "bind" configuration directive, followed by one or more IP addresses. 52 | # 53 | # Examples: 54 | # 55 | # bind 192.168.1.100 10.0.0.1 56 | # bind 127.0.0.1 ::1 57 | # 58 | # ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the 59 | # internet, binding to all the interfaces is dangerous and will expose the 60 | # instance to everybody on the internet. So by default we uncomment the 61 | # following bind directive, that will force Redis to listen only into 62 | # the IPv4 loopback interface address (this means Redis will be able to 63 | # accept connections only from clients running into the same computer it 64 | # is running). 65 | # 66 | # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES 67 | # JUST COMMENT THE FOLLOWING LINE. 68 | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | #bind 10.0.0.2 70 | 71 | # Protected mode is a layer of security protection, in order to avoid that 72 | # Redis instances left open on the internet are accessed and exploited. 73 | # 74 | # When protected mode is on and if: 75 | # 76 | # 1) The server is not binding explicitly to a set of addresses using the 77 | # "bind" directive. 78 | # 2) No password is configured. 79 | # 80 | # The server only accepts connections from clients connecting from the 81 | # IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain 82 | # sockets. 83 | # 84 | # By default protected mode is enabled. You should disable it only if 85 | # you are sure you want clients from other hosts to connect to Redis 86 | # even if no authentication is configured, nor a specific set of interfaces 87 | # are explicitly listed using the "bind" directive. 88 | protected-mode no 89 | 90 | # Accept connections on the specified port, default is 6379 (IANA #815344). 91 | # If port 0 is specified Redis will not listen on a TCP socket. 92 | port 6379 93 | 94 | # TCP listen() backlog. 95 | # 96 | # In high requests-per-second environments you need an high backlog in order 97 | # to avoid slow clients connections issues. Note that the Linux kernel 98 | # will silently truncate it to the value of /proc/sys/net/core/somaxconn so 99 | # make sure to raise both the value of somaxconn and tcp_max_syn_backlog 100 | # in order to get the desired effect. 101 | tcp-backlog 511 102 | 103 | # Unix socket. 104 | # 105 | # Specify the path for the Unix socket that will be used to listen for 106 | # incoming connections. There is no default, so Redis will not listen 107 | # on a unix socket when not specified. 108 | # 109 | #unixsocket /run/redis/redis.sock 110 | #unixsocketperm 770 111 | 112 | # Close the connection after a client is idle for N seconds (0 to disable) 113 | timeout 0 114 | 115 | # TCP keepalive. 116 | # 117 | # If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence 118 | # of communication. This is useful for two reasons: 119 | # 120 | # 1) Detect dead peers. 121 | # 2) Take the connection alive from the point of view of network 122 | # equipment in the middle. 123 | # 124 | # On Linux, the specified value (in seconds) is the period used to send ACKs. 125 | # Note that to close the connection the double of the time is needed. 126 | # On other kernels the period depends on the kernel configuration. 127 | # 128 | # A reasonable value for this option is 300 seconds, which is the new 129 | # Redis default starting with Redis 3.2.1. 130 | tcp-keepalive 300 131 | 132 | ################################# GENERAL ##################################### 133 | 134 | # If you run Redis from upstart or systemd, Redis can interact with your 135 | # supervision tree. Options: 136 | # supervised no - no supervision interaction 137 | # supervised upstart - signal upstart by putting Redis into SIGSTOP mode 138 | # supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET 139 | # supervised auto - detect upstart or systemd method based on 140 | # UPSTART_JOB or NOTIFY_SOCKET environment variables 141 | # Note: these supervision methods only signal "process is ready." 142 | # They do not enable continuous liveness pings back to your supervisor. 143 | supervised no 144 | 145 | # Specify the server verbosity level. 146 | # This can be one of: 147 | # debug (a lot of information, useful for development/testing) 148 | # verbose (many rarely useful info, but not a mess like the debug level) 149 | # notice (moderately verbose, what you want in production probably) 150 | # warning (only very important / critical messages are logged) 151 | loglevel notice 152 | 153 | # Specify the log file name. Also the empty string can be used to force 154 | # Redis to log on the standard output. Note that if you use standard 155 | # output for logging but daemonize, logs will be sent to /dev/null 156 | logfile /var/log/redis/redis.log 157 | 158 | # To enable logging to the system logger, just set 'syslog-enabled' to yes, 159 | # and optionally update the other syslog parameters to suit your needs. 160 | # syslog-enabled no 161 | 162 | # Specify the syslog identity. 163 | # syslog-ident redis 164 | 165 | # Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. 166 | # syslog-facility local0 167 | 168 | # Set the number of databases. The default database is DB 0, you can select 169 | # a different one on a per-connection basis using SELECT where 170 | # dbid is a number between 0 and 'databases'-1 171 | databases 1 172 | 173 | # By default Redis shows an ASCII art logo only when started to log to the 174 | # standard output and if the standard output is a TTY. Basically this means 175 | # that normally a logo is displayed only in interactive sessions. 176 | # 177 | # However it is possible to force the pre-4.0 behavior and always show a 178 | # ASCII art logo in startup logs by setting the following option to yes. 179 | always-show-logo no 180 | 181 | ################################ SNAPSHOTTING ################################ 182 | # 183 | # Save the DB on disk: 184 | # 185 | # save 186 | # 187 | # Will save the DB if both the given number of seconds and the given 188 | # number of write operations against the DB occurred. 189 | # 190 | # In the example below the behaviour will be to save: 191 | # after 900 sec (15 min) if at least 1 key changed 192 | # after 300 sec (5 min) if at least 10 keys changed 193 | # after 60 sec if at least 10000 keys changed 194 | # 195 | # Note: you can disable saving completely by commenting out all "save" lines. 196 | # 197 | # It is also possible to remove all the previously configured save 198 | # points by adding a save directive with a single empty string argument 199 | # like in the following example: 200 | # 201 | # save "" 202 | 203 | save 900 1 204 | save 300 10 205 | save 60 10000 206 | 207 | # By default Redis will stop accepting writes if RDB snapshots are enabled 208 | # (at least one save point) and the latest background save failed. 209 | # This will make the user aware (in a hard way) that data is not persisting 210 | # on disk properly, otherwise chances are that no one will notice and some 211 | # disaster will happen. 212 | # 213 | # If the background saving process will start working again Redis will 214 | # automatically allow writes again. 215 | # 216 | # However if you have setup your proper monitoring of the Redis server 217 | # and persistence, you may want to disable this feature so that Redis will 218 | # continue to work as usual even if there are problems with disk, 219 | # permissions, and so forth. 220 | stop-writes-on-bgsave-error yes 221 | 222 | # Compress string objects using LZF when dump .rdb databases? 223 | # For default that's set to 'yes' as it's almost always a win. 224 | # If you want to save some CPU in the saving child set it to 'no' but 225 | # the dataset will likely be bigger if you have compressible values or keys. 226 | rdbcompression yes 227 | 228 | # Since version 5 of RDB a CRC64 checksum is placed at the end of the file. 229 | # This makes the format more resistant to corruption but there is a performance 230 | # hit to pay (around 10%) when saving and loading RDB files, so you can disable it 231 | # for maximum performances. 232 | # 233 | # RDB files created with checksum disabled have a checksum of zero that will 234 | # tell the loading code to skip the check. 235 | rdbchecksum yes 236 | 237 | # The filename where to dump the DB 238 | dbfilename dump.rdb 239 | 240 | # The working directory. 241 | # 242 | # The DB will be written inside this directory, with the filename specified 243 | # above using the 'dbfilename' configuration directive. 244 | # 245 | # The Append Only File will also be created inside this directory. 246 | # 247 | # Note that you must specify a directory here, not a file name. 248 | dir /var/lib/redis 249 | 250 | ################################# REPLICATION ################################# 251 | 252 | # Master-Replica replication. Use replicaof to make a Redis instance a copy of 253 | # another Redis server. A few things to understand ASAP about Redis replication. 254 | # 255 | # +------------------+ +---------------+ 256 | # | Master | ---> | Replica | 257 | # | (receive writes) | | (exact copy) | 258 | # +------------------+ +---------------+ 259 | # 260 | # 1) Redis replication is asynchronous, but you can configure a master to 261 | # stop accepting writes if it appears to be not connected with at least 262 | # a given number of replicas. 263 | # 2) Redis replicas are able to perform a partial resynchronization with the 264 | # master if the replication link is lost for a relatively small amount of 265 | # time. You may want to configure the replication backlog size (see the next 266 | # sections of this file) with a sensible value depending on your needs. 267 | # 3) Replication is automatic and does not need user intervention. After a 268 | # network partition replicas automatically try to reconnect to masters 269 | # and resynchronize with them. 270 | # 271 | # replicaof 272 | 273 | # If the master is password protected (using the "requirepass" configuration 274 | # directive below) it is possible to tell the replica to authenticate before 275 | # starting the replication synchronization process, otherwise the master will 276 | # refuse the replica request. 277 | # 278 | # masterauth 279 | 280 | # When a replica loses its connection with the master, or when the replication 281 | # is still in progress, the replica can act in two different ways: 282 | # 283 | # 1) if replica-serve-stale-data is set to 'yes' (the default) the replica will 284 | # still reply to client requests, possibly with out of date data, or the 285 | # data set may just be empty if this is the first synchronization. 286 | # 287 | # 2) if replica-serve-stale-data is set to 'no' the replica will reply with 288 | # an error "SYNC with master in progress" to all the kind of commands 289 | # but to INFO, replicaOF, AUTH, PING, SHUTDOWN, REPLCONF, ROLE, CONFIG, 290 | # SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, 291 | # COMMAND, POST, HOST: and LATENCY. 292 | # 293 | replica-serve-stale-data yes 294 | 295 | # You can configure a replica instance to accept writes or not. Writing against 296 | # a replica instance may be useful to store some ephemeral data (because data 297 | # written on a replica will be easily deleted after resync with the master) but 298 | # may also cause problems if clients are writing to it because of a 299 | # misconfiguration. 300 | # 301 | # Since Redis 2.6 by default replicas are read-only. 302 | # 303 | # Note: read only replicas are not designed to be exposed to untrusted clients 304 | # on the internet. It's just a protection layer against misuse of the instance. 305 | # Still a read only replica exports by default all the administrative commands 306 | # such as CONFIG, DEBUG, and so forth. To a limited extent you can improve 307 | # security of read only replicas using 'rename-command' to shadow all the 308 | # administrative / dangerous commands. 309 | replica-read-only yes 310 | 311 | # Replication SYNC strategy: disk or socket. 312 | # 313 | # ------------------------------------------------------- 314 | # WARNING: DISKLESS REPLICATION IS EXPERIMENTAL CURRENTLY 315 | # ------------------------------------------------------- 316 | # 317 | # New replicas and reconnecting replicas that are not able to continue the replication 318 | # process just receiving differences, need to do what is called a "full 319 | # synchronization". An RDB file is transmitted from the master to the replicas. 320 | # The transmission can happen in two different ways: 321 | # 322 | # 1) Disk-backed: The Redis master creates a new process that writes the RDB 323 | # file on disk. Later the file is transferred by the parent 324 | # process to the replicas incrementally. 325 | # 2) Diskless: The Redis master creates a new process that directly writes the 326 | # RDB file to replica sockets, without touching the disk at all. 327 | # 328 | # With disk-backed replication, while the RDB file is generated, more replicas 329 | # can be queued and served with the RDB file as soon as the current child producing 330 | # the RDB file finishes its work. With diskless replication instead once 331 | # the transfer starts, new replicas arriving will be queued and a new transfer 332 | # will start when the current one terminates. 333 | # 334 | # When diskless replication is used, the master waits a configurable amount of 335 | # time (in seconds) before starting the transfer in the hope that multiple replicas 336 | # will arrive and the transfer can be parallelized. 337 | # 338 | # With slow disks and fast (large bandwidth) networks, diskless replication 339 | # works better. 340 | repl-diskless-sync no 341 | 342 | # When diskless replication is enabled, it is possible to configure the delay 343 | # the server waits in order to spawn the child that transfers the RDB via socket 344 | # to the replicas. 345 | # 346 | # This is important since once the transfer starts, it is not possible to serve 347 | # new replicas arriving, that will be queued for the next RDB transfer, so the server 348 | # waits a delay in order to let more replicas arrive. 349 | # 350 | # The delay is specified in seconds, and by default is 5 seconds. To disable 351 | # it entirely just set it to 0 seconds and the transfer will start ASAP. 352 | repl-diskless-sync-delay 5 353 | 354 | # Replicas send PINGs to server in a predefined interval. It's possible to change 355 | # this interval with the repl_ping_replica_period option. The default value is 10 356 | # seconds. 357 | # 358 | # repl-ping-replica-period 10 359 | 360 | # The following option sets the replication timeout for: 361 | # 362 | # 1) Bulk transfer I/O during SYNC, from the point of view of replica. 363 | # 2) Master timeout from the point of view of replicas (data, pings). 364 | # 3) Replica timeout from the point of view of masters (REPLCONF ACK pings). 365 | # 366 | # It is important to make sure that this value is greater than the value 367 | # specified for repl-ping-replica-period otherwise a timeout will be detected 368 | # every time there is low traffic between the master and the replica. 369 | # 370 | # repl-timeout 60 371 | 372 | # Disable TCP_NODELAY on the replica socket after SYNC? 373 | # 374 | # If you select "yes" Redis will use a smaller number of TCP packets and 375 | # less bandwidth to send data to replicas. But this can add a delay for 376 | # the data to appear on the replica side, up to 40 milliseconds with 377 | # Linux kernels using a default configuration. 378 | # 379 | # If you select "no" the delay for data to appear on the replica side will 380 | # be reduced but more bandwidth will be used for replication. 381 | # 382 | # By default we optimize for low latency, but in very high traffic conditions 383 | # or when the master and replicas are many hops away, turning this to "yes" may 384 | # be a good idea. 385 | repl-disable-tcp-nodelay no 386 | 387 | # Set the replication backlog size. The backlog is a buffer that accumulates 388 | # replica data when replicas are disconnected for some time, so that when a replica 389 | # wants to reconnect again, often a full resync is not needed, but a partial 390 | # resync is enough, just passing the portion of data the replica missed while 391 | # disconnected. 392 | # 393 | # The bigger the replication backlog, the longer the time the replica can be 394 | # disconnected and later be able to perform a partial resynchronization. 395 | # 396 | # The backlog is only allocated once there is at least a replica connected. 397 | # 398 | # repl-backlog-size 1mb 399 | 400 | # After a master has no longer connected replicas for some time, the backlog 401 | # will be freed. The following option configures the amount of seconds that 402 | # need to elapse, starting from the time the last replica disconnected, for 403 | # the backlog buffer to be freed. 404 | # 405 | # Note that replicas never free the backlog for timeout, since they may be 406 | # promoted to masters later, and should be able to correctly "partially 407 | # resynchronize" with the replicas: hence they should always accumulate backlog. 408 | # 409 | # A value of 0 means to never release the backlog. 410 | # 411 | # repl-backlog-ttl 3600 412 | 413 | # The replica priority is an integer number published by Redis in the INFO output. 414 | # It is used by Redis Sentinel in order to select a replica to promote into a 415 | # master if the master is no longer working correctly. 416 | # 417 | # A replica with a low priority number is considered better for promotion, so 418 | # for instance if there are three replicas with priority 10, 100, 25 Sentinel will 419 | # pick the one with priority 10, that is the lowest. 420 | # 421 | # However a special priority of 0 marks the replica as not able to perform the 422 | # role of master, so a replica with priority of 0 will never be selected by 423 | # Redis Sentinel for promotion. 424 | # 425 | # By default the priority is 100. 426 | replica-priority 100 427 | 428 | # It is possible for a master to stop accepting writes if there are less than 429 | # N replicas connected, having a lag less or equal than M seconds. 430 | # 431 | # The N replicas need to be in "online" state. 432 | # 433 | # The lag in seconds, that must be <= the specified value, is calculated from 434 | # the last ping received from the replica, that is usually sent every second. 435 | # 436 | # This option does not GUARANTEE that N replicas will accept the write, but 437 | # will limit the window of exposure for lost writes in case not enough replicas 438 | # are available, to the specified number of seconds. 439 | # 440 | # For example to require at least 3 replicas with a lag <= 10 seconds use: 441 | # 442 | # min-replicas-to-write 3 443 | # min-replicas-max-lag 10 444 | # 445 | # Setting one or the other to 0 disables the feature. 446 | # 447 | # By default min-replicas-to-write is set to 0 (feature disabled) and 448 | # min-replicas-max-lag is set to 10. 449 | 450 | # A Redis master is able to list the address and port of the attached 451 | # replicas in different ways. For example the "INFO replication" section 452 | # offers this information, which is used, among other tools, by 453 | # Redis Sentinel in order to discover replica instances. 454 | # Another place where this info is available is in the output of the 455 | # "ROLE" command of a master. 456 | # 457 | # The listed IP and address normally reported by a replica is obtained 458 | # in the following way: 459 | # 460 | # IP: The address is auto detected by checking the peer address 461 | # of the socket used by the replica to connect with the master. 462 | # 463 | # Port: The port is communicated by the replica during the replication 464 | # handshake, and is normally the port that the replica is using to 465 | # listen for connections. 466 | # 467 | # However when port forwarding or Network Address Translation (NAT) is 468 | # used, the replica may be actually reachable via different IP and port 469 | # pairs. The following two options can be used by a replica in order to 470 | # report to its master a specific set of IP and port, so that both INFO 471 | # and ROLE will report those values. 472 | # 473 | # There is no need to use both the options if you need to override just 474 | # the port or the IP address. 475 | # 476 | # replica-announce-ip 5.5.5.5 477 | # replica-announce-port 1234 478 | 479 | ################################## SECURITY ################################### 480 | 481 | # Require clients to issue AUTH before processing any other 482 | # commands. This might be useful in environments in which you do not trust 483 | # others with access to the host running redis-server. 484 | # 485 | # This should stay commented out for backward compatibility and because most 486 | # people do not need auth (e.g. they run their own servers). 487 | # 488 | # Warning: since Redis is pretty fast an outside user can try up to 489 | # 150k passwords per second against a good box. This means that you should 490 | # use a very strong password otherwise it will be very easy to break. 491 | # 492 | # requirepass foobared 493 | 494 | # Command renaming. 495 | # 496 | # It is possible to change the name of dangerous commands in a shared 497 | # environment. For instance the CONFIG command may be renamed into something 498 | # hard to guess so that it will still be available for internal-use tools 499 | # but not available for general clients. 500 | # 501 | # Example: 502 | # 503 | # rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 504 | # 505 | # It is also possible to completely kill a command by renaming it into 506 | # an empty string: 507 | # 508 | # rename-command CONFIG "" 509 | # 510 | # Please note that changing the name of commands that are logged into the 511 | # AOF file or transmitted to replicas may cause problems. 512 | 513 | ################################### CLIENTS #################################### 514 | 515 | # Set the max number of connected clients at the same time. By default 516 | # this limit is set to 10000 clients, however if the Redis server is not 517 | # able to configure the process file limit to allow for the specified limit 518 | # the max number of allowed clients is set to the current file limit 519 | # minus 32 (as Redis reserves a few file descriptors for internal uses). 520 | # 521 | # Once the limit is reached Redis will close all the new connections sending 522 | # an error 'max number of clients reached'. 523 | # 524 | # maxclients 10000 525 | 526 | ############################## MEMORY MANAGEMENT ################################ 527 | 528 | # Set a memory usage limit to the specified amount of bytes. 529 | # When the memory limit is reached Redis will try to remove keys 530 | # according to the eviction policy selected (see maxmemory-policy). 531 | # 532 | # If Redis can't remove keys according to the policy, or if the policy is 533 | # set to 'noeviction', Redis will start to reply with errors to commands 534 | # that would use more memory, like SET, LPUSH, and so on, and will continue 535 | # to reply to read-only commands like GET. 536 | # 537 | # This option is usually useful when using Redis as an LRU or LFU cache, or to 538 | # set a hard memory limit for an instance (using the 'noeviction' policy). 539 | # 540 | # WARNING: If you have replicas attached to an instance with maxmemory on, 541 | # the size of the output buffers needed to feed the replicas are subtracted 542 | # from the used memory count, so that network problems / resyncs will 543 | # not trigger a loop where keys are evicted, and in turn the output 544 | # buffer of replicas is full with DELs of keys evicted triggering the deletion 545 | # of more keys, and so forth until the database is completely emptied. 546 | # 547 | # In short... if you have replicas attached it is suggested that you set a lower 548 | # limit for maxmemory so that there is some free RAM on the system for replica 549 | # output buffers (but this is not needed if the policy is 'noeviction'). 550 | # 551 | # maxmemory 552 | 553 | # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory 554 | # is reached. You can select among five behaviors: 555 | # 556 | # volatile-lru -> Evict using approximated LRU among the keys with an expire set. 557 | # allkeys-lru -> Evict any key using approximated LRU. 558 | # volatile-lfu -> Evict using approximated LFU among the keys with an expire set. 559 | # allkeys-lfu -> Evict any key using approximated LFU. 560 | # volatile-random -> Remove a random key among the ones with an expire set. 561 | # allkeys-random -> Remove a random key, any key. 562 | # volatile-ttl -> Remove the key with the nearest expire time (minor TTL) 563 | # noeviction -> Don't evict anything, just return an error on write operations. 564 | # 565 | # LRU means Least Recently Used 566 | # LFU means Least Frequently Used 567 | # 568 | # Both LRU, LFU and volatile-ttl are implemented using approximated 569 | # randomized algorithms. 570 | # 571 | # Note: with any of the above policies, Redis will return an error on write 572 | # operations, when there are no suitable keys for eviction. 573 | # 574 | # At the date of writing these commands are: set setnx setex append 575 | # incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd 576 | # sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby 577 | # zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby 578 | # getset mset msetnx exec sort 579 | # 580 | # The default is: 581 | # 582 | # maxmemory-policy noeviction 583 | 584 | # LRU, LFU and minimal TTL algorithms are not precise algorithms but approximated 585 | # algorithms (in order to save memory), so you can tune it for speed or 586 | # accuracy. For default Redis will check five keys and pick the one that was 587 | # used less recently, you can change the sample size using the following 588 | # configuration directive. 589 | # 590 | # The default of 5 produces good enough results. 10 Approximates very closely 591 | # true LRU but costs more CPU. 3 is faster but not very accurate. 592 | # 593 | # maxmemory-samples 5 594 | 595 | # Starting from Redis 5, by default a replica will ignore its maxmemory setting 596 | # (unless it is promoted to master after a failover or manually). It means 597 | # that the eviction of keys will be just handled by the master, sending the 598 | # DEL commands to the replica as keys evict in the master side. 599 | # 600 | # This behavior ensures that masters and replicas stay consistent, and is usually 601 | # what you want, however if your replica is writable, or you want the replica to have 602 | # a different memory setting, and you are sure all the writes performed to the 603 | # replica are idempotent, then you may change this default (but be sure to understand 604 | # what you are doing). 605 | # 606 | # Note that since the replica by default does not evict, it may end using more 607 | # memory than the one set via maxmemory (there are certain buffers that may 608 | # be larger on the replica, or data structures may sometimes take more memory and so 609 | # forth). So make sure you monitor your replicas and make sure they have enough 610 | # memory to never hit a real out-of-memory condition before the master hits 611 | # the configured maxmemory setting. 612 | # 613 | # replica-ignore-maxmemory yes 614 | 615 | ############################# LAZY FREEING #################################### 616 | 617 | # Redis has two primitives to delete keys. One is called DEL and is a blocking 618 | # deletion of the object. It means that the server stops processing new commands 619 | # in order to reclaim all the memory associated with an object in a synchronous 620 | # way. If the key deleted is associated with a small object, the time needed 621 | # in order to execute the DEL command is very small and comparable to most other 622 | # O(1) or O(log_N) commands in Redis. However if the key is associated with an 623 | # aggregated value containing millions of elements, the server can block for 624 | # a long time (even seconds) in order to complete the operation. 625 | # 626 | # For the above reasons Redis also offers non blocking deletion primitives 627 | # such as UNLINK (non blocking DEL) and the ASYNC option of FLUSHALL and 628 | # FLUSHDB commands, in order to reclaim memory in background. Those commands 629 | # are executed in constant time. Another thread will incrementally free the 630 | # object in the background as fast as possible. 631 | # 632 | # DEL, UNLINK and ASYNC option of FLUSHALL and FLUSHDB are user-controlled. 633 | # It's up to the design of the application to understand when it is a good 634 | # idea to use one or the other. However the Redis server sometimes has to 635 | # delete keys or flush the whole database as a side effect of other operations. 636 | # Specifically Redis deletes objects independently of a user call in the 637 | # following scenarios: 638 | # 639 | # 1) On eviction, because of the maxmemory and maxmemory policy configurations, 640 | # in order to make room for new data, without going over the specified 641 | # memory limit. 642 | # 2) Because of expire: when a key with an associated time to live (see the 643 | # EXPIRE command) must be deleted from memory. 644 | # 3) Because of a side effect of a command that stores data on a key that may 645 | # already exist. For example the RENAME command may delete the old key 646 | # content when it is replaced with another one. Similarly SUNIONSTORE 647 | # or SORT with STORE option may delete existing keys. The SET command 648 | # itself removes any old content of the specified key in order to replace 649 | # it with the specified string. 650 | # 4) During replication, when a replica performs a full resynchronization with 651 | # its master, the content of the whole database is removed in order to 652 | # load the RDB file just transferred. 653 | # 654 | # In all the above cases the default is to delete objects in a blocking way, 655 | # like if DEL was called. However you can configure each case specifically 656 | # in order to instead release memory in a non-blocking way like if UNLINK 657 | # was called, using the following configuration directives: 658 | 659 | lazyfree-lazy-eviction no 660 | lazyfree-lazy-expire no 661 | lazyfree-lazy-server-del no 662 | replica-lazy-flush no 663 | 664 | ############################## APPEND ONLY MODE ############################### 665 | 666 | # By default Redis asynchronously dumps the dataset on disk. This mode is 667 | # good enough in many applications, but an issue with the Redis process or 668 | # a power outage may result into a few minutes of writes lost (depending on 669 | # the configured save points). 670 | # 671 | # The Append Only File is an alternative persistence mode that provides 672 | # much better durability. For instance using the default data fsync policy 673 | # (see later in the config file) Redis can lose just one second of writes in a 674 | # dramatic event like a server power outage, or a single write if something 675 | # wrong with the Redis process itself happens, but the operating system is 676 | # still running correctly. 677 | # 678 | # AOF and RDB persistence can be enabled at the same time without problems. 679 | # If the AOF is enabled on startup Redis will load the AOF, that is the file 680 | # with the better durability guarantees. 681 | # 682 | # Please check http://redis.io/topics/persistence for more information. 683 | 684 | appendonly no 685 | 686 | # The name of the append only file (default: "appendonly.aof") 687 | 688 | appendfilename "appendonly.aof" 689 | 690 | # The fsync() call tells the Operating System to actually write data on disk 691 | # instead of waiting for more data in the output buffer. Some OS will really flush 692 | # data on disk, some other OS will just try to do it ASAP. 693 | # 694 | # Redis supports three different modes: 695 | # 696 | # no: don't fsync, just let the OS flush the data when it wants. Faster. 697 | # always: fsync after every write to the append only log. Slow, Safest. 698 | # everysec: fsync only one time every second. Compromise. 699 | # 700 | # The default is "everysec", as that's usually the right compromise between 701 | # speed and data safety. It's up to you to understand if you can relax this to 702 | # "no" that will let the operating system flush the output buffer when 703 | # it wants, for better performances (but if you can live with the idea of 704 | # some data loss consider the default persistence mode that's snapshotting), 705 | # or on the contrary, use "always" that's very slow but a bit safer than 706 | # everysec. 707 | # 708 | # More details please check the following article: 709 | # http://antirez.com/post/redis-persistence-demystified.html 710 | # 711 | # If unsure, use "everysec". 712 | 713 | # appendfsync always 714 | appendfsync everysec 715 | # appendfsync no 716 | 717 | # When the AOF fsync policy is set to always or everysec, and a background 718 | # saving process (a background save or AOF log background rewriting) is 719 | # performing a lot of I/O against the disk, in some Linux configurations 720 | # Redis may block too long on the fsync() call. Note that there is no fix for 721 | # this currently, as even performing fsync in a different thread will block 722 | # our synchronous write(2) call. 723 | # 724 | # In order to mitigate this problem it's possible to use the following option 725 | # that will prevent fsync() from being called in the main process while a 726 | # BGSAVE or BGREWRITEAOF is in progress. 727 | # 728 | # This means that while another child is saving, the durability of Redis is 729 | # the same as "appendfsync none". In practical terms, this means that it is 730 | # possible to lose up to 30 seconds of log in the worst scenario (with the 731 | # default Linux settings). 732 | # 733 | # If you have latency problems turn this to "yes". Otherwise leave it as 734 | # "no" that is the safest pick from the point of view of durability. 735 | 736 | no-appendfsync-on-rewrite no 737 | 738 | # Automatic rewrite of the append only file. 739 | # Redis is able to automatically rewrite the log file implicitly calling 740 | # BGREWRITEAOF when the AOF log size grows by the specified percentage. 741 | # 742 | # This is how it works: Redis remembers the size of the AOF file after the 743 | # latest rewrite (if no rewrite has happened since the restart, the size of 744 | # the AOF at startup is used). 745 | # 746 | # This base size is compared to the current size. If the current size is 747 | # bigger than the specified percentage, the rewrite is triggered. Also 748 | # you need to specify a minimal size for the AOF file to be rewritten, this 749 | # is useful to avoid rewriting the AOF file even if the percentage increase 750 | # is reached but it is still pretty small. 751 | # 752 | # Specify a percentage of zero in order to disable the automatic AOF 753 | # rewrite feature. 754 | 755 | auto-aof-rewrite-percentage 100 756 | auto-aof-rewrite-min-size 64mb 757 | 758 | # An AOF file may be found to be truncated at the end during the Redis 759 | # startup process, when the AOF data gets loaded back into memory. 760 | # This may happen when the system where Redis is running 761 | # crashes, especially when an ext4 filesystem is mounted without the 762 | # data=ordered option (however this can't happen when Redis itself 763 | # crashes or aborts but the operating system still works correctly). 764 | # 765 | # Redis can either exit with an error when this happens, or load as much 766 | # data as possible (the default now) and start if the AOF file is found 767 | # to be truncated at the end. The following option controls this behavior. 768 | # 769 | # If aof-load-truncated is set to yes, a truncated AOF file is loaded and 770 | # the Redis server starts emitting a log to inform the user of the event. 771 | # Otherwise if the option is set to no, the server aborts with an error 772 | # and refuses to start. When the option is set to no, the user requires 773 | # to fix the AOF file using the "redis-check-aof" utility before to restart 774 | # the server. 775 | # 776 | # Note that if the AOF file will be found to be corrupted in the middle 777 | # the server will still exit with an error. This option only applies when 778 | # Redis will try to read more data from the AOF file but not enough bytes 779 | # will be found. 780 | aof-load-truncated yes 781 | 782 | # When rewriting the AOF file, Redis is able to use an RDB preamble in the 783 | # AOF file for faster rewrites and recoveries. When this option is turned 784 | # on the rewritten AOF file is composed of two different stanzas: 785 | # 786 | # [RDB file][AOF tail] 787 | # 788 | # When loading Redis recognizes that the AOF file starts with the "REDIS" 789 | # string and loads the prefixed RDB file, and continues loading the AOF 790 | # tail. 791 | aof-use-rdb-preamble yes 792 | 793 | ################################ LUA SCRIPTING ############################### 794 | 795 | # Max execution time of a Lua script in milliseconds. 796 | # 797 | # If the maximum execution time is reached Redis will log that a script is 798 | # still in execution after the maximum allowed time and will start to 799 | # reply to queries with an error. 800 | # 801 | # When a long running script exceeds the maximum execution time only the 802 | # SCRIPT KILL and SHUTDOWN NOSAVE commands are available. The first can be 803 | # used to stop a script that did not yet called write commands. The second 804 | # is the only way to shut down the server in the case a write command was 805 | # already issued by the script but the user doesn't want to wait for the natural 806 | # termination of the script. 807 | # 808 | # Set it to 0 or a negative value for unlimited execution without warnings. 809 | lua-time-limit 5000 810 | 811 | ################################ REDIS CLUSTER ############################### 812 | 813 | # Normal Redis instances can't be part of a Redis Cluster; only nodes that are 814 | # started as cluster nodes can. In order to start a Redis instance as a 815 | # cluster node enable the cluster support uncommenting the following: 816 | # 817 | # cluster-enabled yes 818 | 819 | # Every cluster node has a cluster configuration file. This file is not 820 | # intended to be edited by hand. It is created and updated by Redis nodes. 821 | # Every Redis Cluster node requires a different cluster configuration file. 822 | # Make sure that instances running in the same system do not have 823 | # overlapping cluster configuration file names. 824 | # 825 | # cluster-config-file nodes-6379.conf 826 | 827 | # Cluster node timeout is the amount of milliseconds a node must be unreachable 828 | # for it to be considered in failure state. 829 | # Most other internal time limits are multiple of the node timeout. 830 | # 831 | # cluster-node-timeout 15000 832 | 833 | # A replica of a failing master will avoid to start a failover if its data 834 | # looks too old. 835 | # 836 | # There is no simple way for a replica to actually have an exact measure of 837 | # its "data age", so the following two checks are performed: 838 | # 839 | # 1) If there are multiple replicas able to failover, they exchange messages 840 | # in order to try to give an advantage to the replica with the best 841 | # replication offset (more data from the master processed). 842 | # Replicas will try to get their rank by offset, and apply to the start 843 | # of the failover a delay proportional to their rank. 844 | # 845 | # 2) Every single replica computes the time of the last interaction with 846 | # its master. This can be the last ping or command received (if the master 847 | # is still in the "connected" state), or the time that elapsed since the 848 | # disconnection with the master (if the replication link is currently down). 849 | # If the last interaction is too old, the replica will not try to failover 850 | # at all. 851 | # 852 | # The point "2" can be tuned by user. Specifically a replica will not perform 853 | # the failover if, since the last interaction with the master, the time 854 | # elapsed is greater than: 855 | # 856 | # (node-timeout * replica-validity-factor) + repl-ping-replica-period 857 | # 858 | # So for example if node-timeout is 30 seconds, and the replica-validity-factor 859 | # is 10, and assuming a default repl-ping-replica-period of 10 seconds, the 860 | # replica will not try to failover if it was not able to talk with the master 861 | # for longer than 310 seconds. 862 | # 863 | # A large replica-validity-factor may allow replicas with too old data to failover 864 | # a master, while a too small value may prevent the cluster from being able to 865 | # elect a replica at all. 866 | # 867 | # For maximum availability, it is possible to set the replica-validity-factor 868 | # to a value of 0, which means, that replicas will always try to failover the 869 | # master regardless of the last time they interacted with the master. 870 | # (However they'll always try to apply a delay proportional to their 871 | # offset rank). 872 | # 873 | # Zero is the only value able to guarantee that when all the partitions heal 874 | # the cluster will always be able to continue. 875 | # 876 | # cluster-replica-validity-factor 10 877 | 878 | # Cluster replicas are able to migrate to orphaned masters, that are masters 879 | # that are left without working replicas. This improves the cluster ability 880 | # to resist to failures as otherwise an orphaned master can't be failed over 881 | # in case of failure if it has no working replicas. 882 | # 883 | # Replicas migrate to orphaned masters only if there are still at least a 884 | # given number of other working replicas for their old master. This number 885 | # is the "migration barrier". A migration barrier of 1 means that a replica 886 | # will migrate only if there is at least 1 other working replica for its master 887 | # and so forth. It usually reflects the number of replicas you want for every 888 | # master in your cluster. 889 | # 890 | # Default is 1 (replicas migrate only if their masters remain with at least 891 | # one replica). To disable migration just set it to a very large value. 892 | # A value of 0 can be set but is useful only for debugging and dangerous 893 | # in production. 894 | # 895 | # cluster-migration-barrier 1 896 | 897 | # By default Redis Cluster nodes stop accepting queries if they detect there 898 | # is at least an hash slot uncovered (no available node is serving it). 899 | # This way if the cluster is partially down (for example a range of hash slots 900 | # are no longer covered) all the cluster becomes, eventually, unavailable. 901 | # It automatically returns available as soon as all the slots are covered again. 902 | # 903 | # However sometimes you want the subset of the cluster which is working, 904 | # to continue to accept queries for the part of the key space that is still 905 | # covered. In order to do so, just set the cluster-require-full-coverage 906 | # option to no. 907 | # 908 | # cluster-require-full-coverage yes 909 | 910 | # This option, when set to yes, prevents replicas from trying to failover its 911 | # master during master failures. However the master can still perform a 912 | # manual failover, if forced to do so. 913 | # 914 | # This is useful in different scenarios, especially in the case of multiple 915 | # data center operations, where we want one side to never be promoted if not 916 | # in the case of a total DC failure. 917 | # 918 | # cluster-replica-no-failover no 919 | 920 | # In order to setup your cluster make sure to read the documentation 921 | # available at http://redis.io web site. 922 | 923 | ########################## CLUSTER DOCKER/NAT support ######################## 924 | 925 | # In certain deployments, Redis Cluster nodes address discovery fails, because 926 | # addresses are NAT-ted or because ports are forwarded (the typical case is 927 | # Docker and other containers). 928 | # 929 | # In order to make Redis Cluster working in such environments, a static 930 | # configuration where each node knows its public address is needed. The 931 | # following two options are used for this scope, and are: 932 | # 933 | # * cluster-announce-ip 934 | # * cluster-announce-port 935 | # * cluster-announce-bus-port 936 | # 937 | # Each instruct the node about its address, client port, and cluster message 938 | # bus port. The information is then published in the header of the bus packets 939 | # so that other nodes will be able to correctly map the address of the node 940 | # publishing the information. 941 | # 942 | # If the above options are not used, the normal Redis Cluster auto-detection 943 | # will be used instead. 944 | # 945 | # Note that when remapped, the bus port may not be at the fixed offset of 946 | # clients port + 10000, so you can specify any port and bus-port depending 947 | # on how they get remapped. If the bus-port is not set, a fixed offset of 948 | # 10000 will be used as usually. 949 | # 950 | # Example: 951 | # 952 | # cluster-announce-ip 10.1.1.5 953 | # cluster-announce-port 6379 954 | # cluster-announce-bus-port 6380 955 | 956 | ################################## SLOW LOG ################################### 957 | 958 | # The Redis Slow Log is a system to log queries that exceeded a specified 959 | # execution time. The execution time does not include the I/O operations 960 | # like talking with the client, sending the reply and so forth, 961 | # but just the time needed to actually execute the command (this is the only 962 | # stage of command execution where the thread is blocked and can not serve 963 | # other requests in the meantime). 964 | # 965 | # You can configure the slow log with two parameters: one tells Redis 966 | # what is the execution time, in microseconds, to exceed in order for the 967 | # command to get logged, and the other parameter is the length of the 968 | # slow log. When a new command is logged the oldest one is removed from the 969 | # queue of logged commands. 970 | 971 | # The following time is expressed in microseconds, so 1000000 is equivalent 972 | # to one second. Note that a negative number disables the slow log, while 973 | # a value of zero forces the logging of every command. 974 | slowlog-log-slower-than 10000 975 | 976 | # There is no limit to this length. Just be aware that it will consume memory. 977 | # You can reclaim memory used by the slow log with SLOWLOG RESET. 978 | slowlog-max-len 128 979 | 980 | ################################ LATENCY MONITOR ############################## 981 | 982 | # The Redis latency monitoring subsystem samples different operations 983 | # at runtime in order to collect data related to possible sources of 984 | # latency of a Redis instance. 985 | # 986 | # Via the LATENCY command this information is available to the user that can 987 | # print graphs and obtain reports. 988 | # 989 | # The system only logs operations that were performed in a time equal or 990 | # greater than the amount of milliseconds specified via the 991 | # latency-monitor-threshold configuration directive. When its value is set 992 | # to zero, the latency monitor is turned off. 993 | # 994 | # By default latency monitoring is disabled since it is mostly not needed 995 | # if you don't have latency issues, and collecting data has a performance 996 | # impact, that while very small, can be measured under big load. Latency 997 | # monitoring can easily be enabled at runtime using the command 998 | # "CONFIG SET latency-monitor-threshold " if needed. 999 | latency-monitor-threshold 0 1000 | 1001 | ############################# EVENT NOTIFICATION ############################## 1002 | 1003 | # Redis can notify Pub/Sub clients about events happening in the key space. 1004 | # This feature is documented at http://redis.io/topics/notifications 1005 | # 1006 | # For instance if keyspace events notification is enabled, and a client 1007 | # performs a DEL operation on key "foo" stored in the Database 0, two 1008 | # messages will be published via Pub/Sub: 1009 | # 1010 | # PUBLISH __keyspace@0__:foo del 1011 | # PUBLISH __keyevent@0__:del foo 1012 | # 1013 | # It is possible to select the events that Redis will notify among a set 1014 | # of classes. Every class is identified by a single character: 1015 | # 1016 | # K Keyspace events, published with __keyspace@__ prefix. 1017 | # E Keyevent events, published with __keyevent@__ prefix. 1018 | # g Generic commands (non-type specific) like DEL, EXPIRE, RENAME, ... 1019 | # $ String commands 1020 | # l List commands 1021 | # s Set commands 1022 | # h Hash commands 1023 | # z Sorted set commands 1024 | # x Expired events (events generated every time a key expires) 1025 | # e Evicted events (events generated when a key is evicted for maxmemory) 1026 | # A Alias for g$lshzxe, so that the "AKE" string means all the events. 1027 | # 1028 | # The "notify-keyspace-events" takes as argument a string that is composed 1029 | # of zero or multiple characters. The empty string means that notifications 1030 | # are disabled. 1031 | # 1032 | # Example: to enable list and generic events, from the point of view of the 1033 | # event name, use: 1034 | # 1035 | # notify-keyspace-events Elg 1036 | # 1037 | # Example 2: to get the stream of the expired keys subscribing to channel 1038 | # name __keyevent@0__:expired use: 1039 | # 1040 | # notify-keyspace-events Ex 1041 | # 1042 | # By default all notifications are disabled because most users don't need 1043 | # this feature and the feature has some overhead. Note that if you don't 1044 | # specify at least one of K or E, no events will be delivered. 1045 | notify-keyspace-events "" 1046 | 1047 | ############################### ADVANCED CONFIG ############################### 1048 | 1049 | # Hashes are encoded using a memory efficient data structure when they have a 1050 | # small number of entries, and the biggest entry does not exceed a given 1051 | # threshold. These thresholds can be configured using the following directives. 1052 | hash-max-ziplist-entries 512 1053 | hash-max-ziplist-value 64 1054 | 1055 | # Lists are also encoded in a special way to save a lot of space. 1056 | # The number of entries allowed per internal list node can be specified 1057 | # as a fixed maximum size or a maximum number of elements. 1058 | # For a fixed maximum size, use -5 through -1, meaning: 1059 | # -5: max size: 64 Kb <-- not recommended for normal workloads 1060 | # -4: max size: 32 Kb <-- not recommended 1061 | # -3: max size: 16 Kb <-- probably not recommended 1062 | # -2: max size: 8 Kb <-- good 1063 | # -1: max size: 4 Kb <-- good 1064 | # Positive numbers mean store up to _exactly_ that number of elements 1065 | # per list node. 1066 | # The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size), 1067 | # but if your use case is unique, adjust the settings as necessary. 1068 | list-max-ziplist-size -2 1069 | 1070 | # Lists may also be compressed. 1071 | # Compress depth is the number of quicklist ziplist nodes from *each* side of 1072 | # the list to *exclude* from compression. The head and tail of the list 1073 | # are always uncompressed for fast push/pop operations. Settings are: 1074 | # 0: disable all list compression 1075 | # 1: depth 1 means "don't start compressing until after 1 node into the list, 1076 | # going from either the head or tail" 1077 | # So: [head]->node->node->...->node->[tail] 1078 | # [head], [tail] will always be uncompressed; inner nodes will compress. 1079 | # 2: [head]->[next]->node->node->...->node->[prev]->[tail] 1080 | # 2 here means: don't compress head or head->next or tail->prev or tail, 1081 | # but compress all nodes between them. 1082 | # 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail] 1083 | # etc. 1084 | list-compress-depth 0 1085 | 1086 | # Sets have a special encoding in just one case: when a set is composed 1087 | # of just strings that happen to be integers in radix 10 in the range 1088 | # of 64 bit signed integers. 1089 | # The following configuration setting sets the limit in the size of the 1090 | # set in order to use this special memory saving encoding. 1091 | set-max-intset-entries 512 1092 | 1093 | # Similarly to hashes and lists, sorted sets are also specially encoded in 1094 | # order to save a lot of space. This encoding is only used when the length and 1095 | # elements of a sorted set are below the following limits: 1096 | zset-max-ziplist-entries 128 1097 | zset-max-ziplist-value 64 1098 | 1099 | # HyperLogLog sparse representation bytes limit. The limit includes the 1100 | # 16 bytes header. When an HyperLogLog using the sparse representation crosses 1101 | # this limit, it is converted into the dense representation. 1102 | # 1103 | # A value greater than 16000 is totally useless, since at that point the 1104 | # dense representation is more memory efficient. 1105 | # 1106 | # The suggested value is ~ 3000 in order to have the benefits of 1107 | # the space efficient encoding without slowing down too much PFADD, 1108 | # which is O(N) with the sparse encoding. The value can be raised to 1109 | # ~ 10000 when CPU is not a concern, but space is, and the data set is 1110 | # composed of many HyperLogLogs with cardinality in the 0 - 15000 range. 1111 | hll-sparse-max-bytes 3000 1112 | 1113 | # Streams macro node max size / items. The stream data structure is a radix 1114 | # tree of big nodes that encode multiple items inside. Using this configuration 1115 | # it is possible to configure how big a single node can be in bytes, and the 1116 | # maximum number of items it may contain before switching to a new node when 1117 | # appending new stream entries. If any of the following settings are set to 1118 | # zero, the limit is ignored, so for instance it is possible to set just a 1119 | # max entires limit by setting max-bytes to 0 and max-entries to the desired 1120 | # value. 1121 | stream-node-max-bytes 4096 1122 | stream-node-max-entries 100 1123 | 1124 | # Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in 1125 | # order to help rehashing the main Redis hash table (the one mapping top-level 1126 | # keys to values). The hash table implementation Redis uses (see dict.c) 1127 | # performs a lazy rehashing: the more operation you run into a hash table 1128 | # that is rehashing, the more rehashing "steps" are performed, so if the 1129 | # server is idle the rehashing is never complete and some more memory is used 1130 | # by the hash table. 1131 | # 1132 | # The default is to use this millisecond 10 times every second in order to 1133 | # actively rehash the main dictionaries, freeing memory when possible. 1134 | # 1135 | # If unsure: 1136 | # use "activerehashing no" if you have hard latency requirements and it is 1137 | # not a good thing in your environment that Redis can reply from time to time 1138 | # to queries with 2 milliseconds delay. 1139 | # 1140 | # use "activerehashing yes" if you don't have such hard requirements but 1141 | # want to free memory asap when possible. 1142 | activerehashing yes 1143 | 1144 | # The client output buffer limits can be used to force disconnection of clients 1145 | # that are not reading data from the server fast enough for some reason (a 1146 | # common reason is that a Pub/Sub client can't consume messages as fast as the 1147 | # publisher can produce them). 1148 | # 1149 | # The limit can be set differently for the three different classes of clients: 1150 | # 1151 | # normal -> normal clients including MONITOR clients 1152 | # replica -> replica clients 1153 | # pubsub -> clients subscribed to at least one pubsub channel or pattern 1154 | # 1155 | # The syntax of every client-output-buffer-limit directive is the following: 1156 | # 1157 | # client-output-buffer-limit 1158 | # 1159 | # A client is immediately disconnected once the hard limit is reached, or if 1160 | # the soft limit is reached and remains reached for the specified number of 1161 | # seconds (continuously). 1162 | # So for instance if the hard limit is 32 megabytes and the soft limit is 1163 | # 16 megabytes / 10 seconds, the client will get disconnected immediately 1164 | # if the size of the output buffers reach 32 megabytes, but will also get 1165 | # disconnected if the client reaches 16 megabytes and continuously overcomes 1166 | # the limit for 10 seconds. 1167 | # 1168 | # By default normal clients are not limited because they don't receive data 1169 | # without asking (in a push way), but just after a request, so only 1170 | # asynchronous clients may create a scenario where data is requested faster 1171 | # than it can read. 1172 | # 1173 | # Instead there is a default limit for pubsub and replica clients, since 1174 | # subscribers and replicas receive data in a push fashion. 1175 | # 1176 | # Both the hard or the soft limit can be disabled by setting them to zero. 1177 | client-output-buffer-limit normal 0 0 0 1178 | client-output-buffer-limit replica 256mb 64mb 60 1179 | client-output-buffer-limit pubsub 32mb 8mb 60 1180 | 1181 | # Client query buffers accumulate new commands. They are limited to a fixed 1182 | # amount by default in order to avoid that a protocol desynchronization (for 1183 | # instance due to a bug in the client) will lead to unbound memory usage in 1184 | # the query buffer. However you can configure it here if you have very special 1185 | # needs, such us huge multi/exec requests or alike. 1186 | # 1187 | # client-query-buffer-limit 1gb 1188 | 1189 | # In the Redis protocol, bulk requests, that are, elements representing single 1190 | # strings, are normally limited ot 512 mb. However you can change this limit 1191 | # here. 1192 | # 1193 | # proto-max-bulk-len 512mb 1194 | 1195 | # Redis calls an internal function to perform many background tasks, like 1196 | # closing connections of clients in timeout, purging expired keys that are 1197 | # never requested, and so forth. 1198 | # 1199 | # Not all tasks are performed with the same frequency, but Redis checks for 1200 | # tasks to perform according to the specified "hz" value. 1201 | # 1202 | # By default "hz" is set to 10. Raising the value will use more CPU when 1203 | # Redis is idle, but at the same time will make Redis more responsive when 1204 | # there are many keys expiring at the same time, and timeouts may be 1205 | # handled with more precision. 1206 | # 1207 | # The range is between 1 and 500, however a value over 100 is usually not 1208 | # a good idea. Most users should use the default of 10 and raise this up to 1209 | # 100 only in environments where very low latency is required. 1210 | hz 10 1211 | 1212 | # Normally it is useful to have an HZ value which is proportional to the 1213 | # number of clients connected. This is useful in order, for instance, to 1214 | # avoid too many clients are processed for each background task invocation 1215 | # in order to avoid latency spikes. 1216 | # 1217 | # Since the default HZ value by default is conservatively set to 10, Redis 1218 | # offers, and enables by default, the ability to use an adaptive HZ value 1219 | # which will temporary raise when there are many connected clients. 1220 | # 1221 | # When dynamic HZ is enabled, the actual configured HZ will be used as 1222 | # as a baseline, but multiples of the configured HZ value will be actually 1223 | # used as needed once more clients are connected. In this way an idle 1224 | # instance will use very little CPU time while a busy instance will be 1225 | # more responsive. 1226 | dynamic-hz yes 1227 | 1228 | # When a child rewrites the AOF file, if the following option is enabled 1229 | # the file will be fsync-ed every 32 MB of data generated. This is useful 1230 | # in order to commit the file to the disk more incrementally and avoid 1231 | # big latency spikes. 1232 | aof-rewrite-incremental-fsync yes 1233 | 1234 | # When redis saves RDB file, if the following option is enabled 1235 | # the file will be fsync-ed every 32 MB of data generated. This is useful 1236 | # in order to commit the file to the disk more incrementally and avoid 1237 | # big latency spikes. 1238 | rdb-save-incremental-fsync yes 1239 | 1240 | # Redis LFU eviction (see maxmemory setting) can be tuned. However it is a good 1241 | # idea to start with the default settings and only change them after investigating 1242 | # how to improve the performances and how the keys LFU change over time, which 1243 | # is possible to inspect via the OBJECT FREQ command. 1244 | # 1245 | # There are two tunable parameters in the Redis LFU implementation: the 1246 | # counter logarithm factor and the counter decay time. It is important to 1247 | # understand what the two parameters mean before changing them. 1248 | # 1249 | # The LFU counter is just 8 bits per key, it's maximum value is 255, so Redis 1250 | # uses a probabilistic increment with logarithmic behavior. Given the value 1251 | # of the old counter, when a key is accessed, the counter is incremented in 1252 | # this way: 1253 | # 1254 | # 1. A random number R between 0 and 1 is extracted. 1255 | # 2. A probability P is calculated as 1/(old_value*lfu_log_factor+1). 1256 | # 3. The counter is incremented only if R < P. 1257 | # 1258 | # The default lfu-log-factor is 10. This is a table of how the frequency 1259 | # counter changes with a different number of accesses with different 1260 | # logarithmic factors: 1261 | # 1262 | # +--------+------------+------------+------------+------------+------------+ 1263 | # | factor | 100 hits | 1000 hits | 100K hits | 1M hits | 10M hits | 1264 | # +--------+------------+------------+------------+------------+------------+ 1265 | # | 0 | 104 | 255 | 255 | 255 | 255 | 1266 | # +--------+------------+------------+------------+------------+------------+ 1267 | # | 1 | 18 | 49 | 255 | 255 | 255 | 1268 | # +--------+------------+------------+------------+------------+------------+ 1269 | # | 10 | 10 | 18 | 142 | 255 | 255 | 1270 | # +--------+------------+------------+------------+------------+------------+ 1271 | # | 100 | 8 | 11 | 49 | 143 | 255 | 1272 | # +--------+------------+------------+------------+------------+------------+ 1273 | # 1274 | # NOTE: The above table was obtained by running the following commands: 1275 | # 1276 | # redis-benchmark -n 1000000 incr foo 1277 | # redis-cli object freq foo 1278 | # 1279 | # NOTE 2: The counter initial value is 5 in order to give new objects a chance 1280 | # to accumulate hits. 1281 | # 1282 | # The counter decay time is the time, in minutes, that must elapse in order 1283 | # for the key counter to be divided by two (or decremented if it has a value 1284 | # less <= 10). 1285 | # 1286 | # The default value for the lfu-decay-time is 1. A Special value of 0 means to 1287 | # decay the counter every time it happens to be scanned. 1288 | # 1289 | # lfu-log-factor 10 1290 | # lfu-decay-time 1 1291 | 1292 | ########################### ACTIVE DEFRAGMENTATION ####################### 1293 | # 1294 | # WARNING THIS FEATURE IS EXPERIMENTAL. However it was stress tested 1295 | # even in production and manually tested by multiple engineers for some 1296 | # time. 1297 | # 1298 | # What is active defragmentation? 1299 | # ------------------------------- 1300 | # 1301 | # Active (online) defragmentation allows a Redis server to compact the 1302 | # spaces left between small allocations and deallocations of data in memory, 1303 | # thus allowing to reclaim back memory. 1304 | # 1305 | # Fragmentation is a natural process that happens with every allocator (but 1306 | # less so with Jemalloc, fortunately) and certain workloads. Normally a server 1307 | # restart is needed in order to lower the fragmentation, or at least to flush 1308 | # away all the data and create it again. However thanks to this feature 1309 | # implemented by Oran Agra for Redis 4.0 this process can happen at runtime 1310 | # in an "hot" way, while the server is running. 1311 | # 1312 | # Basically when the fragmentation is over a certain level (see the 1313 | # configuration options below) Redis will start to create new copies of the 1314 | # values in contiguous memory regions by exploiting certain specific Jemalloc 1315 | # features (in order to understand if an allocation is causing fragmentation 1316 | # and to allocate it in a better place), and at the same time, will release the 1317 | # old copies of the data. This process, repeated incrementally for all the keys 1318 | # will cause the fragmentation to drop back to normal values. 1319 | # 1320 | # Important things to understand: 1321 | # 1322 | # 1. This feature is disabled by default, and only works if you compiled Redis 1323 | # to use the copy of Jemalloc we ship with the source code of Redis. 1324 | # This is the default with Linux builds. 1325 | # 1326 | # 2. You never need to enable this feature if you don't have fragmentation 1327 | # issues. 1328 | # 1329 | # 3. Once you experience fragmentation, you can enable this feature when 1330 | # needed with the command "CONFIG SET activedefrag yes". 1331 | # 1332 | # The configuration parameters are able to fine tune the behavior of the 1333 | # defragmentation process. If you are not sure about what they mean it is 1334 | # a good idea to leave the defaults untouched. 1335 | 1336 | # Enabled active defragmentation 1337 | # activedefrag yes 1338 | 1339 | # Minimum amount of fragmentation waste to start active defrag 1340 | # active-defrag-ignore-bytes 100mb 1341 | 1342 | # Minimum percentage of fragmentation to start active defrag 1343 | # active-defrag-threshold-lower 10 1344 | 1345 | # Maximum percentage of fragmentation at which we use maximum effort 1346 | # active-defrag-threshold-upper 100 1347 | 1348 | # Minimal effort for defrag in CPU percentage 1349 | # active-defrag-cycle-min 5 1350 | 1351 | # Maximal effort for defrag in CPU percentage 1352 | # active-defrag-cycle-max 75 1353 | 1354 | # Maximum number of set/hash/zset/list fields that will be processed from 1355 | # the main dictionary scan 1356 | # active-defrag-max-scan-fields 1000 1357 | 1358 | -------------------------------------------------------------------------------- /tests/docker/linux-um-nommu/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine 2 | 3 | RUN mkdir /nabla 4 | ADD vmlinux /nabla/. 5 | ADD alpine-test.ext3 /nabla/. 6 | ADD ignore_winch.sh /nabla/. 7 | 8 | CMD cd /nabla && ./ignore_winch.sh ./vmlinux rw ubd0=layer,./alpine-test.ext3 mem=1024m loglevel=10 init=/init.sh sh 9 | -------------------------------------------------------------------------------- /tests/docker/linux-um-nommu/Makefile: -------------------------------------------------------------------------------- 1 | all: build 2 | 3 | alpine-test.ext3: ../../alpine-test.ext3 4 | cp $< $@ 5 | 6 | vmlinux: ../../../linux-um-nommu/vmlinux 7 | cp $< $@ 8 | 9 | build: vmlinux alpine-test.ext3 10 | sudo docker build -t kollerr/linux-um-nommu . 11 | -------------------------------------------------------------------------------- /tests/docker/linux-um-nommu/ignore_winch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | trap 'echo "ignoring SIGWINCH (FIXME)"' WINCH 4 | 5 | "$@" 6 | -------------------------------------------------------------------------------- /tests/entropy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #define BUFSIZE 256 9 | 10 | struct rand_pool_info { 11 | int entropy_count; 12 | int buf_size; 13 | unsigned int buf[256]; 14 | }; 15 | 16 | uint8_t prng(void) { 17 | static uint8_t seed=19; 18 | seed = 311 * seed + 17; 19 | return seed; 20 | } 21 | 22 | #define BUF_SIZE 256 23 | #define MAX_ITERS 10000 24 | 25 | #define RNDADDENTROPY 0x40085203 26 | 27 | int main(int argc, char **argv) 28 | { 29 | struct rand_pool_info *output; 30 | int max_iters = MAX_ITERS; 31 | int iters = 0, ret; 32 | int fd = open("/dev/random", O_WRONLY); 33 | 34 | if (argc == 2) 35 | max_iters = atoi(argv[1]); 36 | 37 | printf("generating \"entropy\"..."); 38 | output = (struct rand_pool_info *)malloc(sizeof(struct rand_pool_info) 39 | + BUF_SIZE); 40 | do { 41 | int i; 42 | output->entropy_count = BUF_SIZE * 8; 43 | output->buf_size = BUF_SIZE; 44 | for (i=0; i< BUF_SIZE; i++) 45 | output->buf[i] = prng(); 46 | ret = ioctl(fd, RNDADDENTROPY, &output); 47 | iters++; 48 | } while((ret >= 0) && (iters < max_iters)); 49 | 50 | printf("for %d iters\n", iters); 51 | } 52 | 53 | -------------------------------------------------------------------------------- /tests/exit.c: -------------------------------------------------------------------------------- 1 | #include "syscall_nr.h" 2 | 3 | static void kill(int pid, int sig) { 4 | register int syscall_no asm("rax") = 62; 5 | register int arg1 asm("rdi") = pid; 6 | register int arg2 asm("rsi") = sig; 7 | asm("syscall"); 8 | } 9 | 10 | void _start() 11 | { 12 | kill(0, 9); 13 | return; 14 | } 15 | -------------------------------------------------------------------------------- /tests/futex.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* this function is run by the second thread */ 5 | void *inc_x(void *x_void_ptr) 6 | { 7 | 8 | /* increment x to 100 */ 9 | int *x_ptr = (int *)x_void_ptr; 10 | while(++(*x_ptr) < 100); 11 | 12 | printf("x increment finished\n"); 13 | 14 | /* the function must return something - NULL will do */ 15 | return NULL; 16 | 17 | } 18 | 19 | int main() 20 | { 21 | 22 | int x = 0, y = 0; 23 | 24 | /* show the initial values of x and y */ 25 | printf("x: %d, y: %d\n", x, y); 26 | 27 | /* this variable is our reference to the second thread */ 28 | pthread_t inc_x_thread; 29 | 30 | /* create a second thread which executes inc_x(&x) */ 31 | if(pthread_create(&inc_x_thread, NULL, inc_x, &x)) { 32 | 33 | fprintf(stderr, "Error creating thread\n"); 34 | return 1; 35 | 36 | } 37 | /* increment y to 100 in the first thread */ 38 | while(++y < 100); 39 | 40 | printf("y increment finished\n"); 41 | 42 | /* wait for the second thread to finish */ 43 | if(pthread_join(inc_x_thread, NULL)) { 44 | 45 | fprintf(stderr, "Error joining thread\n"); 46 | return 2; 47 | 48 | } 49 | 50 | /* show the results - x is now 100 thanks to the second thread */ 51 | printf("x: %d, y: %d\n", x, y); 52 | 53 | return 0; 54 | 55 | } 56 | -------------------------------------------------------------------------------- /tests/histo.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from collections import defaultdict 3 | import sys 4 | import time 5 | import curses 6 | import math 7 | 8 | """ 9 | Continously shows the histogram of a stream of strings. 10 | 11 | Examples: 12 | 13 | Histogram of random numbers: 14 | while true; do echo $RANDOM | awk '{print $1 % 10}'; done | python histo.py 15 | 16 | Histogram of all syscalls in the system: 17 | sysdig "evt.type!='switch' and evt.dir!='<'" --print=' %evt.type' | python histo.py 18 | """ 19 | 20 | def main(stdscr): 21 | bins = defaultdict(int) 22 | period = 0.5 # print every 500ms 23 | last = 0 24 | 25 | def print_histo(stdscr): 26 | stdscr.clear() 27 | sbins = sorted(bins, key=lambda k: int(bins[k]), reverse=True) 28 | for i, k in enumerate(sbins): 29 | c = bins[k] 30 | pk = k[:20] 31 | log_c = max(1, int(math.log(c))) 32 | try: 33 | stdscr.addstr(i, 0, '{}'.format(i+1)) 34 | stdscr.addstr(i, 5, '{}'.format(pk)) 35 | stdscr.addstr(i, 22, '{}'.format(c)) 36 | stdscr.addstr(i, 32, '{}'.format('#' * log_c)) 37 | except: 38 | pass 39 | stdscr.refresh() 40 | 41 | stdscr = curses.initscr() 42 | stdscr.clear() 43 | 44 | while True: 45 | try: 46 | line = sys.stdin.readline() 47 | except IOError: 48 | continue 49 | except KeyboardInterrupt: 50 | sys.exit(0) 51 | event = line.strip() 52 | bins[event] += 1 53 | now = time.time() 54 | if (now - last) >= period: 55 | print_histo(stdscr) 56 | last = time.time() 57 | 58 | curses.wrapper(main) 59 | -------------------------------------------------------------------------------- /tests/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | ::1 ip6-localhost ip6-loopback 3 | fe00::0 ip6-localnet 4 | ff00::0 ip6-mcastprefix 5 | ff02::1 ip6-allnodes 6 | ff02::2 ip6-allrouters 7 | -------------------------------------------------------------------------------- /tests/image2rootfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Usage: ./image2rootfs.sh app tag fs 3 | die() { echo "$*" 1>&2 ; exit 1; } 4 | 5 | app=$1 tag=$2 6 | fs=${3:-ext3} 7 | echo $app $tag 8 | 9 | container_id=$(docker create $app:$tag || die "run container failed.") 10 | if [ "$container_id" == "" ]; then 11 | die "empty container id." 12 | fi 13 | 14 | app=$(basename $app) 15 | docker export $container_id > $app.tar || die "failed to create tar." 16 | trap "rm $app.tar" EXIT 17 | docker rm $container_id; 18 | mnt=$(mktemp -d) 19 | tar -xf $app.tar -C $mnt 20 | 21 | # install devices 22 | mknod -m 666 $mnt/dev/null c 1 3 23 | mknod -m 666 $mnt/dev/zero c 1 5 24 | mknod -m 666 $mnt/dev/ptmx c 5 2 25 | mknod -m 666 $mnt/dev/tty c 5 0 26 | mknod -m 444 $mnt/dev/random c 1 8 27 | mknod -m 444 $mnt/dev/urandom c 1 9 28 | 29 | # replace busybox with the nommu busybox 30 | cp ${BUSYBOX_BUILD}/busybox $mnt/bin/busybox 31 | md5sum $mnt/bin/busybox 32 | 33 | # install our "init" file 34 | cp init.sh $mnt/init.sh 35 | cp entropy $mnt/ 36 | cp hosts $mnt/etc/hosts 37 | 38 | # install musl libc 39 | cp ${MUSL_BUILD}/lib/libc.so $mnt/lib/ld-musl-x86_64.so.1 40 | cp ${MUSL_BUILD}/lib/libc.so $mnt/lib/libc.musl-x86_64.so.1 41 | cp ${MUSL_BUILD}/lib/libc.so $mnt/lib/libc.so 42 | md5sum $mnt/lib/libc.so 43 | 44 | case "$fs" in 45 | ext2) 46 | genext2fs -z -f -q -U -P -b $((2**20)) -d $mnt $app.$fs 47 | ;; 48 | ext3) 49 | genext2fs -z -f -q -U -P -b $((2**20)) -d $mnt $app.$fs 50 | tune2fs -j $app.$fs 51 | ;; 52 | ext4) 53 | genext2fs -z -f -q -U -P -b $((2**20)) -d $mnt $app.$fs 54 | tune2fs -j $app.$fs 55 | tune2fs -O extent,uninit_bg,dir_index $app.$fs 56 | ;; 57 | iso) 58 | genisoimage -o $app.$fs -r $mnt 59 | ;; 60 | *) 61 | echo "Not processed" 62 | ;; 63 | esac 64 | 65 | rm -rf $mnt 66 | -------------------------------------------------------------------------------- /tests/image2rootfs_mount.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Usage: ./image2rootfs.sh app tag fs 3 | die() { echo "$*" 1>&2 ; exit 1; } 4 | 5 | app=$1 tag=$2 6 | fs=${3:-ext2} 7 | echo $app $tag 8 | 9 | container_id=$(docker create $app:$tag || die "run container failed.") 10 | if [ "$container_id" == "" ]; then 11 | die "empty container id." 12 | fi 13 | 14 | app=$(basename $app) 15 | docker export $container_id > $app.tar || die "failed to create tar." 16 | trap "rm $app.tar" EXIT 17 | docker rm $container_id; 18 | mnt=$(mktemp -d) 19 | dd if=/dev/zero of=$app.$fs bs=1 count=0 seek=1G 20 | sudo chmod og+wr "$app.$fs" 21 | yes | mkfs."$fs" "$app.$fs" 22 | mount "$app.$fs" $mnt 23 | tar -xf $app.tar -C $mnt 24 | 25 | # install devices 26 | mknod -m 666 $mnt/dev/null c 1 3 27 | mknod -m 666 $mnt/dev/zero c 1 5 28 | mknod -m 666 $mnt/dev/ptmx c 5 2 29 | mknod -m 666 $mnt/dev/tty c 5 0 30 | mknod -m 444 $mnt/dev/random c 1 8 31 | mknod -m 444 $mnt/dev/urandom c 1 9 32 | 33 | # replace busybox with the nommu busybox 34 | cp ${BUSYBOX_BUILD}/busybox $mnt/bin/busybox 35 | 36 | # install our "init" file 37 | cp init.sh $mnt/init.sh 38 | cp entropy $mnt/ 39 | cp hosts $mnt/etc/hosts 40 | 41 | # install musl libc 42 | cp ${MUSL_BUILD}/lib/libc.so $mnt/lib/ld-musl-x86_64.so.1 43 | cp ${MUSL_BUILD}/lib/libc.so $mnt/lib/libc.musl-x86_64.so.1 44 | cp ${MUSL_BUILD}/lib/libc.so $mnt/lib/libc.so 45 | 46 | umount $mnt 47 | rm -rf $mnt 48 | -------------------------------------------------------------------------------- /tests/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mount proc /proc -t proc 4 | /sbin/ifconfig lo 127.0.0.1 up 5 | /sbin/ifconfig eth0 10.0.0.2 up 6 | /sbin/ip route add default via 10.0.0.1 dev eth0 7 | /entropy 100000 8 | 9 | export PATH=/home:/sbin:/usr/sbin:/bin:/usr/bin 10 | 11 | # hanging 12 | #export PS1="\[$(tput bold)\]\[$(tput setaf 4)\][\[$(tput setaf 5)\]\u\[$(tput setaf 4)\]@\[$(tput setaf 5)\]\h \[$(tput setaf 2)\]\W\[$(tput setaf 4)\]]\\$ \[$(tput sgr0)\]" 13 | 14 | exec "$@" 15 | -------------------------------------------------------------------------------- /tests/noop.c: -------------------------------------------------------------------------------- 1 | #include "syscall_nr.h" 2 | 3 | static unsigned long __sysinfo = 0; 4 | #include "syscall-x86_64.h" 5 | 6 | typedef unsigned long size_t; 7 | 8 | #define AUX_CNT 64 9 | #define DYN_CNT 32 10 | 11 | #define AT_NULL 0 12 | #define AT_SYSINFO 32 13 | 14 | void _start_c(size_t *sp) 15 | { 16 | size_t i, aux[AUX_CNT], dyn[DYN_CNT]; 17 | size_t *rel, rel_size, base; 18 | 19 | int argc = *sp; 20 | char **argv = (void *)(sp+1); 21 | 22 | for (i=argc+1; argv[i]; i++); 23 | size_t *auxv = (void *)(argv+i+1); 24 | 25 | for (i=0; i 0); 27 | 28 | return buf; 29 | } 30 | 31 | static int print_num(unsigned long num) 32 | { 33 | char num_buf[30]; 34 | 35 | printmsg(num_to_str(num, num_buf, sizeof(num_buf)), 30); 36 | } 37 | 38 | static char msg_global[] = "HELLO\n\r"; 39 | 40 | static void _Exit(int ec) 41 | { 42 | //__syscall1(__NR_exit_group, ec); 43 | for (;;) __syscall1(__NR_exit, ec); 44 | } 45 | 46 | static long __syscall_ret(unsigned long r) 47 | { 48 | if (r > -4096UL) { 49 | return -1; 50 | } 51 | return r; 52 | } 53 | 54 | static int vfork() 55 | { 56 | /* This is exactly the same as in musl */ 57 | __asm__ __volatile__ ("popq %%rcx; call *%0; pushq %%rcx; movq %%rax,%%rdi; jmp __syscall_ret" 58 | :: "r"(__sysinfo), "a"(__NR_vfork) : "rcx", "r11", "memory", "rdi"); 59 | } 60 | 61 | #define O_RDONLY 0x0000 /* open for reading only */ 62 | #define O_WRONLY 0x0001 /* open for writing only */ 63 | #define O_RDWR 0x0002 /* open for reading and writing */ 64 | #define O_ACCMODE 0x0003 /* mask for above modes */ 65 | #define O_NONBLOCK 0x0004 /* no delay */ 66 | #define O_APPEND 0x0008 /* set append mode */ 67 | #define O_CREAT 0x0200 /* create if nonexistant */ 68 | 69 | struct timespec { 70 | long tv_sec; /* seconds */ 71 | long tv_nsec; /* nanoseconds */ 72 | }; 73 | 74 | #define NULL (0) 75 | 76 | static void test_files() 77 | { 78 | char buf[128]; 79 | int fd = __syscall3(__NR_open, "/files/mifile2", O_RDONLY, 0); 80 | __syscall3(__NR_read, fd, buf, 50); 81 | __syscall3(__NR_write, 1, buf, 50); 82 | } 83 | 84 | static void test() 85 | { 86 | char msg[] = "hello\n\r"; 87 | int ret = 0; 88 | 89 | printmsg("\n", 1); 90 | printmsg("\n", 1); 91 | printmsg(msg, 7); 92 | 93 | struct timespec t; 94 | t.tv_sec = 0; 95 | t.tv_nsec = 100; 96 | __syscall2(__NR_nanosleep, &t, 0); 97 | 98 | __syscall3(__NR_write, 1, msg, 7); 99 | 100 | __syscall3(__NR_write, 1, "hola XXXXX\n\r", 12); 101 | 102 | //__syscall3(__NR_execve, "/noop", NULL, NULL); 103 | 104 | ret = vfork(); 105 | if (ret == 0) { 106 | __syscall3(__NR_write, 1, "hola child\n\r", 12); 107 | __syscall3(__NR_write, 1, msg, 7); 108 | __syscall3(__NR_execve, "/noop", NULL, NULL); 109 | 110 | // should not be executed 111 | _Exit(0); 112 | } else if (ret > 0) { 113 | int status; 114 | __syscall4(__NR_wait4, ret, &status, 0, 0); 115 | test_files(); 116 | __syscall3(__NR_write, 1, "hola dad\n\r", 12); 117 | _Exit(0); 118 | } else { 119 | __syscall3(__NR_write, 1, "error xxx\n\r", 12); 120 | _Exit(0); 121 | } 122 | } 123 | 124 | typedef unsigned long size_t; 125 | 126 | #define AUX_CNT 64 127 | #define DYN_CNT 32 128 | 129 | void _start_c(size_t *sp, size_t *dynv) 130 | { 131 | size_t i, aux[AUX_CNT], dyn[DYN_CNT]; 132 | size_t *rel, rel_size, base; 133 | 134 | int argc = *sp; 135 | char **argv = (void *)(sp+1); 136 | 137 | for (i=argc+1; argv[i]; i++); 138 | size_t *auxv = (void *)(argv+i+1); 139 | 140 | for (i=0; i