First, create a GPT partition table.
- boot partition, label: EFI, flags: boot + ESP; size: 1GB, format to FAT32;
- root partition (label: root), must same size on all devices!
- swap partition.
#include<stdio.h> |
while (1) { | |
time = zv_find_timer(); | |
debug("wait time = %d", time); | |
n = zv_epoll_wait(epfd, events, MAXEVENTS, time); | |
zv_handle_expire_timers(); | |
log_info("loop n:%d\n",n); | |
for (i = 0; i < n; i++) { | |
zv_http_request_t *r = (zv_http_request_t *)events[i].data.ptr; | |
fd = r->fd; | |
log_info("fd:%d\n", fd); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
#!/bin/bash | |
TENANT_NAME= | |
ADMIN_USERNAME= | |
ADMIN_PASSWORD= | |
REQUEST="{\"auth\": {\"tenantName\":\"$TENANT_NAME\", \"passwordCredentials\": {\"username\": \"$ADMIN_USERNAME\", \"password\": \"$ADMIN_PASSWORD\"}}}" | |
RAW_TOKEN=`curl -s -d "$REQUEST" -H "Content-type: application/json" "http://{KeyStone_IP_ADDR:Port}/v2.0/tokens"` | |
TOKEN=`echo $RAW_TOKEN | python -c "import sys; import json; tok = json.loads(sys.stdin.read()); print tok['access']['token']['id'];"` | |
echo $TOKEN\ |
def build_model(width, num_channels): | |
width, height, n_len, n_class = width, 40, 7, len(chars)+ 1 | |
rnn_size = 256 | |
input_tensor = Input((width, 40, 3)) | |
x = input_tensor | |
base_conv = 32 | |
for i in range(3): | |
x = Conv2D(base_conv * (2 ** (i)), (3, 3))(x) | |
x = BatchNormalization()(x) | |
x = Activation('relu')(x) |
fio -filename=/dev/vdb -direct=1 -iodepth 1 -thread -rw=read -ioengine=libaio -bs=16k -size=200G -numjobs=30 -runtime=2400 -group_reporting -name=mytest |
// ===================================================================================== | |
// | |
// Filename: qemu phyaddr section.c | |
// | |
// Description: | |
// | |
// Version: 1.0 | |
// Created: 2020/07/29 20时18分30秒 | |
// Revision: none | |
// Compiler: g++ |