From owner-freebsd-doc@FreeBSD.ORG Mon Dec 17 19:15:28 2012 Return-Path: Delivered-To: doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E3C5981 for ; Mon, 17 Dec 2012 19:15:28 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 127AE8FC0C for ; Mon, 17 Dec 2012 19:15:27 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so4991961lah.13 for ; Mon, 17 Dec 2012 11:15:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=i0mXDvFNBcJXE9ZHn2PWmHUpk0ULY9NmlpU8nN3g2IQ=; b=QAIkOpvd9yjAFEmEEtvjfXp0ajHkrr7ysPbfcXeBR9l71zQ+VKOiuHBGFlDo087V+4 jZbC8A3lLcLMuGhJC6sjZsZ12kLLUHtiDVK3sCnimzMSYucCQago2rRMx6zurtTuLKDK 0lhv2hENicWsNKtXFXvk7MFWwdbhB3BBmyLno= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=i0mXDvFNBcJXE9ZHn2PWmHUpk0ULY9NmlpU8nN3g2IQ=; b=eKAjtBCWKhJUmRMXPXnecr3n+ne0ZX3k5r4o1Wnv6FyDSPfRlCnv9qSCrG1wY+TfrA J9UbCpbLWJsom4i/psl2gwOG5xZ4mNaKkHcva5IGMVaQP9OT2pBRKWIl2gBazaeZU2Ge bgCKBU39xCglsWBGnJk174DxY0mcnLZri3I68YnDpO3abGeh/eTasW1LwhhFOE0weg6k j9JRWFlNtqofBmkIin76+PeFogfjqapPqvlRRdaF7eoYg+LDKOGH4Yktf7FIrb64Zwcw H4mcjbBEYPVxJoy/BB4c+Gn0+98cjJ7CkAIzZCxVGUwr5eww+udzXnp9TioWIOylPbjw QxCg== Received: by 10.152.108.48 with SMTP id hh16mr11789686lab.25.1355771726425; Mon, 17 Dec 2012 11:15:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.149.225 with HTTP; Mon, 17 Dec 2012 11:14:55 -0800 (PST) In-Reply-To: <50CF471D.10407@rdtan.net> References: <50CF471D.10407@rdtan.net> From: Eitan Adler Date: Mon, 17 Dec 2012 14:14:55 -0500 Message-ID: Subject: Re: [RFC] Q&A propose to add into FAQ To: Edward Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkCMk7MaFlhXToKkoxHQ0VQWCzckxwU+1VpVQAZ/feoScCX+M0QBMsuN9XoHcVWqqiuGGgr Cc: 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: Mon, 17 Dec 2012 19:15:28 -0000 On 17 December 2012 11:23, Edward wrote: > Hi, > > I wish to submit the below list of Q&A (Question & Answer) for addition > to current FreeBSD FAQ book. Before this can happen, I would like to > seek your comments & suggestion whether these Q&A are in correct facts, > writing style and/or suitable. These Q&A are : Lets focus on content and language first. The next step is turning this into docbook. I'll be happy to do that once we nail the language. > Q1: Boot up messages are missing from /var/log files. Where can I find them? > A1: Kernel log messages are recorded in /var/log/messages, > /var/log/dmesg.yesterday, and /var/log/dmesg.today. But boot time > messages can be found at /var/run/dmesg.boot. I might write these like. I'm largely basing the content on what you wrote with some editorial changes. Q1: Boot messages are missing from dmesg. Where can I find them? A1: Kernel log messages are recorded in /var/log/messages, /var/log/dmesg.yesterday, and /var/log/dmesg.today. Boot time messages are recorded in /var/run/dmesg.boot. Q2: I have some software which only works on very old versions of FreeBSD "some old version" of FreeBSD, where can I get these? A2: Older versions of FreeBSD can be obtained from ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/. Most of these versions are past End of Life and can be extremely buggy or insecure, use at your own risk. Q3: I have a piece of software that runs only on 64 bit processor. How do I know my current processor is capable of 64 bit processing? A3: Look at /var/run/dmesg.boot, search for the line with "AMD Features". If CPU features flag "LM" is present, the processor supports 64 bit processing. Otherwise, it is likely to be a 32 bit processor. Here is an example of a 64 bit processor: AMD Features=0x28100000 Q4: I just started a service, how do I figure out what TCP/UDP port it is listening on? A4: Use the utility "sockstat". Usage example, "sockstat -Ptcp" "sockstat -Pudp" ** maybe expand a bit more on this Q5: My time is wrong, how can I change the timezone? A5: Use "tzsetup" utility. Q6: I'm troubleshooting a network link issue, how can I generate big size file to test network transfer speed? A6: Use the utility "dd". For example, "dd if=/dev/random of=hugefile.txt bs=1m count=1k" creates a file called hugefile.txt with the size of 1GB. Q7: My server performance seems to be slow. How can I find out what the bottleneck is? A7: Use iostat(1). For example, "iostat -dw2" displays device (-d) statistic refreshing the output every 2 second (-w2). "iostat -Cw2" displaya CPU (-C) statistic. ** also mention sysstat here? Q8: FreeBSD seems to be rejecting connections because of too many TCP connections in the "TIME_WAIT" state. How can I reduce the timeout? ** I can't comment on the answer specifics here. Seems okay though can do with a bit of English editing Q9: I just changed /etc/newsyslog.conf. How can I check if it does what I expect? ... Q10: The output of "ps" is truncated to the end of my terminal width and I can't see the program name. ** I'm not sure I'd make this an FAQ. Is this commonly asked? > By the way, do you guys think is there any chance that this Q&A can > squeeze into the FAQ? I have no objections... Q: My this colleague/friend sits at the computer too much me, how can I punk him? A: Install "games/sl" and then wait for her to mistype "sl" for "ls". -- Eitan Adler