预览模式: 普通 | 列表

LINUX减少TIME_WAIT

vi /usr/src/linux/include/net/tcp.h
#define TCP_TIMEWAIT_LEN (60*HZ)

改为

#define TCP_TIMEWAIT_LEN (10*HZ)

重新编译内核

两台生产环境下的机器进行对比

使用默认设置的

# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
LAST_ACK 3
SYN_RECV 21
CLOSE_WAIT 41
ESTABLISHED 608
FIN_WAIT1 42
FIN...

查看全部...

标签: linux TIME_WAIT 

分类:Linux | 固定链接 | 评论: 0 | 查看次数: 66

SUSE LINUX Enterprise Server 11

附件
切换到幻灯片模式

Introducing SUSE Linux Enterprise 11
Welcome to the evolution.

The enterprise as we know it is evolving. It's becoming a place where everyone and everything must work together. That's why we made SUSE Linux Enterprise even more interoperable, more adaptable, and more reliable than ever before.
...

查看全部...

标签: linux Suse 

分类:Linux | 固定链接 | 评论: 1 | 查看次数: 1228

libGL.so.1

error: Failed dependencies:
libGL.so.1 is needed by glitz-0.4.4-21.2.i586

CODE:

rpm -ivh Mesa-6.4.2-19.12.i586.rpm

查看全部...

标签: libGL 

分类:Linux | 固定链接 | 评论: 1 | 查看次数: 1077

减少TCP CLOSE_WAIT

vi /etc/sysctl.conf,添加
CODE:

net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_keepalive_time = 600
net.ipv4.tcp_keepalive_probes = 2
net.ipv4.tcp_keepalive_intvl = 2

查看全部...

标签:

分类:Linux | 固定链接 | 评论: 1 | 查看次数: 1525

32位汇编移植到64位

寄存器:
CODE:

push ebx
push ecx


改为:
CODE:
 
push rbx
push rcx



即由原来的 e 改为 r

编译时用 yasm :
CODE:

yasm -f -elf64 ...

查看全部...

标签: 64位 汇编 push 

分类:Linux | 固定链接 | 评论: 16 | 查看次数: 1923

Too many open files解决方法

CODE:

vi /etc/security/limits.conf



[code]
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - t...

查看全部...

标签: too-many-open-files 

分类:Linux | 固定链接 | 评论: 31 | 查看次数: 3670

Starfish分布式文件系统详细安装

安装内核Source
CODE:

# rpm -ivh kernel-source-2.6.18.2-34.i586.rpm



安装FUSE 2.7.3

CODE:

# tar -zvxf fuse-2.7.3.tar.gz
# cd fuse-2.7.3/
# ./configure --prefix=/usr --enable-kernel-module
# make install
# ldconfig



安装Python-devel 2.5

[code]
# rpm -ivh tcl-8.4.14-11....

查看全部...

标签: 安装 分布式 文件系统 Starfish 

分类:Linux | 固定链接 | 评论: 7 | 查看次数: 2242

another GlusterFS HA specification

Yet another GlusterFS HA specification

Hi everyone,

Here is a template for a HA storage configuration with GlusterFS.
Configuration is :

2 nodes on a network A (or2 and or3)
1 node on a network B (op1)

We want to provide HA services for both networks A & B

In this example, we also p...

查看全部...

标签: HA GlusterFS 

分类:Linux | 固定链接 | 评论: 11 | 查看次数: 2183

[Gluster-devel] AFR documentation

[Gluster-devel] AFR documentation
Krishna Srinivas
Wed, 17 Oct 2007 23:10:25 -0700

Hi All,

There has been lot of mails in the recent times on AFR and HA, I
guess the reason was lack of documentation on self-heal which
has been pending for long. In case any user thinks that his mail
was no...

查看全部...

标签: Gluster AFR 

分类:Linux | 固定链接 | 评论: 14 | 查看次数: 2242

Setup Round robin DNS - 设置DNS轮询

Round robin DNS is a technique in which load balancing is performed by a DNS server instead of a strictly dedicated machine. A DNS record has more than one value IP address.

When a request is made to the DNS server which serves this record, the answer it gives alternates for each request. For ins...

查看全部...

标签: Round-robin DNS 轮询 

分类:Linux | 固定链接 | 评论: 35 | 查看次数: 4655

GlusterFS安装/配置/测试

操作系统 OpenSuse 10.2

1.下载

1) 下载GlusterFS

http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/
http://europe.gluster.org/glusterfs/1.3/

2) 下载Fuse补丁

http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/
http://europe.gluster.org/glusterfs/fuse/


2.安装

1) 安装Fuse
先安装kernel-source...

查看全部...

标签: 安装 Install GlusterFS 

分类:Linux | 固定链接 | 评论: 13 | 查看次数: 3542

checking kernel source version... Not found

=== configuring in kernel (/root/glusterfs/fuse-2.7.2glfs8/kernel)
configure: running /bin/sh ./configure '--prefix=/usr' '--enable-kernel-module' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking kernel source directory... /usr/src/linux-2.6...

查看全部...

标签: kernel Source GlusterFS fuse 

分类:Linux | 固定链接 | 评论: 1 | 查看次数: 2923

升级MYSQL

[code]
linux-web-db-1:~/wyq # rpm -e MySQL-server-community-5.0.45-0.sles10
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
linux-web-db-1:~/wyq # rpm -ivh MySQL-server-community-5.0.51a-0.sles10.x86_64.rpm
Preparing... ###################################...

查看全部...

标签: mysql SERVER 

分类:Linux | 固定链接 | 评论: 15 | 查看次数: 2315

200 Terabytes Served in 81 Days = 2.47TB per day!

We interrupt our regular programming with a bit of geek braggery. What? We don’t have regular programming here? Sheesh, what kind of blog is this? It’s not a blog? It’s a “Web Log”? Whatever… back to the topic at hand…

A year and a half ago the company where I was contracting decided to build a v...

查看全部...

标签: HAProxy 

分类:Linux | 固定链接 | 评论: 6 | 查看次数: 2088

haproxy + varnish cache配置

varnish配置

vi /etc/varnish/vcl.conf

[code]
backend default {
set backend.host = "192.168.1.118";
set backend.port = "80";
}

sub vcl_recv {
# pass mode can't handle POST (yet)
if (req.request == "POST") {
pip...

查看全部...

标签: cache Varnish HAProxy 

分类:Linux | 固定链接 | 评论: 1 | 查看次数: 3771