Skip to content

Instantly share code, notes, and snippets.

Avatar

Olivier Doucet odoucet

  • OXEVA
  • Paris, France
View GitHub Profile
@odoucet
odoucet / todo
Last active Nov 29, 2017
securize-windows
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)
@odoucet
odoucet / fio on zvol with volblocksize=128k
Created Nov 20, 2017
bad read performance investigation
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):
@odoucet
odoucet / zpool-histogram
Last active Nov 17, 2017
ZFS performance issues
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
@odoucet
odoucet / agregate-fioresults.php
Last active Mar 21, 2017
FIO benchmarking with stats per job
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');
@odoucet
odoucet / haproxy-sample.cfg
Created Dec 27, 2016
HAProxy bug with balance uri + option prefer-last-server + hash-type consistent
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
@odoucet
odoucet / haproxy-sample.cfg
Last active May 26, 2016
HAProxy 1.6.5 bug with "show servers state"
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
@odoucet
odoucet / proc-slabinfo
Created Apr 13, 2016
100% system load with 0.6.5.6 - zfs_znode_hold_enter suspected
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
@odoucet
odoucet / rrdtool.inc.php
Created Oct 16, 2013
rrdtool library replacement for Observium. Work in progress
View rrdtool.inc.php
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage rrdtool
* @author Adam Armstrong <adama@memetic.org>
@odoucet
odoucet / gist:6794216
Created Oct 2, 2013
Add block <default_priority> at cache level. set it to 10 to write to cache even if it's close to full.
View gist:6794216
Index: app/code/core/Mage/Core/Model/Cache.php
===================================================================
--- app/code/core/Mage/Core/Model/Cache.php (revision 124392)
+++ app/code/core/Mage/Core/Model/Cache.php (working copy)
@@ -44,7 +44,7 @@
/**
* Cache frontend API
*
- * @var Zend_Cache_Core
+ * @var Varien_Cache_Core
@odoucet
odoucet / gist:5842361
Created Jun 22, 2013
ArrayObject implementation
View gist:5842361
<?php
if (!class_exists('ArrayObject')) {
class ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable
{
const STD_PROP_LIST = 1;
const ARRAY_AS_PROPS = 2;
protected $_array = array();
protected $_flags = 0;
You can’t perform that action at this time.