Posts Tagged ‘linux’

httperf 一个高性能的压力测试工具

星期四, 6月 26th, 2008

做个标记:)

Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance. The focus of httperf is not on implementing one particular benchmark but on providing a robust, high-performance tool that facilitates the construction of both micro- and macro-level benchmarks. The three distinguishing characteristics of httperf are its robustness, which includes the ability to generate and sustain server overload, support for the HTTP/1.1 and SSL protocols, and its extensibility to new workload generators and performance measurements.

Httperf 是一个高效的 http 压力测试工具,使用它可以模拟出超过1千的并发访问,能充分测试出 web server 的性能。而之前使用的 siege 测试工具则未能突破 500 个并发测试(如果您知道如何可以实现,请告诉我)

(more…)

跨平台、多浏览器页面测试

星期四, 6月 26th, 2008

给自己做个标记:)

browsershots提供了Linux、Windows、Mac os、BSD四个平台下的多个浏览器的页面截图,很强大。不过我主要就看看Windows和Mac os下的效果就好,选择太多浏览器会导致速度非常慢。

(more…)

鸟哥的Linux私房菜简体版

星期三, 4月 9th, 2008

鸟哥是个厚道的Linuxer,这里收集了一份简体中文的《鸟哥的Linux私房菜》希望大家喜欢。具体见下面的URL:

Click Me:http://docs.ourlinux.net/book/linux-vbird/

apt

星期三, 12月 26th, 2007

本站的apt for RHAS4 up4已经开通了

import the key:
[shell]
rpm –import /usr/share/rhn/RPM-GPG-KEY
rpm –import http://apt.ourlinux.net/RPM-GPG-KEY-bixuan
[/shell]
install apt:
[shell]
rpm -Uvh http://apt.ourlinux.net/apt-0.5.15lorg3.2-8.i386.rpm
[/shell]
or
[shell]
wget -c http://apt.ourlinux.net/apt-0.5.15lorg3.2-8.i386.rpm
[/shell]
use the repo:
[shell]
cat > /etc/apt/sources.list < < end
rpm http://apt.ourlinux.net as4.4/i386 os
end
[/shell]

强制系统不使用swap分区

星期二, 12月 25th, 2007

要想系统强制不使用 swap分区,那么:
将 /proc/sys/vm/swappiness 的值设置为0

[shell]
echo 0 > /proc/sys/vm/swappiness
[/shell]
或者:
[shell]
echo “vm.swappiness = 0″ >> /etc/sysctl.conf
sysctl -p # 立即生效
[/shell]

以上适用linux :)

提高 Linux 上 socket 性能

星期一, 12月 17th, 2007

加速网络应用程序的 4 种方法

使用 Sockets API,我们可以开发客户机和服务器应用程序,它们可以在本地网络上进行通信,也可以通过 Internet 在全球范围内进行通信。与其他 API 一样,您可以通过一些方法使用 Sockets API,从而提高 Socket 的性能,或者限制 Socket 的性能。本文探索了 4 种使用 Sockets API 来获取应用程序的最大性能并对 GNU/Linux® 环境进行优化从而达到最好结果的方法。

详细见:http://www.ibm.com/developerworks/cn/linux/l-hisock.html

curl

星期五, 12月 14th, 2007
curl -S -I -x 192.168.3.2:80 http://www.ourlinux.net


Usage: curl [options...]
Options: (H) means HTTP/HTTPS only, (F) means FTP only
-a/–append Append to target file when uploading (F)
-A/–user-agent User-Agent to send to server (H)
–anyauth Tell curl to choose authentication method (H)
-b/–cookie Cookie string or file to read cookies from (H)
–basic Enable HTTP Basic Authentication (H)

(more…)

netfilter conntrack调优(iptables使用)

星期五, 11月 16th, 2007

大意如下
有两点我们要注意.
-conntrack最大数量.叫做conntrack_max
-存储这些conntrack的hash表的大小,叫做hashsize

当conntrack入口数大于conntrack_max时,在hash表中每一个conntrack list中的存储的入口将不可控.(conntrack_mark/hashsize 为每个list所能存储的入口的数量)

hash表存在于固定的的不可swap的内存中. conntrack_mark决定占用多少这些不可swap的内存.

(more…)