Instantly share code, notes, and snippets.

View todo
- Supprimer les applications non utilisées, notamment toutes les éventuelles version Office présentes
- applications et fonctionnalités
- Chiffrement BitLocker du disque
- installer Cmder full
- installer Office365 (www.office365.com)
View fio on zvol with volblocksize=128k
random-read: (g=0): rw=randread, bs=256KiB-256KiB,256KiB-256KiB,256KiB-256KiB, ioengine=libaio, iodepth=256
fio-2.18
Starting 1 process
Jobs: 1 (f=1): [r(1)][100.0%][r=27.3MiB/s,w=0KiB/s][r=109,w=0 IOPS][eta 00m:00s]
random-read: (groupid=0, jobs=1): err= 0: pid=5216: Mon Nov 20 11:25:52 2017
read: IOPS=111, BW=27.1MiB/s (29.4MB/s)(1678MiB/60002msec)
slat (usec): min=937, max=48829, avg=8931.40, stdev=4220.94
clat (usec): min=6, max=2544.4k, avg=2225904.59, stdev=255594.73
lat (msec): min=10, max=2560, avg=2234.84, stdev=255.58
clat percentiles (msec):
View zpool-histogram
# NOTE:
# /dev/zvol/xxxxx/test volume is tested by FIO
# volblocksize 16K
# compression lz4
# usedbydataset 50.4G
# logbias latency
# sync always
xxxxxxx sync_read sync_write async_read async_write scrub
req_size ind agg ind agg ind agg ind agg ind agg
View agregate-fioresults.php
<?php
/**
* Agregate stats per job on a unique file compatible with fio2gnuplot
**/
if (!$argv[1]) {
echo "syntax: ".$argv[0]." <prefix-file>\n";
echo "Example : ".$argv[0]." nametest\n";
}
$tests = array('bw','lat','slat','clat','iops');
View haproxy-sample.cfg
global
pidfile /tmp/haproxytest.pid
defaults
# we do web !
mode http
option httpchk /c
option http-keep-alive
option http-pretend-keepalive
View haproxy-sample.cfg
global
chroot /tmp
daemon
group users
user nobody
pidfile /var/run/haproxy.pid
log xxx local2 notice
nbproc 4
server-state-file /tmp/haproxy_server_state
View proc-slabinfo
slabinfo - version: 2.1
# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
lio_r2t_cache 285 531 64 59 1 : tunables 120 60 8 : slabdata 9 9 0
lio_ooo_cache 0 0 64 59 1 : tunables 120 60 8 : slabdata 0 0 0
lio_dr_cache 325 413 64 59 1 : tunables 120 60 8 : slabdata 7 7 0
lio_qr_cache 996 1120 32 112 1 : tunables 120 60 8 : slabdata 10 10 0
lio_cmd_cache 476 489 1216 3 1 : tunables 24 12 8 : slabdata 163 163 108
t10_alua_tg_pt_gp_mem_cache 124 154 48 77 1 : tunables 120 60 8 : slabdata 2 2 0
t10_alua_tg_pt_gp_cache 124 176 248 16 1 : tunables 120 60 8 : slabdata 11 11 0
t10_alua_lu_gp_mem_cache 124 385 48 77 1
View parse_namedstats.php
<?php
$fp = fopen('/etc/named/named.stats', 'r');
$data = array();
$start = false;
$currentHost = '';
while($line = fgets($fp, 1024)) {
if (strpos($line, 'Per Zone Query Statistics ') !== false) {
View modsecurity_id_extractor.php
<?php
/***************
* Extract rule ID from modsecurity log
* and print TOP hits by rule ID
*
* @author github.com/odoucet
*
* useful when using mod_security as DETECTION_ONLY mode
*
* USAGE :
View other infos
process arc_adapt :
blocked in status D
/proc/(pidof arc_adapt)/stat :
1564 (arc_adapt) D 2 0 0 0 -1 2269248 0 0 0 0 0 24533 0 0 0 -20 1 0 911 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744072101946508 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
(no change to this file after 10s sleep so this process seems to have no activity - cannot run "top" to make sure, it hangs)