linux 多线程 死循环
We need more loop devices on Linux than the default number (most commonly 8) some time, such as we are building 12 or more virtual machines on top of xen using loop device backed VBD. In this post, we want to use 32 loops.
在Linux上,我们需要比默认数量更多的循环设备(最常见的是8个),例如,我们使用循环设备支持的VBD在xen之上构建12个或更多虚拟机。 在本文中,我们要使用32个循环。
1.如果循环设备直接在内核中编译 (1. If loop device is compiled directly in the kernel)
Pass “max_loop=32” to grub command line.
将“ max_loop = 32 ”传递到grub 命令行。
2.如果将循环设备编译为模块 (2. If loop device is compiled as a module)
Pass “max_loop=32” as argument to the modprobe command.
将“ max_loop = 32”作为参数传递给modprobe命令。
# modprobe loop max_loop=32
翻译自: https://www.systutorials.com/add-more-loop-device-on-linux/
linux 多线程 死循环