From owner-freebsd-doc@FreeBSD.ORG Thu Jan 3 18:03:02 2013 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E8114AB for ; Thu, 3 Jan 2013 18:03:02 +0000 (UTC) (envelope-from edward@rdtan.net) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx1.freebsd.org (Postfix) with ESMTP id B8D8B89C for ; Thu, 3 Jan 2013 18:03:02 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id um15so8636494pbc.2 for ; Thu, 03 Jan 2013 10:02:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type:x-gm-message-state; bh=cwXwI7GQ24+HeD/ZF7zwZRNKoCyRko2lXqWFZTPfP1k=; b=cGFoyHPbE9SFmNiyaKtgpUYkOKYdq+sy7amrjp/3cmCGZ9Ir/sNMOnZVC1kfkcVvLi wmDtJrK+4DoO5D9gqHwUn4egZm8niR7DF2/M7/69cNhf9ihIqks/qsYwQh6uF/qCNT6c LY3DE4eXVEU4QhPkTP2GfDs2XLPc1t6A1SHVk4fmgeK5U2Pl/+/Xg2RsuEhmAqWuka+A kdnyJ7x+LLj3Vkpk5hzpIiolvgfuj6fDmEn+k+rtQTFPLyGSnXOclP4WFVuHp7ppK2Ht BmP3RlHqUwj7O6tCkEzS+Z4gRsVE6f0hq4EVOI2SuJtpPrmXz4TCAhzAhEeZ6Nhh+44P q/tA== X-Received: by 10.66.82.67 with SMTP id g3mr146858923pay.58.1357236176430; Thu, 03 Jan 2013 10:02:56 -0800 (PST) Received: from zion.local ([175.136.54.130]) by mx.google.com with ESMTPS id nw9sm30672685pbb.42.2013.01.03.10.02.54 (version=SSLv3 cipher=OTHER); Thu, 03 Jan 2013 10:02:55 -0800 (PST) Message-ID: <50E5C7CD.5010300@rdtan.net> Date: Fri, 04 Jan 2013 02:02:53 +0800 From: Edward User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Eitan Adler Subject: Re: [RFC] Q&A propose to add into FAQ References: <50CF471D.10407@rdtan.net> <50D139D3.2010604@rdtan.net> In-Reply-To: Content-Type: multipart/mixed; boundary="------------070308000009090903030506" X-Gm-Message-State: ALoCoQmCihIfD6UlT7H4ZO7exuM101SBUX8O+kI0SAWiw/gd1KuDe0V8Gg2xh3FTf6zvBlkHoKr0 Cc: Edward , freebsd-doc@freebsd.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 18:03:03 -0000 This is a multi-part message in MIME format. --------------070308000009090903030506 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 12/19/12 11:55 PM, Eitan Adler wrote: > I've made more content and editorial changes and turned this into > docbook markup (like HTML). > > Please comment a bit more on this. In particular the answer for > finding bottlenecks needs more content: > just knowing which utilities isn't enough, we also need some content > on what to look for. Hi Eitan, My bad on this late reply. Attached is a diff for some changes made. I've put tags "" around my comments to reflect the changes that I've made, in the diff. Please do let me know if further content add/change needed. There are a few Q&A excluded in this formatting, can I assume that there's more changes needed to work on it before it can be included? Regards, Edward. --------------070308000009090903030506 Content-Type: text/plain; charset=UTF-8; name="diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="diff.txt" --- lots-more-faq.diff 2012-12-20 00:00:00.000000000 +0800 +++ edited-lots-more-faq.diff 2013-01-04 01:50:36.000000000 +0800 @@ -102,7 +102,8 @@ + In short, tune net.inet.tcp.msl to + a lower value such as 7500: + -+ In more detail, the the default timeout value for + ++ In more detail, the default timeout value for + TIME_WAIT is 60 seconds. This value is + based on RFC 793. A busy server opening and closing + TCP connections should set this value to a shorter time, @@ -140,21 +141,32 @@ + + + -+ My server performance seems to be slow. How can I find -+ out what the bottleneck is? + ++ My server performance seems to be slow. I suspect it has + something to do with CPU/network/harddisk/memory. How can + I find out what the bottleneck is? + + + + + Use &man.iostat.8; or &man.systat.1;. + -+ For example, to see deviice statistics ++ For example, to see device statistics + refreshing the output every 2 second try: + + &prompt.user; iostat -dw2 + -+ Another interactive tool &man.systat.1; -+ ......???? ++ &man.systat.1; is an interactive system statistics tool. + It's keyboard operation is similar to "vim" editor. For + example, to monitor network interface traffic: + + &prompt.user; systat -ifstat + + In order to display memory related statistics, try this: + + &prompt.user; systat -vmstat + + Check out &man.systat.1; for more info. + + @@ -259,7 +271,9 @@ + processing. Otherwise, it is likely to be a 32 bit + processor. + -+ An example 64 bit processor looks like: + ++ This is an example of how a 64 bit processor capabilities + looks like: + + AMD Features=0x28100000<NX,RDTSCP,LM> + @@ -287,10 +301,10 @@ +++ b/en_US.ISO8859-1/books/faq/book.xml @@ -579,6 +579,21 @@ - + + -+ I have some software which only works on old versions ++ I have some software which only works on older versions + of &os;, where can I get these? + + @@ -334,12 +348,13 @@ + find them? + + + + + Kernel log messages are recorded in + /var/log/messages, + /var/log/dmesg.yesterday, and + /var/log/dmesg.today. Boot time -+ messages are recorded in ++ messages are also recorded in + /var/run/dmesg.boot. + + --------------070308000009090903030506--