This file contains hidden or 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
#! /usr/bin/evn stap | |
# | |
probe begin | |
{ | |
printf("begin to trace thread IO"); | |
} | |
probe vfs.read | |
{ |
This file contains hidden or 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
SAS noop | |
PingCAP max throughput: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=4 | |
fio-2.2.8 | |
Starting 1 thread | |
PingCAP max throughput: Laying out IO file(s) (1 file(s) / 10240MB) | |
Jobs: 1 (f=1): [W(1)] [100.0% done] [0KB/172.7MB/0KB /s] [0/44.2K/0 iops] [eta 00m:00s] | |
PingCAP max throughput: (groupid=0, jobs=1): err= 0: pid=115165: Mon Jul 24 15:48:36 2017 | |
write: io=10240MB, bw=183725KB/s, iops=45931, runt= 57073msec | |
slat (usec): min=3, max=173, avg= 8.37, stdev= 6.51 | |
clat (usec): min=17, max=56128, avg=77.84, stdev=80.93 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
extern crate rocksdb; | |
extern crate byteorder; | |
extern crate rand; | |
extern crate tempdir; | |
use std::fs; | |
use std::sync::Arc; | |
use std::thread; | |
use std::time::Instant; | |
use rand::{Rng, ThreadRng}; |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"strconv" |
This file contains hidden or 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
global ptr2bt | |
global ptr2size | |
global bt_stats | |
global quit | |
probe begin { | |
warn("Start tracing. Wait for 5 sec to complete.\n") | |
} | |
// Use tikv binary |
This file contains hidden or 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
#![allow(stable_features)] | |
#![feature(test)] | |
extern crate test; | |
use std::error::Error; | |
use std::fmt; | |
use std::io; | |
use std::io::Write; | |
use std::ptr; |
This file contains hidden or 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
package main | |
import ( | |
"database/sql" | |
"flag" | |
"fmt" | |
"log" | |
"math/rand" | |
"os" | |
"os/signal" |
This file contains hidden or 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
export HostIP=10.9.76.72 | |
nmz container run --nmz-autopilot config.toml -d --name pd1 \ | |
-p 12379:2379 \ | |
-p 12380:2380 \ | |
-v /data/bin/var/pd1:/tidata/pd1 \ | |
pingcap/pd \ | |
--cluster-id=1 \ | |
--name="pd1" \ | |
--data-dir="/tidata/pd1" \ |
This file contains hidden or 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
// Copyright 2016 PingCAP, Inc. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |