This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <pthread.h> | |
#include <assert.h> | |
#include <stdarg.h> | |
#include <net/if.h> | |
#include <sys/ioctl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <pthread.h> | |
#include <assert.h> | |
#include <stdarg.h> | |
#include <net/if.h> | |
#include <sys/ioctl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[syuu@localhost ~]$ lspci | |
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller | |
00:01.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 04) | |
00:02.0 PCI bridge: Red Hat, Inc. QEMU PCIe Root port | |
00:02.1 PCI bridge: Red Hat, Inc. QEMU PCIe Root port | |
00:02.2 PCI bridge: Red Hat, Inc. QEMU PCIe Root port | |
00:02.3 PCI bridge: Red Hat, Inc. QEMU PCIe Root port | |
00:02.4 PCI bridge: Red Hat, Inc. QEMU PCIe Root port | |
00:02.5 PCI bridge: Red Hat, Inc. QEMU PCIe Root port | |
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <arpa/inet.h> | |
#include <stdio.h> | |
int main(void) { | |
char buf[128]; | |
struct in_addr addr; | |
int ret; | |
scanf("%s", buf); | |
ret = inet_pton(AF_INET, buf, &addr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://gist.github.com/syuu1228/e8f649201bed394260b227873faccd12 */ | |
#include "rdtsc.h" | |
#define LOOP_CNT 1000 | |
int main(void) { | |
unsigned long long cnt_start, cnt_end; | |
cnt_start = rdtsc(); | |
for (int i = 0; i < LOOP_CNT; i++) { | |
// your program | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef RDTSC_H_ | |
#define RDTSC_H_ | |
static inline unsigned long long rdtsc() { | |
unsigned long long ret; | |
__asm__ __volatile__ ("cpuid" : : : "rax", "rbx", "rcx", "rdx"); | |
__asm__ __volatile__ ( \ | |
"rdtsc\n\t" \ | |
"shlq $32, %%rdx\n\t" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[clckwrk@ip-172-16-99-109 ~]$ sudo yum install epel-release | |
Loaded plugins: ulninfo | |
epel/x86_64/metalink | 20 kB 00:00 | |
epel | 3.2 kB 00:00 | |
ol7_UEKR4 | 1.2 kB 00:00 | |
ol7_addons | 1.2 kB 00:00 | |
ol7_latest | 1.4 kB 00:00 | |
(1/3): epel/x86_64/group_gz | 88 kB 00:00 | |
(2/3): epel/x86_64/primary | 3.5 MB 00:02 | |
(3/3): epel/x86_64/updateinfo | 929 kB 00:02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 252a9ef0e8ba4f0357c9478a1379ad9dbb25c709 Mon Sep 17 00:00:00 2001 | |
From: Takuya ASADA <syuu@scylladb.com> | |
Date: Wed, 13 Jun 2018 18:41:36 +0900 | |
Subject: [PATCH scylla] dist/ami: show unsupported instance type message even | |
scylla_ami_setup is still running | |
Signed-off-by: Takuya ASADA <syuu@scylladb.com> | |
--- | |
dist/ami/files/.bash_profile | 31 ++++++++++++++++--------------- | |
1 file changed, 16 insertions(+), 15 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum --nogpgcheck --releasever=7 --installroot=/home/ec2-user/scylla/build/installroot install -y @base | |
読み込んだプラグイン:amazon-id, rhui-lb, search-disabled-repos | |
epel/x86_64/metalink | 14 kB 00:00 | |
epel | 4.7 kB 00:00 | |
rhui-REGION-client-config-server-7 | 2.9 kB 00:00 | |
https://rhui2-cds02.us-east-1.aws.ce.redhat.com/pulp/repos//content/dist/rhel/rhui/server/7/7/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found | |
他のミラーを試します。 | |
To address this issue please refer to the below knowledge base article | |
https://access.redhat.com/articles/1320623 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install scylla-enterprise=2017.1.* scylla-enterprise-server=2017.1.* scylla-enterprise-conf=2017.1.* scylla-enterprise-kernel-conf=2017.1.* scylla-enterprise-jmx=2017.1.* scylla-enterprise-tools=2017.1.* | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Selected version '2017.1.6-20180312.e6fc79c-ubuntu1' (s3.amazonaws.com [amd64]) for 'scylla-enterprise' | |
Selected version '2017.1.6-20180312.e6fc79c-ubuntu1' (s3.amazonaws.com [amd64]) for 'scylla-enterprise-server' | |
Selected version '2017.1.6-20180312.e6fc79c-ubuntu1' (s3.amazonaws.com [amd64]) for 'scylla-enterprise-conf' | |
Selected version '2017.1.6-20180312.e6fc79c-ubuntu1' (s3.amazonaws.com [amd64]) for 'scylla-enterprise-kernel-conf' | |
Selected version '2017.1.6-20180312.eb73bef-ubuntu1' (s3.amazonaws.com [all]) for 'scylla-enterprise-jmx' | |
Selected version '2017.1.6-20180312.ed9506d-ubuntu0' (s3.amazonaws.com [all]) for 'scylla-enterprise-tools' |