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
diff -u -r .//arch/alpha/include/asm/pgalloc.h ../linux-2.6.32/arch/alpha/include/asm/pgalloc.h | |
--- .//arch/alpha/include/asm/pgalloc.h 2009-12-03 06:51:21.000000000 +0300 | |
+++ ../linux-2.6.32/arch/alpha/include/asm/pgalloc.h 2012-07-22 21:06:48.000000000 +0400 | |
@@ -38,10 +38,15 @@ | |
} | |
static inline pmd_t * | |
+__pmd_alloc_one(struct mm_struct *mm, unsigned long address, gfp_t gfp_mask) | |
+{ | |
+ return (pmd_t *)__get_free_page(gfp_mask | __GFP_ZERO); |
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/perl | |
use strict; | |
use warnings; | |
print "Processing ${ARGV[0]}, filtering domain ${ARGV[1]}\n"; | |
open INPUT, ${ARGV[0]} or die $!; | |
open OUTPUT, ">${ARGV[0]}.filtered.xml" or die $!; | |
my $skip = 0; | |
while (my $line = <INPUT>) { |
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
[root@cellar sb]# sysbench --test=fileio --file-total-size=18G --file-test-mode=rndrw --max-time=300 --max-requests=0 run | |
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 1 | |
Extra file open flags: 0 | |
128 files, 144Mb each | |
18Gb total file size | |
Block size 16Kb |
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
[client] | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
[mysqld_safe] | |
socket = /var/run/mysqld/mysqld.sock | |
nice = 0 | |
[mysqld] | |
user = mysql |
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
#!/bin/sh | |
. /usr/share/initramfs-tools/hook-functions | |
PREREQ="" | |
prereqs() | |
{ | |
echo "$PREREQ" | |
} |
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
server { | |
listen {{ grafana_ext_ip }}:{{ grafana_http_port }}; ## listen for ipv4; this line is default and implied | |
#listen [::]:80 default ipv6only=on; ## listen for ipv6 | |
root /usr/share/nginx/www/grafana/src; | |
index index.html index.htm; | |
auth_basic "Restricted"; | |
auth_basic_user_file htpasswd.grafana; |
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
root@hypervisor02 ~ mount -o ro,recovery /dev/sdc3 /mnt | |
mount: wrong fs type, bad option, bad superblock on /dev/sdc3, | |
missing codepage or helper program, or other error | |
In some cases useful info is found in syslog - try | |
dmesg | tail or so. | |
root@hypervisor02 ~ |
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
When I start "recover node <storage_node_name>" message of type QUEUE_ID_RECOVERY_NODE seems to be | |
blocking processing of other messages (mainly, QUEUE_ID_PER_OBJECT ones). | |
I tried to visualize message processing using StatsD: | |
http://ns2.1888.spb.ru/2015-02-24-024731_1366x768_scrot.png | |
A graph at the lower right corner depicts calls to | |
handle_call({consume, ?QUEUE_ID_RECOVERY_NODE, MessageBin}). | |
It is my understanding that recover_node_callback(Node) should generate a lot | |
of QUEUE_TYPE_PER_OBJECT messages synchronously for a single QUEUE_ID_RECOVERY_NODE | |
message but the graph shows that QUEUE_ID_RECOVERY_NODE messages are constantly processed. |
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
root@fe5 ~ find /opt/graphite/storage/whisper -name "*.wsp" | wc -l | |
18398 | |
root@fe5 ~ |
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 https_proxy="https://student:[email protected]:8080/" | |
export http_proxy="https://student:[email protected]:8080/" | |
cd /home/student | |
sudo apt-get update | |
sudo apt-get install git | |
git clone https://github.com/alexclear/nginx.git | |
sudo apt-get install libpcre3-dev zlib1g-dev | |
cd /home/student/nginx | |
./auto/configure | |
make |
OlderNewer