linux 多线程 死循环_在Linux中添加更多循环设备

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 多线程 死循环

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值