You require to install docker and KVM before to run these commands:
docker pull torokernel/toro-kernel-dev-debian-10
docker run --privileged --rm -it torokernel/toro-kernel-dev-debian-10
cd examples/MPI
make
../CloudIt.sh MpiReduce
| for i in 1000 200 120 50 20 10 2; | |
| do | |
| paplay --latency-ms=$i 44100_s16_2chan_file.wav & | |
| PID=$! | |
| sleep 1 | |
| echo "Latency $i 44100 server:" | |
| sudo perf stat -p `pidof pipewire-uninstalled` --timeout 5000 | |
| echo "latency $i 44100 client:" | |
| sudo perf stat -p $PID --timeout 5000 | |
| kill -9 $PID |
| import asyncio | |
| from qemu.qmp import QMPClient | |
| import argparse | |
| from subprocess import call | |
| import os | |
| async def main(): | |
| parser = argparse.ArgumentParser(description='Pin QEMU vCPUs to physical CPUs') | |
| parser.add_argument('-s', '--server', type=str, required=True, help='QMP server path or address:port') | |
| parser.add_argument('cpu', type=int, nargs='+', help='Physical CPUs IDs') |
| // share ownership across multiple threads | |
| // https://doc.rust-lang.org/book/ch16-03-shared-state.html | |
| // | |
| use std::thread; | |
| use std::sync::{Arc,RwLock}; | |
| struct User { | |
| index: u32, | |
| } |
| use std::time::Duration; | |
| use async_std::task; | |
| use std::{thread, time}; | |
| // this is something that will take some time | |
| // to execute so we execute it as an async function | |
| // to not block the main thread. This function must not block | |
| async fn do_sleep(val: u32) { | |
| task::sleep(Duration::from_secs(3)).await; | |
| println!("hello, world! {}", val); |
| (qemu) info virtio | |
| /machine/peripheral-anon/device[2]/virtio-backend [virtio-blk] | |
| /machine/peripheral-anon/device[1]/virtio-backend [virtio-sound] | |
| /machine/peripheral-anon/device[0]/virtio-backend [virtio-net] | |
| (qemu) info virtio-queue-element /machine/peripheral-anon/device[1]/virtio-backend 2 | |
| /machine/peripheral-anon/device[1]/virtio-backend: | |
| device_name: virtio-sound | |
| index: 12 | |
| desc: | |
| descs: |
| syntax on | |
| filetype plugin indent on | |
| command Cleanit %s/\s\+$//e | |
| " show existing tab with 4 spaces width | |
| set tabstop=4 | |
| " when indenting with '>', use 4 spaces width | |
| set shiftwidth=4 | |
| autocmd BufWritePre *.pas %s/\s\+$//e | |
| " On pressing tab, insert 4 spaces | |
| set expandtab |
You require to install docker and KVM before to run these commands:
docker pull torokernel/toro-kernel-dev-debian-10
docker run --privileged --rm -it torokernel/toro-kernel-dev-debian-10
cd examples/MPI
make
../CloudIt.sh MpiReduce
This is the procedure to push an image to a repository that the user has the right to access, e.g., organization.
docker login
docker pull torokernel/toro-kernel-dev-debian-10
docker build --no-cache -t torokernel/toro-kernel-dev-debian-10 .
docker push torokernel/toro-kernel-dev-debian-10| #!/bin/sh | |
| mount -t proc none /proc | |
| mount -t sysfs none /sys | |
| echo -e "\nBoot took $(cut -d' ' -f1 /proc/uptime) seconds\n" | |
| setsid cttyhack sh | |
| exec /bin/sh |