各种各样的总结

qemu-system-x86_64 -enable-kvm -hda /home/yaoxin/vm-nvme/vm3.qcow2 -nographic -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/dev/hugepages,share=on -numa node,memdev=mem -drive file=/home/yaoxin/vm-nvme/vm3.qcow2,if=none,id=disk -device ide-hd,drive=disk,bootindex=0

taskset -c 2,3 qemu-system-x86_64 --enable-kvm -cpu host -smp 2 -m 1G -object memory-backend-file,id=mem0,size=1G,mem-path=/dev/hugepages,share=on -numa node,memdev=mem0 -chardev socket,id=spdk_vhost_blk0,path=/home/yaoxin/spdk/vhost.1 -device vhost-user-blk-pci,chardev=spdk_vhost_blk0,num-queues=2

taskset -c 7,8 qemu-system-x86_64 --enable-kvm -cpu host -smp 2 -m 1G -object memory-backend-file,id=mem0,size=1G,mem-path=/dev/hugepages,share=on -numa node,memdev=mem0 -drive file=/home/yaoxin/vm-nvme/vm1.qcow2,if=none,id=disk -device ide-hd,drive=disk,bootindex=0 -chardev socket,id=spdk_vhost_scsi0,path=/var/tmp/vhost.0 -device vhost-user-scsi-pci,id=scsi0,chardev=spdk_vhost_scsi0,num_queues=2 -chardev socket,id=spdk_vhost_blk0,path=/var/tmp/vhost.1 -device vhost-user-blk-pci,chardev=spdk_vhost_blk0,num-queues=2

sudo ~/uswap_beta/build/apps/uswapd ~/uswap_beta/src/uswapd.conf ~/uswap_beta/src/spdk_nvme.json

~/code/local/bin/qemu-system-x86_64 -enable-kvm -hda /home/yaoxin/ubuntu-20.04-minimal-cloudimg-amd64.img -nographic -m 1024 -object memory-backend-uswap,size=1073741824,id=m0,allocator=hugetlb -numa node,memdev=m0

/home/yaoxin/.local/bin

export PATH=/home/yaoxin/.local/bin:$PATH

jupyter notebook

ssh -o StrictHostKeyChecking=no root@192.168.122.66 -i /var/local/uswap-benchmark/uswap-vm-root

sudo /usr/local/bin/virsh start qemu-yaoxin

sudo /usr/local/bin/virsh net-dhcp-leases default

sudo virt-copy-in -a /tmp/vm00.qcow2 /lib/modules/$(uname -r) /lib/modules/

qemu-img resize vm3.qcow2 100G

lsblk

df -h

sudo growpart /dev/sda 3

sudo resize2fs /dev/sda1 SIZE

fatal: unable to access ‘https://github.com/spdk/spdk/’: server certificate verification failed. CAfile: none CRLfile: none

export GIT_SSL_NO_VERIFY=1

git config --global http.sslVerify false

export http_proxy=http://10.206.133.47:3128

sudo apt-get install meson ninja-build

apt-get install python-pyelftools python3-pyelftools -y

root@ubuntu:~# pip install fb-idb

Looking in indexes: http://pypi.douban.com/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by ‘ConnectTimeoutError(<urllib3.connection.HTTPConnection
object at 0x7faf6af6c700>, ‘Connection to pypi.douban.com timed out. (connect timeout=15)’)’: /simple/fb-idb/

pip proxy
/root/.pip/pip.conf
[global]
index-url = http://pypi.douban.com/simple
proxy=http://10.206.133.47:3128
[install]
trusted-host=pypi.douban.com

<kernel>/home/yaoxin/compiled_kernel/rpmbuild/BUILDROOT/kernel-5.7.0_rc7_a83f3fac_master-3.x86_64/boot/vmlinuz-5.7.0-rc7-a83f3fac-master</kernel>
<cmdline>console=ttyS0 root=/dev/sda1 intel_iommu=on</cmdline>

kvm module 在哪里
/lib/modules/5.7.0-rc7-a83f3fac-master/kernel/arch/x86/kvm

Inside the VM: mount -t tmpfs -o size=512m tmpfs /mnt - you can play around with the size= parameter.
Then
dd if=/dev/zero of=/mnt/a
This will write to the ramdisk.
Thomas Knauth(00625140) 2022-01-25 15:56
Hopefully, uswap will start to swap out data.
After swap out, you do dd if=/mnt/a of=/dev/null to read the data. This should be a read only access.

ping proxyde.huawei.com

ssh 10.206.133.45 mrc 002 password yaoxin2025617
ssh yaoxin@10.206.133.76 workstation, Enter passphrase for key ‘D:\Users\y50021753/.ssh/id_rsa’: yaoxin2025617 , yaoxin@10.206.133.76’s password: jing2025617 (开机登录密码)
192.168.10.205: 密码 yaoxin
How do I associate an NVME drive name with a PCIe address?
ls -l /sys/block/blockdevice
should tell you the complete path to the device, including the PCI bus. For example
ll /sys/block/nvme1n1

sudo LD_LIBRARY_PATH=./build/lib/:./dpdk/build/lib/ ./build/examples/perf -r ‘trtype:PCIe traddr:0000:02:00.0’

开启spdk fio
GRUB_CMDLINE_LINUX=“intel_iommu=on iommu=pt pcie_aspm=off vfio_iommu_type1.allow_unsafe_interrupts=1 vfio_pci.disable_vga=1 vfio_pci.disable_idle_d3=1”

sudo LD_LIBRARY_PATH=./build/lib/:./dpdk/build/lib/ ./build/examples/perf -r ‘trtype:PCIe traddr:0000:02:00.0’ -q 32 -o 4096 -w write -t 60

sudo PCI_ALLOWED=“0000:02:00.0” ./scripts/setup.sh

sudo PCI_ALLOWED=“0000:af:00.0” ./scripts/setup.sh
0000:af:00.0

cmbd

How do I associate an NVME drive name with a PCIe address?
ls -l /sys/block/blockdevice
should tell you the complete path to the device, including the PCI bus. For example:

martin@martin ~ % ll /sys/block/sda
lrwxrwxrwx 1 root root 0 Jun 20 21:36 /sys/block/sda -> …/devices/pci0000:00/0000:00:1f.2/a

libvirt
apt-get install libglib2.0-dev gnutls-dev libnl-3-dev libnl-route-3-dev libxml2-dev libtirpc-dev libxml2-utils xsltproc libdevmapper-dev libpciaccess-dev

error: "rst2html5/rst2html is required to build liibvirt
python3-docutils

https://blog.programster.org/kvm-missing-default-network

/boot/initrd.img-5.7.0-rc7-a83f3fac-master

Check the current mode:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Switch to the ‘performance’ mode:

$ echo “performance” | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governo

If your system is using the intel_pstate frequency scaling driver:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
Then you can inquire as to the turbo enabled or disabled status:

$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
Where 0 means turbo is enabled and 1 means it is disabled. And you can change it by writting (as sudo) to the same location.

$ echo “1” | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
1

echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

ssh -o StrictHostKeyChecking=no root@vm_ip -i /var/local/uswap-benchmark/uswap-vm-root

/home/yaoxin/vm-nvme/*nvme.qcow2 rwk,

ssh -o StrictHostKeyChecking=no root@192.168.122.40 -i /var/local/uswap-benchmark/uswap-vm-root

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值