From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 4 01:04:38 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4B0416A475 for ; Sun, 4 Nov 2007 01:04:38 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (mail.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id C295713C48D for ; Sun, 4 Nov 2007 01:04:38 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 45DD35B29 for ; Sat, 3 Nov 2007 17:41:16 -0700 (PDT) To: freebsd-hackers@freebsd.org Date: Sat, 03 Nov 2007 17:41:16 -0700 From: Bakul Shah Message-Id: <20071104004116.45DD35B29@mail.bitblocks.com> Subject: timezone printing in date messed up? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 01:04:38 -0000 $ sh <<'EOF' for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 do date -j -f %s `expr 1194163200 + 600 \* $a` done EOF Sun Nov 4 01:00:00 PDT 2007 Sun Nov 4 01:10:00 PDT 2007 Sun Nov 4 01:20:00 PDT 2007 Sun Nov 4 01:30:00 PST 2007 <--- Sun Nov 4 01:40:00 PST 2007 <--- Sun Nov 4 01:50:00 PST 2007 <--- Sun Nov 4 01:00:00 PDT 2007 <--- Sun Nov 4 01:10:00 PDT 2007 <--- Sun Nov 4 01:20:00 PDT 2007 <--- Sun Nov 4 01:30:00 PST 2007 Sun Nov 4 01:40:00 PST 2007 Sun Nov 4 01:50:00 PST 2007 Sun Nov 4 02:00:00 PST 2007 $ Look at the lines with <---! This is with the latest timezone files. OS X Leopard has the same bug. I assume this is a bug and not due to an act of congress that mandates a flip flop timezone? From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 4 02:48:37 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 452F616A418 for ; Sun, 4 Nov 2007 02:48:37 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 2999B13C48D for ; Sun, 4 Nov 2007 02:48:37 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id lA42c5mZ015029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Nov 2007 19:38:05 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id lA42c52Y015028; Sat, 3 Nov 2007 19:38:05 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA26107; Sat, 3 Nov 07 18:25:50 PST Date: Sat, 03 Nov 2007 19:24:38 -0700 From: perryh@pluto.rain.com To: bakul@bitblocks.com Message-Id: <472d2d66.1gVdjI1MXgbri755%perryh@pluto.rain.com> References: <20071104004116.45DD35B29@mail.bitblocks.com> In-Reply-To: <20071104004116.45DD35B29@mail.bitblocks.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: timezone printing in date messed up? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 02:48:37 -0000 > $ sh <<'EOF' > for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 > do > date -j -f %s `expr 1194163200 + 600 \* $a` > done > EOF > OS X Leopard has the same bug ... How did you test it in Leopard? I tried it in Tiger, intending to contribute another data point, and I got: date: illegal option -- j usage: date [-nu] [-r seconds] [+format] date [[[[[cc]yy]mm]dd]hh]mm[.ss] The Tiger manpage gives no obvious equivalent to FreeBSD's -j From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 4 03:17:59 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE84F16A41A for ; Sun, 4 Nov 2007 03:17:59 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (mail.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id DC49213C4AA for ; Sun, 4 Nov 2007 03:17:59 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 2702A5B29; Sat, 3 Nov 2007 19:57:28 -0700 (PDT) To: perryh@pluto.rain.com In-reply-to: Your message of "Sat, 03 Nov 2007 19:24:38 PDT." <472d2d66.1gVdjI1MXgbri755%perryh@pluto.rain.com> Date: Sat, 03 Nov 2007 19:57:27 -0700 From: Bakul Shah Message-Id: <20071104025728.2702A5B29@mail.bitblocks.com> Cc: freebsd-hackers@freebsd.org Subject: Re: timezone printing in date messed up? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 03:18:00 -0000 > > OS X Leopard has the same bug ... > > How did you test it in Leopard? I tried it in Tiger, intending to > contribute another data point, and I got: Leopard's /bin/date accepts -j. You can try compiling FreeBSD date on Tiger. From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 4 04:38:43 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5603716A47D for ; Sun, 4 Nov 2007 04:38:42 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 9C23313C4A5 for ; Sun, 4 Nov 2007 04:38:39 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id lA44cLMp048765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Nov 2007 21:38:21 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id lA44cLSd048764; Sat, 3 Nov 2007 21:38:21 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA26398; Sat, 3 Nov 07 20:30:41 PST Date: Sat, 03 Nov 2007 21:29:29 -0700 From: perryh@pluto.rain.com To: bakul@bitblocks.com Message-Id: <472d4aa9.3uhaI9p/nWSuFpCL%perryh@pluto.rain.com> References: <20071104025728.2702A5B29@mail.bitblocks.com> In-Reply-To: <20071104025728.2702A5B29@mail.bitblocks.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: timezone printing in date messed up? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 04:38:43 -0000 > > > OS X Leopard has the same bug ... > > > > How did you test it in Leopard? I tried it in Tiger, intending > > to contribute another data point, and I got: > > Leopard's /bin/date accepts -j. You can try compiling FreeBSD > date on Tiger. I had decided against that, since it would propagate the bug if it happened to be in the FreeBSD /bin/date. It turns out the output conversion can be tested using -r: for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 do date -r `expr 1194163200 + 600 \* $a` done and this gives correct results in both Tiger and 6.1: Sun Nov 4 01:00:00 PDT 2007 Sun Nov 4 01:10:00 PDT 2007 Sun Nov 4 01:20:00 PDT 2007 Sun Nov 4 01:30:00 PDT 2007 Sun Nov 4 01:40:00 PDT 2007 Sun Nov 4 01:50:00 PDT 2007 Sun Nov 4 01:00:00 PST 2007 Sun Nov 4 01:10:00 PST 2007 Sun Nov 4 01:20:00 PST 2007 Sun Nov 4 01:30:00 PST 2007 Sun Nov 4 01:40:00 PST 2007 Sun Nov 4 01:50:00 PST 2007 Sun Nov 4 02:00:00 PST 2007 but the original command, run in 6.1, exhibits the bug: for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 do date -j -f %s `expr 1194163200 + 600 \* $a` done Sun Nov 4 01:00:00 PDT 2007 Sun Nov 4 01:10:00 PDT 2007 Sun Nov 4 01:20:00 PDT 2007 Sun Nov 4 01:30:00 PST 2007 Sun Nov 4 01:40:00 PST 2007 Sun Nov 4 01:50:00 PST 2007 Sun Nov 4 01:00:00 PDT 2007 Sun Nov 4 01:10:00 PDT 2007 Sun Nov 4 01:20:00 PDT 2007 Sun Nov 4 01:30:00 PST 2007 Sun Nov 4 01:40:00 PST 2007 Sun Nov 4 01:50:00 PST 2007 Sun Nov 4 02:00:00 PST 2007 Maybe this helps someone familiar with the internals of /bin/date fix it in time for next fall :) From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 4 09:50:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C19316A46B for ; Sun, 4 Nov 2007 09:50:40 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 4808813C4BB for ; Sun, 4 Nov 2007 09:50:40 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1118026wxd for ; Sun, 04 Nov 2007 01:50:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=iZ1QCM9DXDgK7A+SarbVFXKUemE/ePh5cZoTa6WW/bU=; b=dSIb35QVlpBblR7IKig5Ix8fSPLAZcyntG1Whwy35LNDrI4dO1EeI729EbwogJpNNAve53el00conS7H+b/JrZnxxaA79YU1BIFeH7UcuvxRU9lAfDZfFTXBfTgEm1rAl3yVK7MoFKTrqVjVupDlompSwKU+aN39299G332Zc1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=A4efSWUzJAPq9b6Q1M1OTYZ5RIyGZYZg08ZLbQ6KQhZq1HAMe7YrmkmmjVf4CQO58MpfupMS4YrfG5yMIbUSOn+GTHyG9tFJGWoUy6UKBg8OeNYTVrNCL1VjOsEkL2JG5Y6BrDy4BSwanJ773WiFw9nxJa7aosjudE8ZKsj9BQM= Received: by 10.70.89.11 with SMTP id m11mr5920944wxb.1194168104144; Sun, 04 Nov 2007 01:21:44 -0800 (PST) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id p33sm7286088elf.2007.11.04.01.21.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 04 Nov 2007 01:21:43 -0800 (PST) Message-ID: <472D56A1.7070206@gmail.com> Date: Sun, 04 Nov 2007 01:20:33 -0400 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071101) MIME-Version: 1.0 To: freebsd-current@freebsd.org, freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org, "Sean C. Farley" , samira Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: [ANNOUNCEMENT] Wiki for discussing P35/IHC9(R)/SATA issues set up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 09:50:40 -0000 http://www.flosoft-systems.com/wiki/index.php The goals of the wiki are: 1. Clearinghouse for known issues and solutions 2. Cordinate the development of patch set(s) to fix the issues From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 5 00:31:34 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1713116A468 for ; Mon, 5 Nov 2007 00:31:34 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id 2970113C491 for ; Mon, 5 Nov 2007 00:31:32 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A4439.dip.t-dialin.net [84.154.68.57]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id lA500Pqj016146 for ; Mon, 5 Nov 2007 01:00:35 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id lA502KUU005425 for ; Mon, 5 Nov 2007 01:00:19 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id lA502KUe064392 for ; Mon, 5 Nov 2007 01:02:20 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200711050002.lA502KUe064392@fire.js.berklix.net> To: hackers@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich/Muenchen. User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com/~jhs/cv/ Date: Mon, 05 Nov 2007 01:02:20 +0100 Sender: jhs@berklix.org Cc: Subject: make: evaluation of symbolic link with ../ fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 00:31:34 -0000 I found some unexpected behaviour within make on 6.2-RELEASE, Not sure if it's a bug, or proper behaviour. Comment please ? Make seems to be being too clever, evaluating where it think the CWD (current working directory) is, whereas I think it should better let the external per line shell discover for itself. Make fails to realise that because of symbolic links, it is not acceptable to shorten cd /site/home/jhs/pics/.. ; rdist to cd /site/home/jhs ; rdist How I discovered the behaviour: I keep my data split in 2: Some small enough to back up to a USB stick, eg: /usra/home/jhs/._/txt/ & some bulky eg: /usra/jhs/xtra/pics using symbolic links eg /site/home -> /usra/home ~/.HOME -> /site/home/jhs/._ ~/txt -> .HOME/txt ~/pics -> .HOME/pics ~/._/pics -> xtra/pics ~/._/xtra/pics -> /usra/jhs/xtra/pics Some links are more complex than shown, for reasons beyond scope of this posting, but it's all been working fine for 8 years & I've had patches to 2.2.8 onward kernels to increase the allowed traversal count for sym links etc http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sys/sys/param.h.REL=ALL.diff It's been fine while I manually ran: cd ; rdist `hostname -s` cd ~/xtra/LN ; rdist xtra # LN -> /usra/jhs/xtra The make behaviour was noticed when I embeded those lines in a Makefile. Here's some to try yourself: # Warning cant use eg ~/pics/../Distfile bug1: -cd ~/txt/.. && pwd @# /usr/home/jhs -cd ~/txt/.. && /bin/pwd @# /usra/home/jhs -cd ~/txt && cd .. && /bin/pwd @# /usra/home/jhs -cd ~/._/txt/.. && /bin/pwd @# /usra/home/jhs/._ bug2: cd ~/pics && pwd @# /usr/home/jhs/pics cd ~/pics/.. && pwd @# /usr/home/jhs cd ~/pics && /bin/pwd @# /usra/jhs/xtra/pics cd ~/pics/.. && /bin/pwd @# /usra/home/jhs See from results marked @#, make is evaluating eg cd ~/txt/.. ; rdist as if it's equivalent to cd ~; rdist & it's Not equivalent, if I do eg: cd ~/pics/.. ; rdist rdist6 runs using the Distfile in my ~/Distfile, rather than different /usra/jhs/xtra/Distfile. I can cludge round this make behaviour, eg by in Makefile avoiding the ../ in cd ~/xtra/pics/.. && rdist -f /usra/jhs/xtra/Distfile pics but seems make is trying to be too clever, & failing, & make would be better if it did less. (BTW, to avoid distracting answers: I know make invokes a seperate shell per line, that's not the issue, also not the issue is /usr/obj/ or which external interactive shell I use). Julian -- Julian Stacey. Munich Consultant: BSD Unix Linux. http://berklix.com Ihr Rauch=mein allergischer Kopfschmerz. Dump cigs 4 snuff. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 5 08:23:39 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 152BC16A418 for ; Mon, 5 Nov 2007 08:23:39 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-1.dlr.de (smtp-1.dlr.de [195.37.61.185]) by mx1.freebsd.org (Postfix) with ESMTP id AD73713C481 for ; Mon, 5 Nov 2007 08:23:38 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from knop-beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Mon, 5 Nov 2007 08:58:54 +0100 Date: Mon, 5 Nov 2007 08:58:52 +0100 (CET) From: Harti Brandt X-X-Sender: brandt_h@knop-beagle.kn.op.dlr.de To: Julian Stacey In-Reply-To: <200711050002.lA502KUe064392@fire.js.berklix.net> Message-ID: <20071105085259.A39496@knop-beagle.kn.op.dlr.de> References: <200711050002.lA502KUe064392@fire.js.berklix.net> X-OpenPGP-Key: harti@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 05 Nov 2007 07:58:54.0652 (UTC) FILETIME=[B61AEFC0:01C81F81] Cc: hackers@freebsd.org Subject: Re: make: evaluation of symbolic link with ../ fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 08:23:39 -0000 On Mon, 5 Nov 2007, Julian Stacey wrote: JS>I found some unexpected behaviour within make on 6.2-RELEASE, JS>Not sure if it's a bug, or proper behaviour. Comment please ? JS> JS>Make seems to be being too clever, evaluating where it JS>think the CWD (current working directory) is, whereas I think JS>it should better let the external per line shell discover for itself. JS>Make fails to realise that because of symbolic links, it is not JS>acceptable to shorten JS> cd /site/home/jhs/pics/.. ; rdist JS>to JS> cd /site/home/jhs ; rdist JS> JS>How I discovered the behaviour: JS> I keep my data split in 2: JS> Some small enough to back up to a USB stick, eg: JS> /usra/home/jhs/._/txt/ JS> & some bulky eg: JS> /usra/jhs/xtra/pics JS> using symbolic links eg JS> /site/home -> /usra/home JS> ~/.HOME -> /site/home/jhs/._ JS> ~/txt -> .HOME/txt JS> ~/pics -> .HOME/pics JS> ~/._/pics -> xtra/pics JS> ~/._/xtra/pics -> /usra/jhs/xtra/pics JS> JS> Some links are more complex than shown, for reasons JS> beyond scope of this posting, but it's all been working fine JS> for 8 years & I've had patches to 2.2.8 onward JS> kernels to increase the allowed traversal count for sym JS> links etc JS> http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sys/sys/param.h.REL=ALL.diff JS> JS>It's been fine while I manually ran: JS> cd ; rdist `hostname -s` JS> cd ~/xtra/LN ; rdist xtra # LN -> /usra/jhs/xtra JS>The make behaviour was noticed when I embeded those lines in a Makefile. JS> JS>Here's some to try yourself: JS># Warning cant use eg ~/pics/../Distfile JS>bug1: JS> -cd ~/txt/.. && pwd JS> @# /usr/home/jhs JS> -cd ~/txt/.. && /bin/pwd JS> @# /usra/home/jhs JS> -cd ~/txt && cd .. && /bin/pwd JS> @# /usra/home/jhs JS> -cd ~/._/txt/.. && /bin/pwd JS> @# /usra/home/jhs/._ JS>bug2: JS> cd ~/pics && pwd JS> @# /usr/home/jhs/pics JS> cd ~/pics/.. && pwd JS> @# /usr/home/jhs JS> cd ~/pics && /bin/pwd JS> @# /usra/jhs/xtra/pics JS> cd ~/pics/.. && /bin/pwd JS> @# /usra/home/jhs JS> JS>See from results marked @#, make is evaluating eg JS> cd ~/txt/.. ; rdist JS>as if it's equivalent to JS> cd ~; rdist JS>& it's Not equivalent, JS>if I do eg: JS> cd ~/pics/.. ; rdist JS>rdist6 runs using the Distfile in my ~/Distfile, rather than different JS>/usra/jhs/xtra/Distfile. JS> JS>I can cludge round this make behaviour, eg by in Makefile avoiding the ../ in JS> cd ~/xtra/pics/.. && rdist -f /usra/jhs/xtra/Distfile pics JS>but seems make is trying to be too clever, & failing, & make would be better JS>if it did less. JS> JS>(BTW, to avoid distracting answers: I know make invokes a seperate JS>shell per line, that's not the issue, also not the issue is /usr/obj/ JS>or which external interactive shell I use). Are you sure that this is not a problem with /bin/sh? Make always execs a shell if it finds special symbols like ';' in the line. It does not interprete the cd. What shell are you using (I mean in which shell did you do the successful tests above)? Try something like: .SHELL: name="sh" path="/path/to/your/shell" in the Makefile (given that you're not using a c-shell). If it works then the problem is in /bin/sh. harti From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 5 16:07:05 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CA9916A419 for ; Mon, 5 Nov 2007 16:07:05 +0000 (UTC) (envelope-from amir@northseasamt.com) Received: from mail.robocoder.net (cpu2370.adsl.bellglobal.com [207.236.16.93]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7F413C4A5 for ; Mon, 5 Nov 2007 16:07:05 +0000 (UTC) (envelope-from amir@northseasamt.com) Received: from [67.71.250.62] (helo=amir) by mail.robocoder.net with esmtpa (Exim 4.67) (envelope-from ) id JR1IHT-0002AG-BB for freebsd-hackers@freebsd.org; Mon, 05 Nov 2007 10:46:42 -0500 From: "Amir Tahmasebi" To: Date: Mon, 5 Nov 2007 10:46:09 -0800 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: Acgf2zwozvWBAFFPT/yhVG7gUbOflQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Message-Id: <20071105160705.3B7F413C4A5@mx1.freebsd.org> X-Mailman-Approved-At: Mon, 05 Nov 2007 16:38:21 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 16:07:05 -0000 Hello Danny, Do you know if there is any problem with ISCSI initiator when using FreeBSD version 6.x? Thanks Amir Tahmasebi Technical Support NorthSeas AMT e-mail archiving without software http://www.NorthSeasAMT.com 155 Terence Matthews Cres., Unit 1 Ottawa, ON K2M 2A8 Phone: 613-591-1045 x32 From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 03:48:12 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30D7616A419 for ; Tue, 6 Nov 2007 03:48:12 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 01A0B13C491 for ; Tue, 6 Nov 2007 03:48:11 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 1894D61A532; Mon, 5 Nov 2007 19:23:06 -0800 (PST) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21697-07; Mon, 5 Nov 2007 19:23:05 -0800 (PST) Received: from [10.47.1.218] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 20B9361A392; Mon, 5 Nov 2007 19:23:05 -0800 (PST) Message-ID: <472FDE18.9000709@miralink.com> Date: Mon, 05 Nov 2007 19:23:04 -0800 From: Sean Bruno User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Amir Tahmasebi References: <20071105160705.3B7F413C4A5@mx1.freebsd.org> In-Reply-To: <20071105160705.3B7F413C4A5@mx1.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Nov 5 19:23:05 2007 X-DSPAM-Confidence: 0.7829 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 472fde19139241821818100 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Cc: freebsd-hackers@freebsd.org Subject: Re: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 03:48:12 -0000 Amir Tahmasebi wrote: > Hello Danny, > > > > Do you know if there is any problem with ISCSI initiator when using FreeBSD > version 6.x? > > > > Thanks > > I was able to backport the driver from 7 fairly easily. If there is some interest, here is a small diff. Simply copying the iscontrol from RELENG_7 into RELENG_6 and changing the makefiles worked for me. isc_cam.c 399,400d398 < < #if __FreeBSD_version >= 700000 402,404d399 < #else < if(xpt_bus_register(sim, 0/*bus_number*/) != CAM_SUCCESS) < #endif Sean From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 07:42:38 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0276116A418 for ; Tue, 6 Nov 2007 07:42:38 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id C755613C4B3 for ; Tue, 6 Nov 2007 07:42:37 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA67gKM4018380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 5 Nov 2007 23:42:20 -0800 X-Auth-Received: from dzihan.cs.washington.edu (dzihan.cs.washington.edu [128.208.4.96]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA67gIvD017472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 5 Nov 2007 23:42:19 -0800 Message-ID: <47301ADA.3080509@u.washington.edu> Date: Mon, 05 Nov 2007 23:42:18 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (X11/20071003) MIME-Version: 1.0 To: Maslan References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> In-Reply-To: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.5.232001 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='BODY_SIZE_600_699 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: FreeBSD Hackers Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 07:42:38 -0000 Maslan wrote: > Hi, > pkg_add -rK seems not to keep the packages dependencies so as the > package itself. > > i found this: > http://lists.freebsd.org/pipermail/freebsd-bugbusters/2006-August/000178.html > > but no answer since then. > > I don't if this is a bug, or not even implemented feature? > > Thanks alot > > Package dependencies may change, depending on the user settings and port maintainers configuration for the port (i.e. Makefiles). The same sort of applies to packages as well. Or were you referring to just packages instead of ports based package metadata :)? Or maybe a better question is: what are you trying to accomplish? -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 09:44:14 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C357B16A418; Tue, 6 Nov 2007 09:44:14 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 69E4E13C49D; Tue, 6 Nov 2007 09:44:14 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 168C82094; Tue, 6 Nov 2007 10:43:53 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.1/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 7E0DD208D; Tue, 6 Nov 2007 10:43:52 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 44BFE8447F; Tue, 6 Nov 2007 10:43:52 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Aryeh M. Friedman" References: <472D56A1.7070206@gmail.com> Date: Tue, 06 Nov 2007 10:43:52 +0100 In-Reply-To: <472D56A1.7070206@gmail.com> (Aryeh M. Friedman's message of "Sun\, 04 Nov 2007 01\:20\:33 -0400") Message-ID: <86y7dbd7zb.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-questions@freebsd.org, "Sean C. Farley" , samira Subject: Re: [ANNOUNCEMENT] Wiki for discussing P35/IHC9(R)/SATA issues set up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 09:44:14 -0000 "Aryeh M. Friedman" writes: > http://www.flosoft-systems.com/wiki/index.php What's wrong with wiki.freebsd.org? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 10:07:47 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3DE116A420 for ; Tue, 6 Nov 2007 10:07:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.240]) by mx1.freebsd.org (Postfix) with ESMTP id 864CA13C4F0 for ; Tue, 6 Nov 2007 10:07:46 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by ag-out-0708.google.com with SMTP id 35so1025817aga for ; Tue, 06 Nov 2007 02:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=vneGqgSXjawGp6d2I4Ea0pRBYFu1sU7SAhzMWMcdUUE=; b=deBthAIUurXIrOWYO9rkkWB9QeHa8+e7+iN60atF7BlVTgppQNEn62NGK2pm+BUVufmIEveAwlWqWRiaX6BmXlFlBgwtqw5ngbiPVUDHjHziDaiBeI3zqmTYUpM45Gf3pTS0vELT2BLR3d7PPVGBNX3UHW6QjEMJsHw7NK18dXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=U9IJrlbK/s+2iM7zRHsnMQ1qRBu0X6mZ0Vq8jg6i3udCPUF/+VfiTu4CcmETorKhYECXJrQoFr6IS7tWopzSI1YX76clzWZ55Ey90HNo1FsoAbL2LwxA3uuGyC16K5UyE6nxrgIbSMCYD8jBBOaf23+ooCQ2KnDc94g+jrmu3II= Received: by 10.90.100.2 with SMTP id x2mr4105080agb.1194343657146; Tue, 06 Nov 2007 02:07:37 -0800 (PST) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id c29sm8984365elf.2007.11.06.02.07.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 06 Nov 2007 02:07:36 -0800 (PST) Message-ID: <47303CE6.4000102@gmail.com> Date: Tue, 06 Nov 2007 05:07:34 -0500 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071101) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <472D56A1.7070206@gmail.com> <86y7dbd7zb.fsf@ds4.des.no> In-Reply-To: <86y7dbd7zb.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-questions@freebsd.org, "Sean C. Farley" , samira Subject: Re: [ANNOUNCEMENT] Wiki for discussing P35/IHC9(R)/SATA issues set up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 10:07:47 -0000 Dag-Erling Smørgrav wrote: > "Aryeh M. Friedman" writes: > >> http://www.flosoft-systems.com/wiki/index.php >> > > What's wrong with wiki.freebsd.org? 1. Not knowing the addr 2. Needing to set a wiki up on my site for other reasons -- Aryeh M. Friedman Developer, not business, friendly http://www.flosoft-systems.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 15:09:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8C9716A468; Tue, 6 Nov 2007 15:09:08 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 70ED713C481; Tue, 6 Nov 2007 15:09:08 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7:0:8cdb:f3bf:f9eb:51b0] (unknown [IPv6:2001:7b8:3a7:0:8cdb:f3bf:f9eb:51b0]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTP id 0C9923E; Tue, 6 Nov 2007 16:09:07 +0100 (CET) Message-ID: <47308392.1030707@andric.com> Date: Tue, 06 Nov 2007 16:09:06 +0100 From: Dimitry Andric User-Agent: Thunderbird 2.0.0.7pre (Windows/20071029) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <472D56A1.7070206@gmail.com> <86y7dbd7zb.fsf@ds4.des.no> In-Reply-To: <86y7dbd7zb.fsf@ds4.des.no> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "Aryeh M. Friedman" , samira , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-questions@freebsd.org, "Sean C. Farley" Subject: Re: [ANNOUNCEMENT] Wiki for discussing P35/IHC9(R)/SATA issues set up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 15:09:08 -0000 Dag-Erling Sm=C3=B8rgrav wrote: > "Aryeh M. Friedman" writes: >> http://www.flosoft-systems.com/wiki/index.php >=20 > What's wrong with wiki.freebsd.org? To paraphrase: "The nice thing about wiki's is that there are so many to choose from." :) From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 16:17:57 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E170116A421 for ; Tue, 6 Nov 2007 16:17:57 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id 64D9113C4B5 for ; Tue, 6 Nov 2007 16:17:57 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A5915.dip.t-dialin.net [84.154.89.21]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id lA6GHrKL047985; Tue, 6 Nov 2007 17:17:54 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id lA6GKE44020001; Tue, 6 Nov 2007 17:20:14 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id lA6GKE8L090019; Tue, 6 Nov 2007 17:20:14 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200711061620.lA6GKE8L090019@fire.js.berklix.net> To: Harti Brandt In-reply-to: <20071105085259.A39496@knop-beagle.kn.op.dlr.de> References: <200711050002.lA502KUe064392@fire.js.berklix.net> <20071105085259.A39496@knop-beagle.kn.op.dlr.de> Comments: In-reply-to Harti Brandt message dated "Mon, 05 Nov 2007 08:58:52 +0100." Date: Tue, 06 Nov 2007 17:20:14 +0100 From: "Julian H. Stacey" Cc: hackers@freebsd.org Subject: Re: make: evaluation of symbolic link with ../ fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 16:17:58 -0000 Hi Harti cc Hackers, Thanks for answer. > Are you sure that this is not a problem with /bin/sh? Good question ! I think you'r right. I tested several shells with [ Effectively: ln -s /usra/jhs/xtra/pics /usra/home/jhs/pics ] + source `which unsetenv.csh` [ sh, bash, csh, ksh, zsh ] cd /usra/home/jhs ; cd pics/.. ; pwd ; /bin/pwd & got these results: sh: /usra/home/jhs /usra/home/jhs bash: /usra/home/jhs /usra/home/jhs csh: /usra/jhs/xtra /usra/jhs/xtra ksh: /usra/home/jhs /usra/home/jhs zsh: /usr/home/jhs /usra/home/jhs > Make always execs a > shell if it finds special symbols like ';' in the line. It does not > interprete the cd. > > What shell are you using (I mean in which shell did you do the successful > tests above)? Csh > Try something like: > > SHELL: name="sh" path="/path/to/your/shell" > > in the Makefile (given that you're not using a c-shell). If it works then > the problem is in /bin/sh. My Makefile specifies no shell (so I assume it uses /bin/sh) My Makefile did have a .include but I have just hashed it out & I have no other include line that might include specification elsewhere of shell. FreeBSD includes leave shell unchanged: cd /usr/share/mk ; grep -i SHELL * sys.mk:SHELL ?= sh It seems to me that all except csh (including bourne shell !) are broken !! Amazing ! None of them cope properly actually following symbolic links, they all make false premise the /some_path/.. == /some_path ! -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com Ihr Rauch=mein allergischer Kopfschmerz. Dump cigs 4 snuff. Q: Global warming,pollution,water,fish,fuel shortages etc. A: Contraception. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 16:57:50 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C66C016A41A; Tue, 6 Nov 2007 16:57:50 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2A913C4B5; Tue, 6 Nov 2007 16:57:50 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A5915.dip.t-dialin.net [84.154.89.21]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id lA6GvjAM048367; Tue, 6 Nov 2007 17:57:46 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id lA6H06kQ020269; Tue, 6 Nov 2007 18:00:06 +0100 (CET) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id lA6H05Hh090503; Tue, 6 Nov 2007 18:00:05 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200711061700.lA6H05Hh090503@fire.js.berklix.net> In-reply-to: <200711061620.lA6GKE8L090019@fire.js.berklix.net> References: <200711050002.lA502KUe064392@fire.js.berklix.net> <20071105085259.A39496@knop-beagle.kn.op.dlr.de> <200711061620.lA6GKE8L090019@fire.js.berklix.net> Comments: In-reply-to "Julian H. Stacey" message dated "Tue, 06 Nov 2007 17:20:14 +0100." Date: Tue, 06 Nov 2007 18:00:05 +0100 From: "Julian H. Stacey" Cc: hackers@freebsd.org, Harti Brandt Subject: Re: make: evaluation of symbolic link with ../ fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 16:57:50 -0000 > broken !! Amazing ! None of them cope properly actually following > symbolic links, they all make false premise the /some_path/.. == > /some_path ! Sorry, typo, should have been: they all make false premise that /some_path/something/.. == /some_path -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com Ihr Rauch=mein allergischer Kopfschmerz. Dump cigs 4 snuff. Q: Global warming,pollution,water,fish,fuel shortages etc. A: Contraception. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 20:27:15 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6D916A469 for ; Tue, 6 Nov 2007 20:27:15 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by mx1.freebsd.org (Postfix) with ESMTP id 2D26D13C494 for ; Tue, 6 Nov 2007 20:27:15 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so1318542nzf for ; Tue, 06 Nov 2007 12:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=N2rfGcNW4/cPSYh719lH+qebBuJbzT7clyT/ael2skQ=; b=MDAmIiYznO0l4TJTeyZdPyY9gxgdpa6Ii4dMyrsHWcK9/sN31KV6cpYMz6MxaEAkq8uuwb7140iRM4GZI0xoH89fXyZcs9H+UCRBJpCAnk2ef3gofVWN13nZWbpEkGeXGoqXmHB15Hqo4Xq+jkx58jzd4hhMSi4d72ujR8h9bIg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=arV8VBiJzOVJ4p/HGJ2HkSmBBm8q3K9/CMrD3CmAj/MK6EWFK8NSn+t+DavQ6FvRWadnwUZDMfYn5lPyl07x0/LS9EFb7ihdTXXK2TbZg6BsJojw7/HxCwR+DwDklyY5jfINiHmdNC+gdxDB3aV/1Cu6Ry9Pm2FULjwFR9DsQKY= Received: by 10.142.239.11 with SMTP id m11mr9207wfh.1194380833458; Tue, 06 Nov 2007 12:27:13 -0800 (PST) Received: by 10.143.33.14 with HTTP; Tue, 6 Nov 2007 12:27:13 -0800 (PST) Message-ID: <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> Date: Tue, 6 Nov 2007 12:27:13 -0800 From: Maslan To: "Garrett Cooper" In-Reply-To: <47301ADA.3080509@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> <47301ADA.3080509@u.washington.edu> Cc: FreeBSD Hackers Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 20:27:15 -0000 > Package dependencies may change, depending on the user settings and > port maintainers configuration for the port (i.e. Makefiles). The same > sort of applies to packages as well. > Or were you referring to just packages instead of ports based > package metadata :)? > Or maybe a better question is: what are you trying to accomplish? > -Garrett > The problem is that i always try FreeBSD snapshots, and each time i did a fresh install, i found my self in need to install xorg & gnome. so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the package itself only without its dependencies, it would be better for me to keep the packages i use rather than downloading them every time. The ports has no problem with that, since it leaves all the port dependencies in /usr/ports/distfiles but i prefer packages than recompiling every time i install a fresh system something like gnome would eat my day compiling it. -- System Programmer -- I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) -- http://libosdk.berlios.de From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 21:02:34 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C25416A473 for ; Tue, 6 Nov 2007 21:02:34 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 5A91013C4B5 for ; Tue, 6 Nov 2007 21:02:34 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA6L2XYG000917 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Nov 2007 13:02:33 -0800 X-Auth-Received: from [127.0.0.1] (cs213-59.fsmodem.washington.edu [140.142.173.60]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA6L2Q2s011354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 6 Nov 2007 13:02:31 -0800 Message-ID: <4730D640.3080304@u.washington.edu> Date: Tue, 06 Nov 2007 13:01:52 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Maslan References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> <47301ADA.3080509@u.washington.edu> <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> In-Reply-To: <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.6.123334 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: FreeBSD Hackers Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 21:02:34 -0000 Maslan wrote: >> Package dependencies may change, depending on the user settings and >> port maintainers configuration for the port (i.e. Makefiles). The same >> sort of applies to packages as well. >> Or were you referring to just packages instead of ports based >> package metadata :)? >> Or maybe a better question is: what are you trying to accomplish? >> -Garrett >> >> > > The problem is that i always try FreeBSD snapshots, and each time i > did a fresh install, i found my self in need to install xorg & gnome. > so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the > package itself only without its dependencies, it would be better for > me to keep the packages i use rather than downloading them every time. > > The ports has no problem with that, since it leaves all the port > dependencies in /usr/ports/distfiles but i prefer packages than > recompiling every time i install a fresh system something like gnome > would eat my day compiling it. Hmm... that is indeed silly. Let me see if I can fire up a patch for that little issue sometime either next week or the week after to fix that. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 23:31:44 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FB8316A418; Tue, 6 Nov 2007 23:31:44 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (meestal-mk5.stack.nl [IPv6:2001:610:1108:5010::149]) by mx1.freebsd.org (Postfix) with ESMTP id 45B7513C4A6; Tue, 6 Nov 2007 23:31:44 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id C9A8940E05; Wed, 7 Nov 2007 00:31:42 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 1677) id BC0312288B; Wed, 7 Nov 2007 00:31:42 +0100 (CET) Date: Wed, 7 Nov 2007 00:31:42 +0100 From: Jilles Tjoelker To: "Julian H. Stacey" Message-ID: <20071106233142.GA48427@stack.nl> References: <200711050002.lA502KUe064392@fire.js.berklix.net> <20071105085259.A39496@knop-beagle.kn.op.dlr.de> <200711061620.lA6GKE8L090019@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200711061620.lA6GKE8L090019@fire.js.berklix.net> X-Operating-System: FreeBSD 6.2-STABLE i386 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: hackers@freebsd.org, Harti Brandt Subject: Re: make: evaluation of symbolic link with ../ fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 23:31:44 -0000 On Tue, Nov 06, 2007 at 05:20:14PM +0100, Julian H. Stacey wrote: > It seems to me that all except csh (including bourne shell !) are > broken !! Amazing ! None of them cope properly actually following > symbolic links, they all make false premise the /some_path/.. == > /some_path ! This may be a little confusing, but is indeed the defined POSIX behaviour for pwd and cd. $PWD is used to store the "logical" path (potentially containing symlinks) that was cd'ed to. You can avoid the special behaviour with the -P (physical) option. cd -P will not treat symlinks specially and store a pathname not containing symlinks in $PWD; pwd -P will ignore $PWD and show a pathname not containing symlinks. A further thing to note is that csh does not have a pwd builtin (you are supposed to use dirs or prompt substitutions apparently) and that FreeBSD's /bin/pwd has the -P behaviour by default (you need -L to make it use $PWD). -- Jilles Tjoelker From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 01:42:57 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5ADAE16A477; Wed, 7 Nov 2007 01:42:57 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from gentoo.gawr.com (gentoo.gawr.com [66.226.64.49]) by mx1.freebsd.org (Postfix) with ESMTP id 0AA5E13C4C1; Wed, 7 Nov 2007 01:42:56 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: by gentoo.gawr.com (Postfix, from userid 81) id D69835A005B; Tue, 6 Nov 2007 19:00:05 +0000 (UTC) To: Paul Schenkeveld MIME-Version: 1.0 Date: Tue, 6 Nov 2007 19:00:05 +0000 From: Scott Oertel In-Reply-To: <20071011130720.GA3541@psconsult.nl> References: <20071011130720.GA3541@psconsult.nl> Message-ID: <4b7b6c24fc5c32fb2b6711e4437ac199@localhost> X-Sender: freebsd@scottevil.com User-Agent: RoundCube Webmail/0.1-rc1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, rink@freebsd.org Subject: Re: Any progress on FreeBSD/xen port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@scottevil.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 01:42:57 -0000 On Thu, 11 Oct 2007 15:07:21 +0200, Paul Schenkeveld wrote: > Hi, > > For a large project involving virtual servers under Xen I've been asked > to advice on using BSD for some services instead of Linux. > > In the Q2/2007 FreeBSD Status Report work on the FreeBSD/xen port is > mentioned but the last report which came in yesterday does not mention > Xen at all. > > Is someone still working on FreeBSD/xen or has work on the project > stalled? > > Is there anything usable, even beta, around which I can use to get a > feeling of what's involved in running FreeBSD under Xen? > > Thanks. > > Paul Schenkeveld Did you ever get any info on this subject? I'm very interested in the status of this project as well. Thanks, Scott Oertel From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 01:58:20 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 493AC16A417 for ; Wed, 7 Nov 2007 01:58:20 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by mx1.freebsd.org (Postfix) with ESMTP id F141413C481 for ; Wed, 7 Nov 2007 01:58:19 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so1378739nzf for ; Tue, 06 Nov 2007 17:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lL4uW4unrWF9v4K/EiGdnT32zxDgFl3Qs8PSiSnGB58=; b=BntqeJWxdyMDxl8vvpm28y+HxccRj++3sO0LXIYQvxKSWQ+XdQjkI3aKuEDpvoaoy2iRHxH1AlEmRxVn0IzGhd/Yf4u9cgfcG6/uxZ/ZwyKkT4lBCJNoHnMN/MyEqhSfMTGtnigxA02Ym7KMI2rQMtzvXlavkal6hM2FOV3O+BI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A9jZU6HLha8RVJxYSWsvcTYGcmkMXkp3P+7QKUGmYsnOqAJ6z6VAYnyjdqniOTiwlwdrRN4gwe2EZGNtk3AXJ7h+qHyyuZVsE5q9kjF9+vLREIN91zUXl/EHpT5GuTphoHmj0ZETLBvIc+FJzN78nsGzyv87xMofCcOGmRUYsDU= Received: by 10.142.44.11 with SMTP id r11mr1902859wfr.1194400690944; Tue, 06 Nov 2007 17:58:10 -0800 (PST) Received: by 10.143.33.14 with HTTP; Tue, 6 Nov 2007 17:58:10 -0800 (PST) Message-ID: <319cceca0711061758m786918c1y2594e7a11e91d873@mail.gmail.com> Date: Tue, 6 Nov 2007 17:58:10 -0800 From: Maslan To: "Garrett Cooper" In-Reply-To: <4730D640.3080304@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> <47301ADA.3080509@u.washington.edu> <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> <4730D640.3080304@u.washington.edu> Cc: FreeBSD Hackers Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 01:58:20 -0000 That would be great. I'll wait for the patch On Nov 6, 2007 1:01 PM, Garrett Cooper wrote: > Maslan wrote: > >> Package dependencies may change, depending on the user settings and > >> port maintainers configuration for the port (i.e. Makefiles). The same > >> sort of applies to packages as well. > >> Or were you referring to just packages instead of ports based > >> package metadata :)? > >> Or maybe a better question is: what are you trying to accomplish? > >> -Garrett > >> > >> > > > > The problem is that i always try FreeBSD snapshots, and each time i > > did a fresh install, i found my self in need to install xorg & gnome. > > so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the > > package itself only without its dependencies, it would be better for > > me to keep the packages i use rather than downloading them every time. > > > > The ports has no problem with that, since it leaves all the port > > dependencies in /usr/ports/distfiles but i prefer packages than > > recompiling every time i install a fresh system something like gnome > > would eat my day compiling it. > > Hmm... that is indeed silly. > > Let me see if I can fire up a patch for that little issue sometime > either next week or the week after to fix that. > > -Garrett > -- System Programmer -- I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) -- http://libosdk.berlios.de From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 02:19:31 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA18D16A417 for ; Wed, 7 Nov 2007 02:19:31 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id A1E0313C481 for ; Wed, 7 Nov 2007 02:19:31 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2756577waf for ; Tue, 06 Nov 2007 18:19:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nGjs+XhzNFDG0UScD7vJCvEBuF32inSIJWScgfPyGdA=; b=fBaQnA705wUejgJWr/aFoPIXnB0Zj0OGysLkGTV5I1rKOXAGvrUp4MH1t81P4N1pO/CMpAW2qvBwj0oXizcPYyjTvbmCWSvxpjsH1227SrRVsPljwele9G2NIwBQ8pvBUK1IjT3dYDHjef33c6XTOE5WcCkiLyFYM8n9w8+Q2Sw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EV+k8FD79KFZDtwwN6dHx7g9/vpQX0GxZ19Q7k1+TGd4YjcrwXFpf3Paf1rUttMgYlbELa0zNiDhvLhiKiyXh9daA8rTfZ2hih3k9tUQmuC3VOYKeIlf7MT3kgOZXkVOqaN6vDYNxwOFnL8PzwjG3+zxM1G/T0IEP8BytNRDzRo= Received: by 10.114.57.1 with SMTP id f1mr224325waa.1194400452502; Tue, 06 Nov 2007 17:54:12 -0800 (PST) Received: by 10.114.13.15 with HTTP; Tue, 6 Nov 2007 17:54:12 -0800 (PST) Message-ID: Date: Tue, 6 Nov 2007 17:54:12 -0800 From: "Kip Macy" To: freebsd@scottevil.com In-Reply-To: <4b7b6c24fc5c32fb2b6711e4437ac199@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071011130720.GA3541@psconsult.nl> <4b7b6c24fc5c32fb2b6711e4437ac199@localhost> Cc: freebsd-hackers@freebsd.org, rink@freebsd.org Subject: Re: Any progress on FreeBSD/xen port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 02:19:31 -0000 On 11/6/07, Scott Oertel wrote: > > > > On Thu, 11 Oct 2007 15:07:21 +0200, Paul Schenkeveld > wrote: > > Hi, > > > > For a large project involving virtual servers under Xen I've been asked > > to advice on using BSD for some services instead of Linux. > > > > In the Q2/2007 FreeBSD Status Report work on the FreeBSD/xen port is > > mentioned but the last report which came in yesterday does not mention > > Xen at all. > > > > Is someone still working on FreeBSD/xen or has work on the project > > stalled? > > > > Is there anything usable, even beta, around which I can use to get a > > feeling of what's involved in running FreeBSD under Xen? > > > > Thanks. > > > > Paul Schenkeveld > > > Did you ever get any info on this subject? I'm very interested in the > status of this project as well. I've committed to importing i386/PAE (UP) domU support for Xen by the end of the year. -Kip From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 02:53:01 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5E2916A469 for ; Wed, 7 Nov 2007 02:53:01 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id 8041513C491 for ; Wed, 7 Nov 2007 02:53:01 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA72qvjM023824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Nov 2007 18:52:57 -0800 X-Auth-Received: from dzihan.cs.washington.edu (dzihan.cs.washington.edu [128.208.4.96]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA72qur2027550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 6 Nov 2007 18:52:57 -0800 Message-ID: <47312888.1070400@u.washington.edu> Date: Tue, 06 Nov 2007 18:52:56 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (X11/20071003) MIME-Version: 1.0 To: Maslan , FreeBSD Hackers References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> <47301ADA.3080509@u.washington.edu> <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> <4730D640.3080304@u.washington.edu> <319cceca0711061758m786918c1y2594e7a11e91d873@mail.gmail.com> In-Reply-To: <319cceca0711061758m786918c1y2594e7a11e91d873@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.6.182909 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 02:53:01 -0000 Maslan wrote: > That would be great. > I'll wait for the patch > > > On Nov 6, 2007 1:01 PM, Garrett Cooper wrote: > >> Maslan wrote: >> >>>> Package dependencies may change, depending on the user settings and >>>> port maintainers configuration for the port (i.e. Makefiles). The same >>>> sort of applies to packages as well. >>>> Or were you referring to just packages instead of ports based >>>> package metadata :)? >>>> Or maybe a better question is: what are you trying to accomplish? >>>> -Garrett >>>> >>>> >>>> >>> The problem is that i always try FreeBSD snapshots, and each time i >>> did a fresh install, i found my self in need to install xorg & gnome. >>> so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the >>> package itself only without its dependencies, it would be better for >>> me to keep the packages i use rather than downloading them every time. >>> >>> The ports has no problem with that, since it leaves all the port >>> dependencies in /usr/ports/distfiles but i prefer packages than >>> recompiling every time i install a fresh system something like gnome >>> would eat my day compiling it. >>> >> Hmm... that is indeed silly. >> >> Let me see if I can fire up a patch for that little issue sometime >> either next week or the week after to fix that. >> >> -Garrett That's assuming (IIRC) pkg_add doesn't invoke libfetch related APIs directly and extract straight to the command line. It may take a bit more work than I initially think, but a patch *should* be trivial to create. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 03:43:02 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DB5016A419 for ; Wed, 7 Nov 2007 03:43:02 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: from outgoing15.3gate.net (outgoing15.3gate.net [202.127.97.15]) by mx1.freebsd.org (Postfix) with SMTP id 6344713C4B7 for ; Wed, 7 Nov 2007 03:43:00 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: (qmail 85790 invoked by uid 1011); 7 Nov 2007 03:42:25 -0000 Received: from 202.127.97.100 by mailspool.3gate.net (envelope-from , uid 1009) with qmail-scanner-1.25-st-qms (clamdscan: 0.88/1351. spamassassin: 3.0.4. perlscan: 1.25-st-qms. Clear:RC:1(202.127.97.100):SA:0(-3.9/5.0):. Processed in 5.070669 secs); 07 Nov 2007 03:42:25 -0000 X-Spam-Status: No, hits=-3.9 required=5.0 X-Spam-Report: SA TESTS -3.3 ALL_TRUSTED Did not pass through any untrusted hosts -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 2.0 AWL AWL: From: address is in the auto white-list X-Antivirus-3GNet-Spool-Mail-From: binto@triplegate.net.id via mailspool.3gate.net X-Antivirus-3GNet-Spool: 1.25-st-qms (Clear:RC:1(202.127.97.100):SA:0(-3.9/5.0):. Processed in 5.070669 secs Process 85781) Received: from smtp.triplegate.net.id (HELO lb1.3gate.net) (202.127.97.100) by outgoing15.3gate.net with SMTP; 7 Nov 2007 03:42:20 -0000 Received: from webmail.triplegate.net.id (unknown [202.127.97.10]) by lb1.3gate.net (Postfix) with ESMTP id 48EFD21103C for ; Wed, 7 Nov 2007 10:40:15 +0700 (WIT) Received: from 202.127.98.144 (SquirrelMail authenticated user binto@triplegate.net.id) by webmail.triplegate.net.id with HTTP; Wed, 7 Nov 2007 10:47:56 +0700 (WIT) Message-ID: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> Date: Wed, 7 Nov 2007 10:47:56 +0700 (WIT) From: "binto" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 03:43:02 -0000 I just wanna know, how to reduce the number of page faults to upgrade program or OS performance? is there any parameters that i must set if i reduce the number of page fault? thx From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 04:55:33 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3D7F16A41B for ; Wed, 7 Nov 2007 04:55:33 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 8DAC713C494 for ; Wed, 7 Nov 2007 04:55:33 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id lA74ogkd070393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 6 Nov 2007 20:50:42 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id lA74ofd5070392; Tue, 6 Nov 2007 20:50:41 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA05825; Tue, 6 Nov 07 20:44:31 PST Date: Tue, 06 Nov 2007 20:43:14 -0800 From: perryh@pluto.rain.com To: binto@triplegate.net.id Message-Id: <47314262.mjHsuOhoRAZyEdhO%perryh@pluto.rain.com> References: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> In-Reply-To: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 04:55:33 -0000 > how to reduce the number of page faults to upgrade program > or OS performance? Install more memory. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 06:47:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADC2216A419 for ; Wed, 7 Nov 2007 06:47:50 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id 890A113C4E5 for ; Wed, 7 Nov 2007 06:47:50 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA76lXIP029480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Nov 2007 22:47:33 -0800 X-Auth-Received: from [127.0.0.1] (node49.244.100.208.1dial.com [208.100.244.49] (may be forged)) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA76lSXM032495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 6 Nov 2007 22:47:32 -0800 Message-ID: <47315F5E.2090005@u.washington.edu> Date: Tue, 06 Nov 2007 22:46:54 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> <47314262.mjHsuOhoRAZyEdhO%perryh@pluto.rain.com> In-Reply-To: <47314262.mjHsuOhoRAZyEdhO%perryh@pluto.rain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.6.222716 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='BODY_SIZE_400_499 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: binto@triplegate.net.id, freebsd-hackers@freebsd.org Subject: Re: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 06:47:50 -0000 perryh@pluto.rain.com wrote: >> how to reduce the number of page faults to upgrade program >> or OS performance? >> > > Install more memory. 1. Reduce the number of processes on the machine, in particular the high-memory usage ones. 2. Adapt your programming to suit the situation by using less memory-requisite data types and structures. 3. Find the memory leak in someone's program and fix it. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 15:56:28 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12C8616A46D for ; Wed, 7 Nov 2007 15:56:28 +0000 (UTC) (envelope-from juri_mian@yahoo.com) Received: from n10.bullet.re3.yahoo.com (n10.bullet.re3.yahoo.com [68.142.237.123]) by mx1.freebsd.org (Postfix) with SMTP id B6A1813C4BD for ; Wed, 7 Nov 2007 15:56:27 +0000 (UTC) (envelope-from juri_mian@yahoo.com) Received: from [68.142.230.28] by n10.bullet.re3.yahoo.com with NNFMP; 07 Nov 2007 15:42:43 -0000 Received: from [69.147.75.183] by t1.bullet.re2.yahoo.com with NNFMP; 07 Nov 2007 15:42:43 -0000 Received: from [127.0.0.1] by omp104.mail.re1.yahoo.com with NNFMP; 07 Nov 2007 15:42:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 541836.64956.bm@omp104.mail.re1.yahoo.com Received: (qmail 91206 invoked by uid 60001); 7 Nov 2007 15:42:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=tdcOzp9r3+dLm8rjKYlz6GkbeSc2wpbERTfEPBY1I19MySbhvd9VmlYln7z4W7l878/BSZVk8jQtFdZbwIbi1z5WiJbaCGSBtfeN1qv10R2zOfVW4xpmUYW+7KpSBiiawAIKN9fTFbDkcJPcMdgSmcvrU/EwYbMCq956k/VpcwA=; X-YMail-OSG: GBKNpOMVM1lTaiV.Ev19AfW1HKTdjO17DBeEi.V9Q0NolXsNyQVjlZa9iskS73ZwoFdUwVMUEg5B7ejFRCQK9FS1eU5HKWaGWbvmxrww6W3_ Received: from [71.63.232.32] by web45613.mail.sp1.yahoo.com via HTTP; Wed, 07 Nov 2007 07:42:42 PST Date: Wed, 7 Nov 2007 07:42:42 -0800 (PST) From: Juri Mianovich To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <748369.88266.qm@web45613.mail.sp1.yahoo.com> X-Mailman-Approved-At: Wed, 07 Nov 2007 16:16:10 +0000 Subject: where did the peak mbuf stat go ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 15:56:28 -0000 FreeBSD 4.x, netstat -m: 70/4336/26624 mbufs in use (current/peak/max) Never any doubt - if peak=max, I hit the limit. Super useful. Furthermore, by watching the peak I can see when I am getting close, rather than waiting for denied requests to pile up after the fact. FreeBSD 6.x, netstat -m: 524/826/1350 mbufs in use (current/cache/total) So ... how do I see peak mbufs in FreeBSD 6.x ? Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 18:12:35 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5205C16A46D for ; Wed, 7 Nov 2007 18:12:35 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 17B1F13C4BA for ; Wed, 7 Nov 2007 18:12:34 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.144.87] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1Ipp8o-000JLV-9y; Wed, 07 Nov 2007 17:56:38 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Ipp8n-00055y-VZ; Wed, 07 Nov 2007 17:56:37 +0000 Date: Wed, 7 Nov 2007 17:56:37 +0000 From: Thomas Hurst To: perryh@pluto.rain.com Message-ID: <20071107175637.GA15088@voi.aagh.net> Mail-Followup-To: perryh@pluto.rain.com, binto@triplegate.net.id, freebsd-hackers@freebsd.org References: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> <47314262.mjHsuOhoRAZyEdhO%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47314262.mjHsuOhoRAZyEdhO%perryh@pluto.rain.com> Organization: Not much. User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Thomas Hurst Cc: binto@triplegate.net.id, freebsd-hackers@freebsd.org Subject: Re: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 18:12:35 -0000 * perryh@pluto.rain.com (perryh@pluto.rain.com) wrote: > > how to reduce the number of page faults to upgrade program or OS > > performance? > > Install more memory. I can cause paging on my hugely overendowed RELENG_6 system (8GB, ~2GB active) just by reading some big files and churning through cache. It's nice seeing syslogd go into pfault while there's 5G of inactive memory and 300MB cache just waiting to be recycled. There would seem to be some room for tuning on at least some systems. -- Thomas 'Freaky' Hurst http://hur.st/ From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 18:51:05 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD0C116A419 for ; Wed, 7 Nov 2007 18:51:05 +0000 (UTC) (envelope-from dclements@gmail.com) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.189]) by mx1.freebsd.org (Postfix) with ESMTP id 81F8413C4BF for ; Wed, 7 Nov 2007 18:51:05 +0000 (UTC) (envelope-from dclements@gmail.com) Received: by rn-out-0102.google.com with SMTP id s42so1032447rnb for ; Wed, 07 Nov 2007 10:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=P1Sl6tadGzoe6spqW63YD0RCzsJzrXqPwXvQEv+kk2A=; b=FavRajv6B6r3fQdwjm1QBusm/sFZ+e8sime0peh++YCnB4aEozxb5g2EV+tYZOefYDTsvrX2bTI1XZUo47sug3mhLmQEDT0aWaSq0guUB179wEprwk75rkZPU11Eo9cbWpnIfbi5anSEZ+A5Ld6+e1RZMaqwvUAYR2OfYxrNiD8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FupEzorVHHdxbn96XzlizHI55mrxKaVAxBlFO9lmmg9trQLcSkcOUOlQa2epJq+B6ErbchNKBgghe6YCGc4E2GsFaQo1htPXetFgyPszJvs4XUpmkJg0eBwk/gzZ8QddGsplBchvHpUDjK0YFJTxHOwkoo2UVco9+hS721k6k4U= Received: by 10.142.225.11 with SMTP id x11mr1776363wfg.1194459794762; Wed, 07 Nov 2007 10:23:14 -0800 (PST) Received: by 10.142.81.19 with HTTP; Wed, 7 Nov 2007 10:23:14 -0800 (PST) Message-ID: <54da514e0711071023g565cf98ay54ff2bb9cfeeb38a@mail.gmail.com> Date: Wed, 7 Nov 2007 10:23:14 -0800 From: "Doug Clements" To: freebsd-hackers@freebsd.org In-Reply-To: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> MIME-Version: 1.0 References: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 18:51:05 -0000 On 11/6/07, binto wrote: > > I just wanna know, > how to reduce the number of page faults to upgrade program or OS > performance? > is there any parameters that i must set if i reduce the number of page > fault? Don't forget that some amount of page faults are normal consequences of using a machine with virtual memory. Page faults alone are not an indicator that you're out of memory or suffering in any way, they just mean that something was requested in vm that wasn't actually in ram, and needed to be loaded. Ask 'swapinfo' or 'top' to see if you might possibly benefit from more ram by reducing paging. --Doug From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 19:45:43 2007 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2058816A41A for ; Wed, 7 Nov 2007 19:45:43 +0000 (UTC) (envelope-from atanas.gendov@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id EC0D813C4BF for ; Wed, 7 Nov 2007 19:45:42 +0000 (UTC) (envelope-from atanas.gendov@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1914287rvb for ; Wed, 07 Nov 2007 11:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=zdfxuKd90lEfarae60taPdHG9Bud2wgrn+SFiDGYhig=; b=QhSLLegoSji9EQ7vAD+cPGvD8I9afBWEVELjjhIwgjFqlrpMNO/V4MPveVWS2W01k1ywojWKK3381jMXqAtZcInOA324NOlV7t+5dLisZhwEb2FmZIxlUvRK0ZtojstlNwBZCKhYTaA7kwRlNGpuJSBEfY584TlX0lzkbwyM3wM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hZtz10fFuESVN11EU0wT1lKhUIoi7eJxJgrjzSBbKpeVaLkbW+USzhgVvENaOYDkoZbpa98y0O9fMy8cdnxa1bvVN66brq0JcIlakk4eaDQRL7mh7r2QdAIWMT/k/Sv/FTtOiaTgHonElFr+nv6dd/pOSBGHILCU1ti763autRQ= Received: by 10.141.49.6 with SMTP id b6mr3743242rvk.1194463238391; Wed, 07 Nov 2007 11:20:38 -0800 (PST) Received: by 10.140.169.20 with HTTP; Wed, 7 Nov 2007 11:20:38 -0800 (PST) Message-ID: <36e46ac80711071120x49d5182y8976f4e85d4684c8@mail.gmail.com> Date: Wed, 7 Nov 2007 21:20:38 +0200 From: "Atanas Gendov" To: hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Wed, 07 Nov 2007 20:13:38 +0000 Cc: Subject: FreeBSD 6.2 Crash X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 19:45:43 -0000 Hi all FreeBSD Hackers! :) My FreeBSD auto reboot itself and I got this report by kgdb, but actually I'm not a programmer. I don't know how to debug this error. Could someone helps with fixing? Thanx in advanced! FreeBSD xxxx.com 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Tue Oct 30 22:54:18 EET 2007 atanas@xxxxxxxxxxxx:/usr/obj/usr/src/sys/THURISAZ i386 kgdb kernel.debug /var/crash/vmcore.0 kgdb: kvm_nlist(_stopped_cpus): kgdb: kvm_nlist(_stoppcbs): [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: Fatal double fault: eip = 0xc0489471 esp = 0xd568af78 ebp = 0xd568b094 panic: double fault Uptime: 1d2h58m25s Dumping 511 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 511MB (130800 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) where #0 doadump () at pcpu.h:165 #1 0xc06abe26 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc06ac0bc in panic (fmt=0xc095387e "double fault") at /usr/src/sys/kern/kern_shutdown.c:565 #3 0xc08c2bb2 in dblfault_handler () at /usr/src/sys/i386/i386/trap.c:866 #4 0x00000000 in ?? () (kgdb) up 0 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) backtrace #0 doadump () at pcpu.h:165 #1 0xc06abe26 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc06ac0bc in panic (fmt=0xc095387e "double fault") at /usr/src/sys/kern/kern_shutdown.c:565 #3 0xc08c2bb2 in dblfault_handler () at /usr/src/sys/i386/i386/trap.c:866 #4 0x00000000 in ?? () (kgdb) From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 20:22:22 2007 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3161216A417 for ; Wed, 7 Nov 2007 20:22:22 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (pointyhat.freebsd.org [IPv6:2001:4f8:fff6::2b]) by mx1.freebsd.org (Postfix) with ESMTP id 63D3D13C4A8; Wed, 7 Nov 2007 20:22:21 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47321E7B.2090101@FreeBSD.org> Date: Wed, 07 Nov 2007 21:22:19 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Atanas Gendov References: <36e46ac80711071120x49d5182y8976f4e85d4684c8@mail.gmail.com> In-Reply-To: <36e46ac80711071120x49d5182y8976f4e85d4684c8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@FreeBSD.org Subject: Re: FreeBSD 6.2 Crash X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 20:22:22 -0000 Atanas Gendov wrote: > Hi all FreeBSD Hackers! :) > My FreeBSD auto reboot itself and I got this report by kgdb, but > actually I'm not a programmer. I don't know how to debug this error. > Could someone helps with fixing? > Thanx in advanced! > > FreeBSD xxxx.com 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Tue Oct 30 > 22:54:18 EET 2007 > atanas@xxxxxxxxxxxx:/usr/obj/usr/src/sys/THURISAZ i386 > > kgdb kernel.debug /var/crash/vmcore.0 > kgdb: kvm_nlist(_stopped_cpus): > kgdb: kvm_nlist(_stoppcbs): > [GDB will not be able to debug user-mode threads: > /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd". > > Unread portion of the kernel message buffer: > > Fatal double fault: > eip = 0xc0489471 > esp = 0xd568af78 > ebp = 0xd568b094 > panic: double fault Do you use the nve driver? It has a known bug that causes a double fault. Unfortunately kgdb doesn't know how to properly decode double fault backtraces, so there isn't any more information about the cause. If you are not using nve, can you try to reproduce and then see what DDB says about the backtrace? Kris From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 7 20:29:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D893716A474 for ; Wed, 7 Nov 2007 20:29:50 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id B9CB913C4C2 for ; Wed, 7 Nov 2007 20:29:50 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 895B05C34; Wed, 7 Nov 2007 15:10:38 -0500 (EST) Date: Wed, 7 Nov 2007 15:10:38 -0500 From: Wesley Shields To: Maslan Message-ID: <20071107201038.GZ21994@atarininja.org> References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> <47301ADA.3080509@u.washington.edu> <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: FreeBSD Hackers , Garrett Cooper Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 20:29:50 -0000 On Tue, Nov 06, 2007 at 12:27:13PM -0800, Maslan wrote: > > Package dependencies may change, depending on the user settings and > > port maintainers configuration for the port (i.e. Makefiles). The same > > sort of applies to packages as well. > > Or were you referring to just packages instead of ports based > > package metadata :)? > > Or maybe a better question is: what are you trying to accomplish? > > -Garrett > > > > The problem is that i always try FreeBSD snapshots, and each time i > did a fresh install, i found my self in need to install xorg & gnome. > so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the > package itself only without its dependencies, it would be better for > me to keep the packages i use rather than downloading them every time. > > The ports has no problem with that, since it leaves all the port > dependencies in /usr/ports/distfiles but i prefer packages than > recompiling every time i install a fresh system something like gnome > would eat my day compiling it. You could always use pkg_fetch -fR (from portupgrade) to fetch them all first, and then pkg_add them after. Of course, I think fixing pkg_add to keep the dependencies also is a better solution. -- WXS From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 03:20:54 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CC3916A420 for ; Thu, 8 Nov 2007 03:20:54 +0000 (UTC) (envelope-from dexterclarke@Safe-mail.net) Received: from tapuz.safe-mail.net (tapuz.safe-mail.net [213.8.161.230]) by mx1.freebsd.org (Postfix) with ESMTP id B44E513C4B2 for ; Thu, 8 Nov 2007 03:20:53 +0000 (UTC) (envelope-from dexterclarke@Safe-mail.net) Received: by tapuz.safe-mail.net with Safe-mail (Exim 4.52) id 1IpxwT-0002ma-3p; Wed, 07 Nov 2007 22:20:29 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=N1-0105; d=Safe-mail.net; b=zSMTtO8ZtvERLJbsjmq2q0nxjvx2IdaSO2HrzojvzAw/HP+87yur4EY7xWGH5adB 65QXRqZjvbRdEX6kLxqNa+i6ZqqXnHx8U0vPEdCprqvCURO9pPCagr7rR2Do7HDj HBATBuuYw5vOmfW1p281xfB/3KKZFmPbQaYDPseZfBg=; Received: from pc ([81.86.41.187]) by Safe-mail.net with https Date: Wed, 7 Nov 2007 22:20:28 -0500 From: dexterclarke@Safe-mail.net To: freebsd-hackers@freebsd.org X-SMType: Regular X-SMRef: N1-_PYrd0nIeB Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SMSignature: oEqF6kpRn7ckCrL5q+G+kitXdHsTQ/V54fnE13kkIywzCZHAqqbYDjlo9t7aGaoP 6pMEmir1TLI4B61d2HznEb+TIHXFP+hUcCoeIulDgQhPiKKyh5OzPYdCj02cmJOG FANvKHlA+mp3fjkZB8ZQO7K4n541Oc4iNRsiVSxHldo= Cc: trustedbsd-discuss@freebsd.org Subject: A TrustedBSD "voluntary sandbox" policy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 03:20:54 -0000 I'm considering developing a policy/module for TrustedBSD loosely based on the systrace concept - A process loads a policy and then executes another program in a sandbox with fine grained control over what that program can do. I'm aiming for a much simpler implementation, however. No interaction. No privilege elevation (only restriction). No system call rewriting, only access control. The interface will look something like this: (cat < Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25C5B16A417 for ; Thu, 8 Nov 2007 08:14:23 +0000 (UTC) (envelope-from aschkolnik@gmail.com) Received: from mtaout2.barak.net.il (mtaout2.barak.net.il [212.150.49.172]) by mx1.freebsd.org (Postfix) with ESMTP id C098113C4BB for ; Thu, 8 Nov 2007 08:14:22 +0000 (UTC) (envelope-from aschkolnik@gmail.com) Received: from pcaharon.il.sandvine.com ([212.235.26.189]) by mtaout2.barak.net.il (Sun Java System Messaging Server 6.2-7.04 (built Aug 17 2006)) with ESMTPA id <0JR600MJ5G5CPC31@mtaout2.barak.net.il> for freebsd-hackers@freebsd.org; Thu, 08 Nov 2007 09:44:00 +0200 (IST) Date: Thu, 08 Nov 2007 09:44:00 +0200 From: Aharon Schkolnik To: freebsd-hackers@freebsd.org Message-id: <200711080944.00335.aschkolnik@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-disposition: inline User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Subject: pgk_add segmentation fault X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 08:14:23 -0000 Hi ! pkg_add is crashing with a segmentation fault: pkg_add -v mysql-client-5.1.22.tbz Requested space: 3809856 bytes, free space: 128323438592 bytes in /var/tmp/instmp.ND8UBU extract: Package name is mysql-client-5.1.22 extract: CWD to /usr/local extract: /usr/local/man/man1/mysql_config.1.gz extract: /usr/local/man/man1/mysql.1.gz extract: /usr/local/man/man1/mysqladmin.1.gz extract: /usr/local/man/man1/mysqlbinlog.1.gz extract: /usr/local/man/man1/mysqlcheck.1.gz extract: /usr/local/man/man1/mysqldump.1.gz extract: /usr/local/man/man1/mysqlimport.1.gz extract: /usr/local/man/man1/mysqlshow.1.gz extract: /usr/local/man/man8/mysqlmanager.8.gz . . . extract: /usr/local/lib/mysql/libmysqlclient_r.la extract: /usr/local/lib/mysql/libmysqlclient_r.so extract: /usr/local/lib/mysql/libmysqlclient_r.so.16 extract: /usr/local/share/aclocal/mysql.m4 extract: /usr/local/share/mysql/mysql_fix_privilege_tables.sql extract: execute '/sbin/ldconfig -m /usr/local/lib/mysql' extract: CWD to (null) Segmentation fault (core dumped) # uname -a FreeBSD CMXHost 5.30.0170 FreeBSD 5.30.0170 #0: Thu Apr 13 14:05:14 UTC 2006 i386 7.05.0014 Any ideas ? TIA -- The day is short, and the work is great, | Aharon Schkolnik and the laborers are lazy, and the reward | is great, and the Master of the house is | aschkolnik@gmail.com impatient. - Ethics Of The Fathers Ch. 2 | 054 8422076 From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 14:34:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DFE216A46B; Thu, 8 Nov 2007 14:34:40 +0000 (UTC) (envelope-from andrea@webcom.it) Received: from www.webcom.it (gen053.n002.c03.escapebox.net [213.73.82.53]) by mx1.freebsd.org (Postfix) with ESMTP id 33EC813C4E1; Thu, 8 Nov 2007 14:34:40 +0000 (UTC) (envelope-from andrea@webcom.it) Received: from andrea by webcom.it with local (Exim 3.36 #1) id 1Iq81b-000A6S-00; Thu, 08 Nov 2007 14:06:27 +0000 Date: Thu, 8 Nov 2007 14:06:27 +0000 From: Andrea Campi To: dexterclarke@Safe-mail.net Message-ID: <20071108140627.GI82877@webcom.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: Andrea Campi Cc: freebsd-hackers@freebsd.org, trustedbsd-discuss@freebsd.org Subject: Re: A TrustedBSD "voluntary sandbox" policy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 14:34:40 -0000 On Wed, Nov 07, 2007 at 10:20:28PM -0500, dexterclarke@Safe-mail.net wrote: > I'm considering developing a policy/module for TrustedBSD loosely based > on the systrace concept - A process loads a policy and then executes > another program in a sandbox with fine grained control over what that > program can do. ... > Please note that the 'policy' given on the command line is purely for > the sake of example, no syntax or semantics have been decided upon. Can't comment on the implementation or wider issues, but if you pursue this, please have a look at how MacOS Leopard does it (Seatbelt). Would be nice to converge on both syntax (a Schema dialect) and tools names / command line args--or if converging is not possible, at least know where and why and make a conscious decision. Bye, Andrea -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 16:54:14 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A54316A418; Thu, 8 Nov 2007 16:54:14 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from gentoo.gawr.com (gentoo.gawr.com [66.226.64.49]) by mx1.freebsd.org (Postfix) with ESMTP id 2DE2013C491; Thu, 8 Nov 2007 16:54:14 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from [10.34.1.89] (unknown [64.126.14.3]) (Authenticated sender: freebsd@scottevil.com) by gentoo.gawr.com (Postfix) with ESMTP id BC42F5A005B; Thu, 8 Nov 2007 10:29:51 +0000 (UTC) Message-ID: <47333F2D.8010708@scottevil.com> Date: Thu, 08 Nov 2007 10:54:05 -0600 From: Scott Oertel User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: Kip Macy References: <20071011130720.GA3541@psconsult.nl> <4b7b6c24fc5c32fb2b6711e4437ac199@localhost> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, rink@freebsd.org Subject: Re: Any progress on FreeBSD/xen port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 16:54:14 -0000 Kip Macy wrote: > I've committed to importing i386/PAE (UP) domU support for Xen by the > end of the year. > > -Kip > > Excellent, thanks for the update. -Scott Oertel From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 17:13:33 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DD7916A46E for ; Thu, 8 Nov 2007 17:13:33 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.191]) by mx1.freebsd.org (Postfix) with ESMTP id B464C13C4CA for ; Thu, 8 Nov 2007 17:13:32 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by rn-out-0102.google.com with SMTP id s42so145830rnb for ; Thu, 08 Nov 2007 09:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8LFDJp7t8E9I86NNUZavKGbNwyEeE+q1lyImHAj1ODM=; b=fpUrMJfrWGV1ouFXYyXhKuKMdhvH53Cvuix9ZY9gD7wHUAdzj8TCBEeQeDgSGEfH5c0a6R4ka6Xyra/Op1xQkILlYEiJBwRkD+Y3O2/SUnodSDXDac7joBrUhptdEUnFkg416NaPz9RSjILIuaQZ8d25Pgz/+AwINfl/0AVxR/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Wrc3WpqD4ooPJoymzsJ7Q0TB/kqCPsk3lB9j+EkogongKUS8OR9guMf9503Q1NIoxB00wtm6sIpuSmWdVcnKOkvVTd01lkz+Yw9cLTSNIvtjEGZnbaIuLitJWXY4cmPWJEaMLD6vwDlqZumUJMQd6cujBOzNMKZAtg6tdKvcUp0= Received: by 10.142.242.8 with SMTP id p8mr59963wfh.1194542004446; Thu, 08 Nov 2007 09:13:24 -0800 (PST) Received: by 10.142.80.1 with HTTP; Thu, 8 Nov 2007 09:13:24 -0800 (PST) Message-ID: <319cceca0711080913s493b7f7eufec02a9a6d92404e@mail.gmail.com> Date: Thu, 8 Nov 2007 17:13:24 +0000 From: Maslan To: "Aharon Schkolnik" In-Reply-To: <200711080944.00335.aschkolnik@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711080944.00335.aschkolnik@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: pgk_add segmentation fault X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 17:13:33 -0000 Hi, It seems that pkg_add tries to executes ldconfig which itself cause the segmentation fault. On Nov 8, 2007 7:44 AM, Aharon Schkolnik wrote: > Hi ! > > pkg_add is crashing with a segmentation fault: > > pkg_add -v mysql-client-5.1.22.tbz > Requested space: 3809856 bytes, free space: 128323438592 bytes > in /var/tmp/instmp.ND8UBU > extract: Package name is mysql-client-5.1.22 > extract: CWD to /usr/local > extract: /usr/local/man/man1/mysql_config.1.gz > extract: /usr/local/man/man1/mysql.1.gz > extract: /usr/local/man/man1/mysqladmin.1.gz > extract: /usr/local/man/man1/mysqlbinlog.1.gz > extract: /usr/local/man/man1/mysqlcheck.1.gz > extract: /usr/local/man/man1/mysqldump.1.gz > extract: /usr/local/man/man1/mysqlimport.1.gz > extract: /usr/local/man/man1/mysqlshow.1.gz > extract: /usr/local/man/man8/mysqlmanager.8.gz > . > . > . > > extract: /usr/local/lib/mysql/libmysqlclient_r.la > extract: /usr/local/lib/mysql/libmysqlclient_r.so > extract: /usr/local/lib/mysql/libmysqlclient_r.so.16 > extract: /usr/local/share/aclocal/mysql.m4 > extract: /usr/local/share/mysql/mysql_fix_privilege_tables.sql > extract: execute '/sbin/ldconfig -m /usr/local/lib/mysql' > extract: CWD to (null) > Segmentation fault (core dumped) > > # uname -a > FreeBSD CMXHost 5.30.0170 FreeBSD 5.30.0170 #0: Thu Apr 13 14:05:14 UTC 2006 > i386 7.05.0014 > > > Any ideas ? > > TIA > -- > The day is short, and the work is great, | Aharon Schkolnik > and the laborers are lazy, and the reward | > is great, and the Master of the house is | aschkolnik@gmail.com > impatient. - Ethics Of The Fathers Ch. 2 | 054 8422076 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- System Programmer -- I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) -- http://libosdk.berlios.de From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 17:44:32 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9A9E16A46C; Thu, 8 Nov 2007 17:44:32 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7B213C4B3; Thu, 8 Nov 2007 17:44:31 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E381E45CD9; Thu, 8 Nov 2007 18:23:58 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id B018545684; Thu, 8 Nov 2007 18:23:54 +0100 (CET) Date: Thu, 8 Nov 2007 18:23:45 +0100 From: Pawel Jakub Dawidek To: dexterclarke@Safe-mail.net Message-ID: <20071108172345.GE25224@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IbVRjBtIbJdbeK1C" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-hackers@freebsd.org, trustedbsd-discuss@freebsd.org Subject: Re: A TrustedBSD "voluntary sandbox" policy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 17:44:33 -0000 --IbVRjBtIbJdbeK1C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 07, 2007 at 10:20:28PM -0500, dexterclarke@Safe-mail.net wrote: > I'm considering developing a policy/module for TrustedBSD loosely based > on the systrace concept - A process loads a policy and then executes > another program in a sandbox with fine grained control over what that > program can do. >=20 > I'm aiming for a much simpler implementation, however. No interaction. > No privilege elevation (only restriction). No system call rewriting, > only access control. >=20 > The interface will look something like this: >=20 > (cat < deny all=20 > allow file_open /etc/passwd > allow file_open /dev/tty > allow sock_connect 127.0.0.1 80 > allow sock_connect 208.77.188.166 80 > rlimit core 0 > rlimit cpu 20 > rlimit nofile 10 > EOF > ) | sandbox /bin/ls -alF /bin >=20 > Please note that the 'policy' given on the command line is purely for=20 > the sake of example, no syntax or semantics have been decided upon. >=20 > The implementation appears to be simple, as far as I'm aware. I'm sure > there will be thorns and problems - that's what I'm here to find out. >=20 > The 'sandbox' process compiles the policy text into a binary structure > in userland, loads the binary structure into the kernel module via a > system call implemented with mac_syscall(), sets various rlimits and=20 > then runs /bin/ls with execve(). When the process exits, the memory for= =20 > the binary structure is freed. >=20 > I would like, at this stage, to know if the above model is seriously > incompatible with the way the MAC framework works, it's not entirely > clear either way having read other policies such as mac_biba, mac_stub > etc. >=20 > For example - how to know when a process has exited? Policy for an > executed process would be kept in a small hash table, indexed by process > id. The policy will be enabled when the process sucessfully calls > execve() for the first time and will be destroyed when the process > exits. If we're not notified when a process has exited, we can't remove > policy from the table. >=20 > Also, what should be done when a process decides to fork() or execve()? > It'd be rather unfortunate if the process could break out of the sandbox > just by executing another process but blocking all attempts to fork() > or execve() would make classes of programs unusable. First problem is that it is hard to operate on file paths. MAC passes a locked vnode to you and you cannot go from there to a file name easly. You could do it by comparsion: call VOP_GETATTR(9) on the given vnode, do the same for /etc/passwd and others and compare their inodes and file system ids. Performance hit may be significant for complex policies. You can register yourself for process_exit, process_fork and process_exec in-kernel events and do your cleanups from your event handler. Take a look at EVENTHANDLER(9). --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --IbVRjBtIbJdbeK1C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHM0YhForvXbEpPzQRAu4KAKDXT+SpktNP9Im8NAWyqGKJXFASDACg84Cd E5KCkqy47CxgYdzFflYNwNI= =YGor -----END PGP SIGNATURE----- --IbVRjBtIbJdbeK1C-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 22:29:35 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12D8216A46C for ; Thu, 8 Nov 2007 22:29:35 +0000 (UTC) (envelope-from dclements@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by mx1.freebsd.org (Postfix) with ESMTP id CF81A13C4B0 for ; Thu, 8 Nov 2007 22:29:34 +0000 (UTC) (envelope-from dclements@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so271889rvb for ; Thu, 08 Nov 2007 14:29:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Ckbtib8dZFU5qec3DIhsLtRUIE/wLeRSKfIwswFjBdQ=; b=lsOxEwiYWAFkTuuPy1tkUK+3bhOQ3qLFvxyyM2QK6GSL7KdmeMHG40CsA0bksS1yjUDBZKe+ibZk2Rt4LBWDzxT7UQE7J8aoJX/euSTpHuCE4dxuZ8ujuPOGpON6JkwtnNTquSOjBzd21Tpy3idsCeiMPWZa9jFzMcs4xyfaEGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NOUXzXdI6MIOvM0HRBOEADvgFq4ivcnFJ2n164hwpqznhyqavviV4IDvk84znN4STxPXAN6YfjTviIZvbnvQSOscf84voIEptdgVfL3ty7j5gky+hBUMbDyUMMIZIwRSX2ev45moN/g+k5IdLovFUKzx6wDB6LRJbmnB8yhjWFI= Received: by 10.141.123.4 with SMTP id a4mr605217rvn.1194560968380; Thu, 08 Nov 2007 14:29:28 -0800 (PST) Received: by 10.140.186.21 with HTTP; Thu, 8 Nov 2007 14:29:28 -0800 (PST) Message-ID: <54da514e0711081429g5535598exef08cb46765fa591@mail.gmail.com> Date: Thu, 8 Nov 2007 14:29:28 -0800 From: "Doug Clements" To: binto In-Reply-To: <28483.202.123.224.34.1194493720.squirrel@webmail.triplegate.net.id> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> <54da514e0711071023g565cf98ay54ff2bb9cfeeb38a@mail.gmail.com> <28483.202.123.224.34.1194493720.squirrel@webmail.triplegate.net.id> Cc: freebsd-hackers@freebsd.org Subject: Re: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 22:29:35 -0000 Running out of memory and having to continually swap things in and out of ram degrades performance, yes. Page faults are simply how the virtual memory subsystem gets things done, like pulling things out of swap. --Doug On Nov 7, 2007 7:48 PM, binto wrote: > Btw > > Even page fault isn't a terrible thing, but she could make > trashing condition..that can degrade CPU utilization, am i correct? > > > > > > > > On 11/6/07, binto wrote: > >> > >> I just wanna know, > >> how to reduce the number of page faults to upgrade program or OS > >> performance? > >> is there any parameters that i must set if i reduce the number of page > >> fault? > > > > > > Don't forget that some amount of page faults are normal consequences of > > using a machine with virtual memory. Page faults alone are not an > > indicator > > that you're out of memory or suffering in any way, they just mean that > > something was requested in vm that wasn't actually in ram, and needed to > > be > > loaded. Ask 'swapinfo' or 'top' to see if you might possibly benefit from > > more ram by reducing paging. > > > > --Doug > > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > > > From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 22:33:00 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B834F16A41B for ; Thu, 8 Nov 2007 22:33:00 +0000 (UTC) (envelope-from randyhyde@earthlink.net) Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by mx1.freebsd.org (Postfix) with ESMTP id 7727813C4A8 for ; Thu, 8 Nov 2007 22:32:57 +0000 (UTC) (envelope-from randyhyde@earthlink.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=fUilTAh+Ih9U5eJeeYvFWnxSSS9LMD/tnKFAzfe08XfmkKzyF80d1ud38e0HSITs; h=Received:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP; Received: from [66.215.252.78] (helo=pentiv) by elasmtp-dupuy.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1IqFWr-0006gA-Ox for freebsd-hackers@freebsd.org; Thu, 08 Nov 2007 17:07:13 -0500 Message-ID: <000701c82253$b3a8c030$6302a8c0@pentiv> From: "Randall Hyde" To: Date: Thu, 8 Nov 2007 14:07:06 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 X-ELNK-Trace: eba5e0c9192a36dcd6dd28457998182d7e972de0d01da9408dd5772cef89dbdcea4ff6cb890bde0f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.215.252.78 Subject: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 22:33:00 -0000 Hi All, I recently ported my HLA (High Level Assembler) compiler to FreeBSD and, along with it, the HLA Standard Library. I have a performance-related question concerning file I/O. It appears that character-at-a-time file I/O is *exceptionally* slow. Yes, I realize that when processing large files I really ought to be doing block/buffered I/O to get the best performance, but for certain library routines I've written it's been far more convenient to do character-at-a-time I/O rather than deal with all the buffering issues. In the past, while slower, this character-at-a-time paradigm has provided reasonable, though not stellar, performance under Windows and Linux. However, with the port to FreeBSD I'm seeing a three-orders-of-magnitude performance loss. Here's my little test program: program t; #include( "stdlib.hhf" ) //#include( "bsd.hhf" ) static f :dword; buffer :char[64*1024]; begin t; fileio.open( "socket.h", fileio.r ); mov( eax, f ); #if( false ) // Windows: 0.25 seconds // BSD: 5.2 seconds while( !fileio.eof( f )) do fileio.getc( f ); //stdout.put( (type char al )); endwhile; #elseif( false ) // Windows: 0.0 seconds (below 1ms threshold) // BSD: 5.2 seconds forever fileio.read( f, buffer, 1 ); breakif( eax <> 1 ); //stdout.putc( buffer[0] ); endfor; #elseif( false ) // BSD: 5.1 seconds forever bsd.read( f, buffer, 1 ); breakif( @c ); breakif( eax <> 1 ); //stdout.putc( buffer[0] ); endfor; #else // BSD: 0.016 seconds bsd.read( f, buffer, 64*1024 ); //stdout.write( buffer, eax ); #endif fileio.close( f ); end t; (I selectively set one of the conditionals to true to run a different test; yeah, this is HLA assembly code, but I suspect that most people who can read C can *mostly* figure out what's going on here). The "fileio.open" call is basically a bsd.open( "socket.h", bsd.O_RDONLY ); API call. The socket.h file is about 19K long (it's from the FreeBSD include file set). In particular, I would draw your attention to the first two tests that do character-at-a-time I/O. The difference in performance between Windows and FreeBSD is dramatic (note: Linux numbers are comparable to Windows). Just to make sure that the library code wasn't doing something incredibly stupid, the third test makes a direct FreeBSD API call to read the data a byte at a time -- the results are comparable to the first two tests. Finally, I read the whole file at once, just to make sure the problem was character-at-a-time I/O (which obviously is the problem). Naturally, at one point I'd uncommented all the output statements to verify that I was reading the entire file -- no problem there. Is this really the performance I can expect from FreeBSD when doing character I/O this way? Is is there some tuning parameter I can set to change internal buffering or something? From this numbers, if I had to guess, I'd suspect that FreeBSD was re-reading the entire 4K (or whatever) block from the file cache everytime I read a single character. Can anyone explain what's going on here? I'm loathe to change my fileio module to add buffering as that will create some subtle semantic differences that could break existing code (I do have an object-oriented file I/O class that I'm going to use to implement buffered I/O, I would prefer to leave the fileio module unbuffered, if possible). And a more general question: if this is the way FreeBSD works, should something be done about it? Thanks, Randy Hyde From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 8 22:52:49 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA65916A419 for ; Thu, 8 Nov 2007 22:52:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4853913C4B0 for ; Thu, 8 Nov 2007 22:52:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.14.1) id lA8MqcGP071057; Thu, 8 Nov 2007 16:52:38 -0600 (CST) (envelope-from dan) Date: Thu, 8 Nov 2007 16:52:38 -0600 From: Dan Nelson To: Randall Hyde Message-ID: <20071108225238.GB22005@dan.emsphone.com> References: <000701c82253$b3a8c030$6302a8c0@pentiv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c82253$b3a8c030$6302a8c0@pentiv> X-OS: FreeBSD 7.0-BETA1 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 22:52:49 -0000 In the last episode (Nov 08), Randall Hyde said: > It appears that character-at-a-time file I/O is *exceptionally* slow. > Yes, I realize that when processing large files I really ought to be > doing block/buffered I/O to get the best performance, but for certain > library routines I've written it's been far more convenient to do > character-at-a-time I/O rather than deal with all the buffering > issues. In the past, while slower, this character-at-a-time paradigm > has provided reasonable, though not stellar, performance under > Windows and Linux. However, with the port to FreeBSD I'm seeing a > three-orders-of-magnitude performance loss. Here's my little test > program: [...] > The "fileio.open" call is basically a bsd.open( "socket.h", bsd.O_RDONLY ); > API call. The socket.h file is about 19K long (it's from the FreeBSD > include file set). In particular, I would draw your attention to the first > two tests that do character-at-a-time I/O. The difference in performance What timings does "dd if=/usr/include/sys/socket.h of=/dev/null ibs=1 obs=64k" report? It takes about .4 sec on my non-idle dual pIII-900 system. Try truss'ing your program as it runs; maybe the program is doing some extra syscalls you aren't aware of? -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 01:03:55 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7A1A16A418 for ; Fri, 9 Nov 2007 01:03:55 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.236]) by mx1.freebsd.org (Postfix) with ESMTP id 77FDC13C4A5 for ; Fri, 9 Nov 2007 01:03:55 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so212277wra for ; Thu, 08 Nov 2007 17:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TLmGjzfczPLRR1R17dqdyaK7qqrF4vGvToqmPmj7Edc=; b=KEgr+qVo4/Sj1r85mM+84Rfrb3i0Gt+xmbTse4P+YjtqwSYrIuZZfcFcayNHUMtLnYPQ9UtODCwQYkRC9+ZUm4SET2INuDuAPQlKbl5EdJc1mCut9k5RjyVSOXjU1bpb5qF5ULCsHiq+6qE7rIblLe0RnUg4q3t5Un3SyNUhBDU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ev+ueeRch6NiNH1dkc396x9DiA7jOlCz/MfhrwA5fG58oG6kQSnlKtFu9/fLu7vY6AilAg306dbkrSTxoG99VR7u16TeXYXHhslg1VsN8t/b9S1LFgo/h9Wj8amF4fK5uRBC0RSbqOk4yMzG0TV7spHis42yza+UumzXX8ndI2w= Received: by 10.142.12.14 with SMTP id 14mr532841wfl.1194570227467; Thu, 08 Nov 2007 17:03:47 -0800 (PST) Received: by 10.142.80.1 with HTTP; Thu, 8 Nov 2007 17:03:47 -0800 (PST) Message-ID: <319cceca0711081703j6ce7af26i9ac7cc72e421dfe7@mail.gmail.com> Date: Thu, 8 Nov 2007 17:03:47 -0800 From: Maslan To: aschkolnik@gmail.com, freebsd-hackers@freebsd.org In-Reply-To: <47338357.9050207@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711080944.00335.aschkolnik@gmail.com> <319cceca0711080913s493b7f7eufec02a9a6d92404e@mail.gmail.com> <47338357.9050207@FreeBSD.org> Cc: Subject: Fwd: pgk_add segmentation fault X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 01:03:55 -0000 ---------- Forwarded message ---------- From: Kris Kennaway Date: Nov 8, 2007 1:44 PM Subject: Re: pgk_add segmentation fault To: Maslan Maslan wrote: > Hi, > > It seems that pkg_add tries to executes ldconfig which itself cause > the segmentation fault. Can you reproduce it when running that command by hand? If so, rebuild ldconfig with -ggdb and see where it is crashing. >> extract: execute '/sbin/ldconfig -m /usr/local/lib/mysql' >> extract: CWD to (null) >> Segmentation fault (core dumped) Kris -- System Programmer -- I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) -- http://libosdk.berlios.de From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 03:14:29 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B9B916A420 for ; Fri, 9 Nov 2007 03:14:29 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: from outgoing16.3gate.net (outgoing16.3gate.net [202.127.97.16]) by mx1.freebsd.org (Postfix) with SMTP id CE4BE13C4AA for ; Fri, 9 Nov 2007 03:14:26 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: (qmail 70767 invoked by uid 1011); 9 Nov 2007 03:08:36 -0000 Received: from 202.127.97.100 by mx2.3gate.net (envelope-from , uid 1009) with qmail-scanner-1.25-st-qms (clamdscan: 0.86.2/1034. spamassassin: 3.0.2. perlscan: 1.25-st-qms. Clear:RC:1(202.127.97.100):. Processed in 0.042917 secs); 09 Nov 2007 03:08:36 -0000 X-Antivirus-3GATE-NET-Mail-From: binto@triplegate.net.id via mx2.3gate.net X-Antivirus-3GATE-NET: 1.25-st-qms (Clear:RC:1(202.127.97.100):. Processed in 0.042917 secs Process 70761) Received: from smtp.triplegate.net.id (HELO lb1.3gate.net) (202.127.97.100) by outgoing16.3gate.net with SMTP; 9 Nov 2007 03:08:36 -0000 Received: from webmail.triplegate.net.id (unknown [202.127.97.10]) by lb1.3gate.net (Postfix) with ESMTP id 93A7C211046; Fri, 9 Nov 2007 10:11:35 +0700 (WIT) Received: from 202.127.98.144 (SquirrelMail authenticated user binto@triplegate.net.id) by webmail.triplegate.net.id with HTTP; Fri, 9 Nov 2007 10:19:14 +0700 (WIT) Message-ID: <1318.202.127.98.144.1194578354.squirrel@webmail.triplegate.net.id> In-Reply-To: <54da514e0711081429g5535598exef08cb46765fa591@mail.gmail.com> References: <4635.202.127.98.144.1194407276.squirrel@webmail.triplegate.net.id> <54da514e0711071023g565cf98ay54ff2bb9cfeeb38a@mail.gmail.com> <28483.202.123.224.34.1194493720.squirrel@webmail.triplegate.net.id> <54da514e0711081429g5535598exef08cb46765fa591@mail.gmail.com> Date: Fri, 9 Nov 2007 10:19:14 +0700 (WIT) From: "binto" To: "Doug Clements" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: binto , freebsd-hackers@freebsd.org Subject: Re: page fault & degaradation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 03:14:29 -0000 Btw, what is page replacement algorithm that used by FreeBSD...sorry I'm newbie..LRU or another algorithm? > Running out of memory and having to continually swap things in and out > of ram degrades performance, yes. Page faults are simply how the > virtual memory subsystem gets things done, like pulling things out of > swap. > > --Doug > > On Nov 7, 2007 7:48 PM, binto wrote: >> Btw >> >> Even page fault isn't a terrible thing, but she could make >> trashing condition..that can degrade CPU utilization, am i correct? >> >> >> >> >> >> >> > On 11/6/07, binto wrote: >> >> >> >> I just wanna know, >> >> how to reduce the number of page faults to upgrade program or OS >> >> performance? >> >> is there any parameters that i must set if i reduce the number of >> page >> >> fault? >> > >> > >> > Don't forget that some amount of page faults are normal consequences >> of >> > using a machine with virtual memory. Page faults alone are not an >> > indicator >> > that you're out of memory or suffering in any way, they just mean that >> > something was requested in vm that wasn't actually in ram, and needed >> to >> > be >> > loaded. Ask 'swapinfo' or 'top' to see if you might possibly benefit >> from >> > more ram by reducing paging. >> > >> > --Doug >> >> > _______________________________________________ >> > freebsd-hackers@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> > To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" >> > >> >> >> > From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 03:40:03 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B85A16A421 for ; Fri, 9 Nov 2007 03:40:03 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (bhuda.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id AC44513C494 for ; Fri, 9 Nov 2007 03:40:02 +0000 (UTC) (envelope-from mwm@mired.org) Received: (qmail 73982 invoked from network); 6 Nov 2007 16:53:16 -0000 Received: from unknown (HELO mbook.mired.org) (192.168.195.2) by 0 with SMTP; 6 Nov 2007 16:53:16 -0000 Date: Tue, 6 Nov 2007 11:52:52 -0500 From: Mike Meyer To: "Julian H. Stacey" Message-ID: <20071106115252.1f97af6d@mbook.mired.org> In-Reply-To: <200711061620.lA6GKE8L090019@fire.js.berklix.net> References: <200711050002.lA502KUe064392@fire.js.berklix.net> <20071105085259.A39496@knop-beagle.kn.op.dlr.de> <200711061620.lA6GKE8L090019@fire.js.berklix.net> Organization: Meyer Consulting X-Mailer: Claws Mail 2.10.0 (GTK+ 2.6.10; i386-apple-darwin8.10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 09 Nov 2007 03:55:21 +0000 Cc: hackers@freebsd.org, Harti Brandt Subject: Re: make: evaluation of symbolic link with ../ fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 03:40:03 -0000 On Tue, 06 Nov 2007 17:20:14 +0100 "Julian H. Stacey" wrote: > It seems to me that all except csh (including bourne shell !) are > broken !! Amazing ! None of them cope properly actually following > symbolic links, they all make false premise the /some_path/.. == > /some_path ! That's not a bug, that's a feature. When symlinks were introduced in 4.1c (or thereabouts), people were often surprised to do: $ cd /some_path/child $ ... $ cd .. and not wind up in /some_path, or having the ever popular sh loop: $ for dir in $ do $ cd $dir $ ... $ cd .. $ done start working on something totally unrelated to the current directory halfway through the loop. So sh (and etc.) added a feature so that those things worked the way users expected them to. Basically, the shells don't make a false premise that /some_path/.. == /some_path, they make the premise appear to be true as a feature. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 04:00:14 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E25D16A418 for ; Fri, 9 Nov 2007 04:00:14 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: from asterix-2.3gate.net (asterix-2.3gate.net [202.127.97.37]) by mx1.freebsd.org (Postfix) with SMTP id 27C9113C48E for ; Fri, 9 Nov 2007 04:00:09 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: (qmail 18427 invoked by uid 1011); 8 Nov 2007 04:03:58 -0000 Received: from 202.127.97.100 by asterix-2.3gate.net (envelope-from , uid 1009) with qmail-scanner-1.25-st-qms (clamdscan: 0.91.2/4619. perlscan: 1.25-st-qms. Clear:RC:1(202.127.97.100):. Processed in 0.019682 secs); 08 Nov 2007 04:03:58 -0000 X-Antivirus-MY_3GNET-Mail-From: binto@triplegate.net.id via asterix-2.3gate.net X-Antivirus-MY_3GNET: 1.25-st-qms (Clear:RC:1(202.127.97.100):. Processed in 0.019682 secs Process 18421) Received: from smtp.triplegate.net.id (HELO lb1.3gate.net) (202.127.97.100) by asterix-2.3gate.net with SMTP; 8 Nov 2007 04:03:58 -0000 Received: from webmail.triplegate.net.id (unknown [202.127.97.10]) by lb1.3gate.net (Postfix) with ESMTP id 3BFF621101A for ; Thu, 8 Nov 2007 11:06:22 +0700 (WIT) Received: from 202.123.224.34 (proxying for 10.0.1.18) (SquirrelMail authenticated user binto@triplegate.net.id) by webmail.triplegate.net.id with HTTP; Thu, 8 Nov 2007 11:14:02 +0700 (WIT) Message-ID: <20889.202.123.224.34.1194495242.squirrel@webmail.triplegate.net.id> In-Reply-To: References: Date: Thu, 8 Nov 2007 11:14:02 +0700 (WIT) From: "binto" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: kgdb: cannot read IdlePTD ?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 04:00:14 -0000 # cd /usr/src/sys/i386/compile/KERNELSOME/ # kgdb kernel.debug /var/crash/vmcore.0 kgdb: cannot read IdlePTD kgdb: cannot read IdlePTD???....help pls thx BWP From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 05:14:35 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61B5616A418 for ; Fri, 9 Nov 2007 05:14:35 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: from asterix-2.3gate.net (asterix-2.3gate.net [202.127.97.37]) by mx1.freebsd.org (Postfix) with SMTP id CFC7213C4B0 for ; Fri, 9 Nov 2007 05:14:33 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: (qmail 69703 invoked by uid 1011); 2 Nov 2007 06:18:26 -0000 Received: from 202.127.97.100 by asterix-2.3gate.net (envelope-from , uid 1009) with qmail-scanner-1.25-st-qms (clamdscan: 0.91.2/4619. perlscan: 1.25-st-qms. Clear:RC:1(202.127.97.100):. Processed in 0.022235 secs); 02 Nov 2007 06:18:26 -0000 X-Antivirus-MY_3GNET-Mail-From: binto@triplegate.net.id via asterix-2.3gate.net X-Antivirus-MY_3GNET: 1.25-st-qms (Clear:RC:1(202.127.97.100):. Processed in 0.022235 secs Process 69697) Received: from smtp.triplegate.net.id (HELO webmail.triplegate.net.id) (202.127.97.100) by asterix-2.3gate.net with SMTP; 2 Nov 2007 06:18:26 -0000 Received: from 202.127.98.144 (SquirrelMail authenticated user binto@triplegate.net.id) by webmail.triplegate.net.id with HTTP; Fri, 2 Nov 2007 13:28:17 +0700 (WIT) Message-ID: <2197.202.127.98.144.1193984897.squirrel@webmail.triplegate.net.id> In-Reply-To: <20071102043349.GB51855@cdnetworks.co.kr> References: <1240.202.127.98.144.1193971159.squirrel@webmail.triplegate.net.id> <20071102034545.GA51855@cdnetworks.co.kr> <1648.202.127.98.144.1193976026.squirrel@webmail.triplegate.net.id> <20071102043349.GB51855@cdnetworks.co.kr> Date: Fri, 2 Nov 2007 13:28:17 +0700 (WIT) From: "binto" To: pyunyh@gmail.com User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: binto , jfv@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: options TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS are mutually exclusive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 05:14:35 -0000 ...seem like i just need for Tx side [ smtp /outgoing mail server ] by enable kern.ipc.zero_copy.send & disable kern.ipc.zero_copy.receive thx binto > On Fri, Nov 02, 2007 at 11:00:26AM +0700, binto wrote: > > another question..... > > in my 'dmesg' i have NIC - em0 > Version - 6.6.6>...is it support Tigon driver that need to set > > ZERO_COPY_SOCKETS ? > > > > em(4) supports zero copy for Tx side. zero copy for receiver side > requires header splitting assistance from hardware which is not > available in em(4). I guess ti(4) on Tigon II would be the only > driver that supports header splitting. > > However it seems newer Intel NICs and Sun Cassini+ seems to have > header splitting feature. Jack Vogel, maintainer of em(4), may have > more information for header splitting support on em(4).(CCed) > > > thx > > > > > On Fri, Nov 02, 2007 at 09:39:19AM +0700, binto wrote: > > > > I try to compile MYKERNEL to set zero_copy & tigon driver in my > machine > > > > with: > > > > > > > > device ti > > > > options TI_PRIVATE_JUMBOS > > > > options TI_JUMBO_HDRSPLIT > > > > > > > > but got: > > > > #error "options TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS are > mutually > > > > exclusive" > > > > > > > > what's up....? > > > > > > > > > > %vi +/TI_JUMBO_HDRSPLIT /usr/src/sys/conf/NOTES > > > > > > -- > > > Regards, > > > Pyun YongHyeon > > > > > > > > > -- > Regards, > Pyun YongHyeon > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 07:37:55 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2075E16A419 for ; Fri, 9 Nov 2007 07:37:55 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 700E313C494 for ; Fri, 9 Nov 2007 07:37:54 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id lA972rH7086993; Thu, 8 Nov 2007 23:02:58 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <4734061D.9000606@freebsd.org> Date: Thu, 08 Nov 2007 23:02:53 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <000701c82253$b3a8c030$6302a8c0@pentiv> <20071108225238.GB22005@dan.emsphone.com> In-Reply-To: <20071108225238.GB22005@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Randall Hyde Subject: Re: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 07:37:55 -0000 Dan Nelson wrote: > In the last episode (Nov 08), Randall Hyde said: > >>It appears that character-at-a-time file I/O is *exceptionally* slow. >>... reasonable, though not stellar, performance under >>Windows and Linux. However, with the port to FreeBSD I'm seeing a >>three-orders-of-magnitude performance loss. ... > > What timings does > "dd if=/usr/include/sys/socket.h of=/dev/null ibs=1 obs=64k" report? > It takes about .4 sec on my non-idle dual pIII-900 system. Try > truss'ing your program as it runs; maybe the program is doing some > extra syscalls you aren't aware of? You should also carefully do an strace or similar on Windows and Linux as well. You may find that you're doing a system call per byte on FreeBSD but not on those other systems. Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 08:59:18 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3AED16A417 for ; Fri, 9 Nov 2007 08:59:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 725D913C48E for ; Fri, 9 Nov 2007 08:59:17 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1IqP8U-000JI7-R8 for freebsd-hackers@freebsd.org; Fri, 09 Nov 2007 10:22:42 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 Nov 2007 10:22:42 +0200 From: Danny Braniss Message-ID: Subject: bge/ilo blues on Sun X2200 (fwd) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 08:59:18 -0000 trying my luck here :-) newer kernels (after Oct. 20) are breacking bge. i've checked the cvsdiffs, but nothing seems relevant. the ilo (Integrated Lights Out) port, bge1, though not configured, gets configured to 10baseT/UTP , and no magic will get it to 100/full-duplex, which is what the ilo was/is using. this works fine on an Oct 20 system. any ideas? cheers, danny From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 09:02:04 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A16B716A41B for ; Fri, 9 Nov 2007 09:02:04 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 852AD13C4AC for ; Fri, 9 Nov 2007 09:02:04 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 4DEDA1CC079; Fri, 9 Nov 2007 01:01:47 -0800 (PST) Date: Fri, 9 Nov 2007 01:01:47 -0800 From: Jeremy Chadwick To: Danny Braniss Message-ID: <20071109090147.GA49613@eos.sc1.parodius.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: bge/ilo blues on Sun X2200 (fwd) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 09:02:04 -0000 On Fri, Nov 09, 2007 at 10:22:42AM +0200, Danny Braniss wrote: > trying my luck here :-) > > newer kernels (after Oct. 20) are breacking bge. > i've checked the cvsdiffs, but nothing seems relevant. > > the ilo (Integrated Lights Out) port, bge1, though not configured, gets > configured to 10baseT/UTP , and no magic will > get it to 100/full-duplex, which is what the ilo was/is using. > > this works fine on an Oct 20 system. > > any ideas? Try using the following in /boot/loader.conf and reboot: hw.bge.allow_asf=1 The default is 0. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 09:44:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B628E16A46E for ; Fri, 9 Nov 2007 09:44:13 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 8221913C4B8 for ; Fri, 9 Nov 2007 09:44:13 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA99i79O015011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2007 01:44:07 -0800 X-Auth-Received: from [128.208.5.249] (lodovico.cs.washington.edu [128.208.5.249]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA99i6Ca011981 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 01:44:07 -0800 Message-ID: <47342C2B.6000402@u.washington.edu> Date: Fri, 09 Nov 2007 01:45:15 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Aharon Schkolnik References: <200711080944.00335.aschkolnik@gmail.com> In-Reply-To: <200711080944.00335.aschkolnik@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.9.11841 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-hackers@freebsd.org Subject: Re: pgk_add segmentation fault X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 09:44:13 -0000 Aharon Schkolnik wrote: > Hi ! > > pkg_add is crashing with a segmentation fault: > > pkg_add -v mysql-client-5.1.22.tbz > Requested space: 3809856 bytes, free space: 128323438592 bytes > in /var/tmp/instmp.ND8UBU > extract: Package name is mysql-client-5.1.22 > extract: CWD to /usr/local > extract: /usr/local/man/man1/mysql_config.1.gz > extract: /usr/local/man/man1/mysql.1.gz > extract: /usr/local/man/man1/mysqladmin.1.gz > extract: /usr/local/man/man1/mysqlbinlog.1.gz > extract: /usr/local/man/man1/mysqlcheck.1.gz > extract: /usr/local/man/man1/mysqldump.1.gz > extract: /usr/local/man/man1/mysqlimport.1.gz > extract: /usr/local/man/man1/mysqlshow.1.gz > extract: /usr/local/man/man8/mysqlmanager.8.gz > . > . > . > > extract: /usr/local/lib/mysql/libmysqlclient_r.la > extract: /usr/local/lib/mysql/libmysqlclient_r.so > extract: /usr/local/lib/mysql/libmysqlclient_r.so.16 > extract: /usr/local/share/aclocal/mysql.m4 > extract: /usr/local/share/mysql/mysql_fix_privilege_tables.sql > extract: execute '/sbin/ldconfig -m /usr/local/lib/mysql' > extract: CWD to (null) > Segmentation fault (core dumped) > > # uname -a > FreeBSD CMXHost 5.30.0170 FreeBSD 5.30.0170 #0: Thu Apr 13 14:05:14 UTC 2006 > i386 7.05.0014 > > > Any ideas ? > > TIA > Where did you download those sources from? Could you get a backtrace for me or point me to that package? Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 10:14:10 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E640016A496 for ; Fri, 9 Nov 2007 10:14:10 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: from asterix-2.3gate.net (asterix-2.3gate.net [202.127.97.37]) by mx1.freebsd.org (Postfix) with SMTP id 366CF13C4C2 for ; Fri, 9 Nov 2007 10:14:07 +0000 (UTC) (envelope-from binto@triplegate.net.id) Received: (qmail 62041 invoked by uid 1011); 2 Nov 2007 03:50:35 -0000 Received: from 202.127.97.100 by asterix-2.3gate.net (envelope-from , uid 1009) with qmail-scanner-1.25-st-qms (clamdscan: 0.91.2/4619. perlscan: 1.25-st-qms. Clear:RC:1(202.127.97.100):. Processed in 0.055069 secs); 02 Nov 2007 03:50:35 -0000 X-Antivirus-MY_3GNET-Mail-From: binto@triplegate.net.id via asterix-2.3gate.net X-Antivirus-MY_3GNET: 1.25-st-qms (Clear:RC:1(202.127.97.100):. Processed in 0.055069 secs Process 62035) Received: from smtp.triplegate.net.id (HELO webmail.triplegate.net.id) (202.127.97.100) by asterix-2.3gate.net with SMTP; 2 Nov 2007 03:50:35 -0000 Received: from 202.127.98.144 (SquirrelMail authenticated user binto@triplegate.net.id) by webmail.triplegate.net.id with HTTP; Fri, 2 Nov 2007 11:00:26 +0700 (WIT) Message-ID: <1648.202.127.98.144.1193976026.squirrel@webmail.triplegate.net.id> In-Reply-To: <20071102034545.GA51855@cdnetworks.co.kr> References: <1240.202.127.98.144.1193971159.squirrel@webmail.triplegate.net.id> <20071102034545.GA51855@cdnetworks.co.kr> Date: Fri, 2 Nov 2007 11:00:26 +0700 (WIT) From: "binto" To: pyunyh@gmail.com User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: options TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS are mutually exclusive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 10:14:11 -0000 another question..... in my 'dmesg' i have NIC - em0 ...is it support Tigon driver that need to set ZERO_COPY_SOCKETS ? thx > On Fri, Nov 02, 2007 at 09:39:19AM +0700, binto wrote: > > I try to compile MYKERNEL to set zero_copy & tigon driver in my machine > > with: > > > > device ti > > options TI_PRIVATE_JUMBOS > > options TI_JUMBO_HDRSPLIT > > > > but got: > > #error "options TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS are mutually > > exclusive" > > > > what's up....? > > > > %vi +/TI_JUMBO_HDRSPLIT /usr/src/sys/conf/NOTES > > -- > Regards, > Pyun YongHyeon > From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 10:15:09 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 846C716A418; Fri, 9 Nov 2007 10:15:09 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id D447213C4AA; Fri, 9 Nov 2007 10:15:08 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1IqQtC-000KJ0-6D; Fri, 09 Nov 2007 12:15:02 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Jeremy Chadwick In-reply-to: <20071109090147.GA49613@eos.sc1.parodius.com> References: <20071109090147.GA49613@eos.sc1.parodius.com> Comments: In-reply-to Jeremy Chadwick message dated "Fri, 09 Nov 2007 01:01:47 -0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 Nov 2007 12:15:02 +0200 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: Re: bge/ilo blues on Sun X2200 (fwd) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 10:15:09 -0000 > On Fri, Nov 09, 2007 at 10:22:42AM +0200, Danny Braniss wrote: > > trying my luck here :-) > > > > newer kernels (after Oct. 20) are breacking bge. > > i've checked the cvsdiffs, but nothing seems relevant. > > > > the ilo (Integrated Lights Out) port, bge1, though not configured, gets > > configured to 10baseT/UTP , and no magic will > > get it to 100/full-duplex, which is what the ilo was/is using. > > > > this works fine on an Oct 20 system. > > > > any ideas? > > Try using the following in /boot/loader.conf and reboot: > > hw.bge.allow_asf=1 > > The default is 0. Yes, that works! thanks! danny From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 10:56:47 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C231816A418; Fri, 9 Nov 2007 10:56:47 +0000 (UTC) (envelope-from screwdriver@lxnt.info) Received: from mail.lxnt.info (mail.lxnt.info [217.23.143.142]) by mx1.freebsd.org (Postfix) with ESMTP id C6AC013C4D1; Fri, 9 Nov 2007 10:56:46 +0000 (UTC) (envelope-from screwdriver@lxnt.info) Received: from [217.23.131.8] (helo=lxnt.inside.caravan.ru) by mail.lxnt.info with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1IqRXJ-0007Xb-Ud; Fri, 09 Nov 2007 13:56:29 +0300 Message-ID: <47343D0B.3070001@lxnt.info> Date: Fri, 09 Nov 2007 13:57:15 +0300 From: Alexander Sabourenkov User-Agent: Thunderbird 2.0.0.6 (X11/20071024) MIME-Version: 1.0 To: Roman Kurakin References: <472A548B.50406@lxnt.info> <472B9EA1.6060205@deepcore.dk> <472CEFDD.2020103@lxnt.info> <47343F7C.4050709@inse.ru> In-Reply-To: <47343F7C.4050709@inse.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Matthew D. Fuller" , Thierry Herbelot , =?UTF-8?B?U8O4cmVuIFNjaG1pZHQ=?= , sos@freebsd.org Subject: Re: Patch RFC: Promise SATA300 TX4 hardware bug workaround. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 10:56:47 -0000 Roman Kurakin wrote: > By the way, is there any chance to get RAID5 working with this controller? > Software only. -- ./lxnt From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 11:03:34 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C75BA16A468 for ; Fri, 9 Nov 2007 11:03:34 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (mail.qubeconnect.com [202.190.74.25]) by mx1.freebsd.org (Postfix) with SMTP id 1094C13C4A8 for ; Fri, 9 Nov 2007 11:03:33 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: (qmail 44387 invoked by uid 0); 9 Nov 2007 10:36:47 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.190.74.25) by lucifer.net-gw.com with SMTP; 9 Nov 2007 10:36:47 -0000 Received: from prophet.alphaque.com (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.8/8.13.4) with ESMTP id lA9AZKKF087274; Fri, 9 Nov 2007 18:35:21 +0800 (MYT) (envelope-from dinesh@alphaque.com) Date: Fri, 9 Nov 2007 18:35:20 +0800 From: Dinesh Nair To: Dan Nelson Message-ID: <20071109183520.07a6b35a@prophet.alphaque.com> In-Reply-To: <20071108225238.GB22005@dan.emsphone.com> References: <000701c82253$b3a8c030$6302a8c0@pentiv> <20071108225238.GB22005@dan.emsphone.com> Organization: Alphaque. Anytime. Anywhere. X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Randall Hyde Subject: Re: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 11:03:34 -0000 On Thu, 8 Nov 2007 16:52:38 -0600, Dan Nelson wrote: > In the last episode (Nov 08), Randall Hyde said: > > It appears that character-at-a-time file I/O is *exceptionally* slow. > > Yes, I realize that when processing large files I really ought to be > > doing block/buffered I/O to get the best performance, but for certain > > library routines I've written it's been far more convenient to do > > character-at-a-time I/O rather than deal with all the buffering > > issues. In the past, while slower, this character-at-a-time paradigm > > has provided reasonable, though not stellar, performance under > > Windows and Linux. However, with the port to FreeBSD I'm seeing a > > three-orders-of-magnitude performance loss. Here's my little test > > program: > [...] > > The "fileio.open" call is basically a bsd.open( "socket.h", > > bsd.O_RDONLY ); API call. The socket.h file is about 19K long (it's > > from the FreeBSD include file set). In particular, I would draw your > > attention to the first two tests that do character-at-a-time I/O. The > > difference in performance > > What timings does > "dd if=/usr/include/sys/socket.h of=/dev/null ibs=1 obs=64k" report? > It takes about .4 sec on my non-idle dual pIII-900 system. Try > truss'ing your program as it runs; maybe the program is doing some > extra syscalls you aren't aware of? > on FreeBSD 6.2-RELEASE, it returns, dd if=/usr/include/sys/socket.h of=/dev/null ibs=1 obs=64k 18426+0 records in 0+1 records out 18426 bytes transferred in 0.070472 secs (261466 bytes/sec) -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 11:09:54 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03C8A16A46B; Fri, 9 Nov 2007 11:09:54 +0000 (UTC) (envelope-from rik@inse.ru) Received: from mail.inse.ru (mail.inse.ru [144.206.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9B01413C4B0; Fri, 9 Nov 2007 11:09:53 +0000 (UTC) (envelope-from rik@inse.ru) Received: from [127.0.0.1] (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTP id 2E83033C0A; Fri, 9 Nov 2007 13:52:59 +0300 (MSK) Message-ID: <47343F7C.4050709@inse.ru> Date: Fri, 09 Nov 2007 14:07:40 +0300 From: Roman Kurakin User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: Alexander Sabourenkov References: <472A548B.50406@lxnt.info> <472B9EA1.6060205@deepcore.dk> <472CEFDD.2020103@lxnt.info> In-Reply-To: <472CEFDD.2020103@lxnt.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Matthew D. Fuller" , Thierry Herbelot , =?UTF-8?B?U8O4cmVuIFNjaG1pZHQ=?= , sos@freebsd.org Subject: Re: Patch RFC: Promise SATA300 TX4 hardware bug workaround. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 11:09:54 -0000 By the way, is there any chance to get RAID5 working with this controller? rik Alexander Sabourenkov wrote: > Arno J. Klaassen wrote: > >> Rather than the marginal HW part, it seems, for me, closely related to >> MB/BIOS (as well (Alexander apperently has about the same setup as I >> have for this test)): >> >> > > [...] > > >> I vaguely remember from another PR that the Promise card does >> something with PCI-bursting which fbsd does not detect and/or >> handle correctly (and beyond my simple skills as dumb tester, but >> maybe the linux-sources contain a clue about that as well). >> >> > > Analysis of chip initialization in vendor-supplied, Linux and FreeBSD > drivers shows that FreeBSD's one: > - does not enable something called 'BMR_BURST', > - performs hotplug init in one write (instead of two read-modify-writes ), > - does an extra write (offset 0x54) which is not done in other drivers. > > Analysis text: http://lxnt.info/tx4/chipinit.text > > Patch with ported chipinit (dangerous to use with anything from Promise > other than sata300 tx4 !!): > http://lxnt.info/tx4/freebsd/chipinit.patch (cumulative) > http://lxnt.info/tx4/freebsd/ata-chipset.c+chipinit (patched source) > > Note two things: > 1. I have not compiled or tested this patch. Please do. > 2. I may have missed this bug because I'm frequently rebooting between > Linux and FreeBSD, and what Linux driver initialized may have lasted the > reboots. > > > From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 12:32:01 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E137016A419; Fri, 9 Nov 2007 12:32:01 +0000 (UTC) (envelope-from lol@chistydom.ru) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.freebsd.org (Postfix) with ESMTP id B83CD13C4A7; Fri, 9 Nov 2007 12:32:00 +0000 (UTC) (envelope-from lol@chistydom.ru) Received: from [80.68.244.40] (account a_popov@rbc.ru [80.68.244.40] verified) by hermes.hw.ru (CommuniGate Pro SMTP 5.0.13) with ESMTPA id 199247194; Fri, 09 Nov 2007 15:10:45 +0300 Message-ID: <47344E47.9050908@chistydom.ru> Date: Fri, 09 Nov 2007 15:10:47 +0300 From: Alexey Popov User-Agent: Thunderbird 2.0.0.6 (X11/20070924) MIME-Version: 1.0 To: Kris Kennaway References: <47137D36.1020305@chistydom.ru> <47140906.2020107@FreeBSD.org> <47146FB4.6040306@chistydom.ru> <47147E49.9020301@FreeBSD.org> <47149E6E.9000500@chistydom.ru> <4715035D.2090802@FreeBSD.org> <4715C297.1020905@chistydom.ru> <4715C5D7.7060806@FreeBSD.org> <471EE4D9.5080307@chistydom.ru> <4723BF87.20302@FreeBSD.org> In-Reply-To: <4723BF87.20302@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 09 Nov 2007 12:56:02 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: amrd disk performance drop after running under high load X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 12:32:02 -0000 Hi. Kris Kennaway wrote:te: > In the "good" case you are getting a much higher interrupt rate but with > the data you provided I can't tell where from. You need to run vmstat > -i at regular intervals (e.g. every 10 seconds for a minute) during the > "good" and "bad" times, since it only provides counters and an average > rate over the uptime of the system. Now I'm running 10-process lighttpd and the problem became no so big. I collected interrupt stats and it shows no relation beetween ionterrupts and slowdowns. Here is it: http://83.167.98.162/gprof/intr-graph/ Also I have similiar statistics on mutex profiling and it shows there's no problem in mutexes. http://83.167.98.162/gprof/mtx-graph/mtxgifnew/ I have no idea what else to check. With best regards, Alexey Popov From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 12:56:52 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6FAA16A468 for ; Fri, 9 Nov 2007 12:56:52 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2F313C4B3 for ; Fri, 9 Nov 2007 12:56:51 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so571566fka for ; Fri, 09 Nov 2007 04:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; bh=H1+mJrmViOmMbRxV/VQC3tLlqTJ8dN9vnyJEQrOT2S0=; b=PZS5vUVx/NxByuSVBbzZykqGFPlyNptB3kfa15bS4u81NRt5nigG9Fkgiz7ZvByMrZxAAKZJEkD3YU5mW+IgmWnZRPqt6PVC5Mkdf+IYDyEk7VT+WUWSfbtZrxihf7KRxLG/eJ4eptTAKuyhTQmSL3QJ+GWpJ8OlKS8NLEq+EtY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; b=gVlEwxQYXv375/78HIurEMy1ouH9o+roR8VPzE9WDCaXv0+PGJzYJTHX7LfVo5e0wcpM68HyubTZcOUsfxG4jaUiQLedFkLYe+GI/9CxSI8pAVdN7neLfzvhw5SMv06J2z+ipohrkMUzJoZ25k3IfZePnFCsW4uvkYY4HOJRKeM= Received: by 10.82.167.5 with SMTP id p5mr3477703bue.1194613003181; Fri, 09 Nov 2007 04:56:43 -0800 (PST) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id n3sm917651gvf.2007.11.09.04.56.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 04:56:41 -0800 (PST) Message-ID: <4733E878.2050804@gmail.com> Date: Fri, 09 Nov 2007 04:56:24 +0000 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071109) MIME-Version: 1.0 To: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 12:56:52 -0000 First of all I am posting to both -current and -hackers because -hackers seems to be very low volume. I just set up a master server development server using the procedure in development(7) which was fairly clear but left a few questions unanswered (and one odd behavior). I have only the master server (no clients). Just for ref my dir tree looks like this: /home/ncvs ---> /FreeBSD/CVSROOT /FreeBSD/7.x (src) /FreeBSD/current (src ports doc) /usr/src ---> /FreeBSD/7.x /usr/src2 ---> /FreeBSD/current /usr/ports ---> /FreeBSD/current/ports /usr/obj is on it's own partition My questions: 1. If I am modifing code and such should I have a local branch? 2. If yes to #1 how do I setup keeping everything except my modified code in sync (and if possible to retro activally apply patchs from the local branch unto the main source tree [/usr/src2]) 3. The documentation said very little about how to generate patchs between my local code and the main branch a. Ideally I want to set it up where when I am done with a modification it automatically creates a patch (I have never used CVS for anything except through csup and cvsup so I am totally lost here) 4. Mergemaster behaves strange now: everytime I run it does a buildworld before doing the merge (even if I just did a installworld)... also it seems to default this to /usr/src2 (which is most of the time what I want)... is this normal? and if so how do I turn it off and if I can't how do I set which source tree to use? -- Aryeh M. Friedman Developer, not business, friendly http://www.flosoft-systems.com From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 13:36:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6867F16A41A for ; Fri, 9 Nov 2007 13:36:40 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 0A68D13C49D for ; Fri, 9 Nov 2007 13:36:39 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so317526wxd for ; Fri, 09 Nov 2007 05:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=hOWWmEJt5W0A/WJuvhUz8GFjXxlzedZp1AS8Pn89kYo=; b=ZBg5riSM1MGhs3equRvFtE9mEVJk6AEXsHvZP3YeC6//U18J+MHzPSexeU4WBVe3Gm55o/QrdqKeSfrRSxo7ajZVmIZPFiZ2cGtjI74WuGEZzZBN2KQJMS3bRlKOZ8ZqidPcQdvCYAAyPVrGcZnozzIdoOsZMAt6LjlOZ2O5WEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=YLDny5LLcq262WV/Yz84ZIK6eqmTj8lJQnP4dnsneZEnoIqp5PnhNn5+Mu2hK1eE/qoXRlbmfRo+CoZBwvR/UZIW+N69VGNc/H+0HqlGP7ScUQOtfVj37FDSe8IFeER81xhelnfWBZAfPAroImuEOHYRHFBDtUu2ea5Yx+dykHI= Received: by 10.67.96.16 with SMTP id y16mr950147ugl.1194615392590; Fri, 09 Nov 2007 05:36:32 -0800 (PST) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id 28sm1965580fkx.2007.11.09.05.36.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 05:36:31 -0800 (PST) Message-ID: <4733F1DA.60706@gmail.com> Date: Fri, 09 Nov 2007 05:36:26 +0000 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071109) MIME-Version: 1.0 To: Ian FREISLICH References: In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:36:40 -0000 >> >> 2. If yes to #1 how do I setup keeping everything except my modified >> code in sync (and if possible to retro activally apply patchs from the >> local branch unto the main source tree [/usr/src2]) > > You won't be able to commit to the BSD repo from your server. I > think you should treat your repo as read only and use cvsup to keep > it up to date. At least that's what I do. What I meant was how do I keep from clobbering my local changes? -- Aryeh M. Friedman Developer, not business, friendly http://www.flosoft-systems.com From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 13:47:52 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5EB716A417 for ; Fri, 9 Nov 2007 13:47:52 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id 8B53513C4B3 for ; Fri, 9 Nov 2007 13:47:52 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so319951wxd for ; Fri, 09 Nov 2007 05:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=uPtfh0yQX5mjM/3nHAyBErINbvjb6Zlhw1VRlGaj7Ws=; b=LPUVJ5Fge11su3fdSvpDIql5gE8ArtuRJASsMkwYf89ASPaNQqNKuSnMDYjm2IU82Nv2lnw5Fr0+BzFZljHy9aE3pNRyU91sjbCtjJuiCZvATUK4vit5ezhlaLU37kvPFDj1DH0lHKsRru+Iw0sBZ0KAR04GXpEXNZ7iTbSB1+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=AB0ac5yqMlbpKlKxWyM+yV4WqLrdgWyhoFyNWGONNlMj2sS+jKGrCduTE+5oBeMJC8cdo7O5hByC9+t3tytFN32LwMDQxjvMnWHTQXH5fOg8X8eqKS3Qe3wRzACeIw9wjTW+vXEGF/biSWuZI/lUq7WqEd0qa5tTgkw4aDD+p1Y= Received: by 10.100.202.9 with SMTP id z9mr2878736anf.1194616064799; Fri, 09 Nov 2007 05:47:44 -0800 (PST) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id w7sm4314516mue.2007.11.09.05.47.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 05:47:43 -0800 (PST) Message-ID: <4733F476.9030008@gmail.com> Date: Fri, 09 Nov 2007 05:47:34 +0000 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071109) MIME-Version: 1.0 To: Eric Anderson References: <4733F1DA.60706@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:47:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > > If you keep a local repo, and checkout from the local repo, then > your checkout will merge the changes (unless there are conflicts). Thanks the fact I know the answer you gave is quite simple but completely over my head shows I need a good tutorial on cvs where can I find one ;-) - -- Aryeh M. Friedman Developer, not business, friendly http://www.flosoft-systems.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHM/R1J9+1V27SttsRAhdgAJ9HVh/Zzfu1oUgnGqcLAIpGHsHOKgCfVuzL xhJ83RXcG8gVAX9KUEK5wPQ= =ADE2 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 13:52:58 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6209116A418 for ; Fri, 9 Nov 2007 13:52:58 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id D05B413C494 for ; Fri, 9 Nov 2007 13:52:57 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from stsp.lan (world77.mi.fu-berlin.de [160.45.115.77]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id lA9DqkkW025796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 14:52:47 +0100 Received: from jack.stsp.lan (stsp@localhost.stsp.lan [127.0.0.1]) by stsp.lan (8.14.1/8.14.1) with ESMTP id lA9DqjnD015985; Fri, 9 Nov 2007 14:52:45 +0100 (CET) Received: (from stsp@localhost) by jack.stsp.lan (8.14.1/8.14.1/Submit) id lA9Dqiql010987; Fri, 9 Nov 2007 14:52:44 +0100 (CET) X-Authentication-Warning: jack.stsp.lan: stsp set sender to stsp@stsp.name using -f Date: Fri, 9 Nov 2007 14:52:44 +0100 From: Stefan Sperling To: "Aryeh M. Friedman" Message-ID: <20071109135244.GC27811@jack.stsp.lan> References: <4733E878.2050804@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jq0ap7NbKX2Kqbes" Content-Disposition: inline In-Reply-To: <4733E878.2050804@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: hackers@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:52:58 -0000 --jq0ap7NbKX2Kqbes Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 09, 2007 at 04:56:24AM +0000, Aryeh M. Friedman wrote: > 1. If I am modifing code and such should I have a local branch? You can either maintain a local branch or keep backing up your diffs against the main source tree. Which one is better depends on the size of your changes and your workflow. I've used both. Maintaining your own local branch means much more cvs-related overhead but may be worth it if you need your changes versioned properly. > 2. If yes to #1 how do I setup keeping everything except my modified > code in sync (and if possible to retro activally apply patchs from the > local branch unto the main source tree [/usr/src2]) Just run cvsup to update your copy of the cvs repository as usual, it should not delete your branch. The development(7) man page says that it can in some cases delete your branch though, so you should regularly back up your branch as a diff against the upstream branch you are based on, and possibly back up your copy of the cvs repository before updating. > 3. The documentation said very little about how to generate patchs > between my local code and the main branch > a. Ideally I want to set it up where when I am done with a > modification it automatically creates a patch (I have never used CVS > for anything except through csup and cvsup so I am totally lost here) I don't think this list is appropriate for basic CVS questions, but I give you a few hints anyway because development(7) does not mention them: You need to tag the point you are branching from in CVS, otherwise you cannot create meaningful diffs between your own branch and the upstream branch. So to create a branch you can actually use, you need to run the rtag command TWICE. For example, to branch RELENG_7, use: export CVS_LOCAL_BRANCH_NUM=3D424242 cvs -d $CVSROOT rtag -r RELENG_7 MY_BRANCH_BP cvs -d $CVSROOT rtag -r RELENG_7 -b MY_BRANCH You should also create descriptive tags on both branches before and after doing a merge, to make it easier to track what has been merged where and when. Otherwise continuously syncing your branch with upstream becomes a pain quickly. You can maintain several custom branches in a single repository by switching CVS_LOCAL_BRANCH_NUM. Just don't end up confusing your branches. Always use the same CVS_LOCAL_BRANCH_NUM setting for all tag and rtag commands operating on the same branch. Warning: Branching and merging in CVS is hard! Not because branching and merging in general is hard, but simply because CVS is brain damaged. You will very likely mess it up the first time. You should practise on a test repo until you feel confident that you understand it properly. For more information see http://cvsbook.red-bean.com/ and especially http://cvsbook.red-bean.com/cvsbook.html#Branches --=20 stefan http://stsp.name PGP Key: 0xF59D25F0 --jq0ap7NbKX2Kqbes Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (OpenBSD) iD8DBQFHNGYs5dMCc/WdJfARAkK+AKDm3VV9c6T5vZSaNJsn5nXKejcx5wCgqBte BFthzGYIZ8RNeKLneQzDfdY= =uGdh -----END PGP SIGNATURE----- --jq0ap7NbKX2Kqbes-- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 13:54:43 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA86616A417 for ; Fri, 9 Nov 2007 13:54:43 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 8D94413C48E for ; Fri, 9 Nov 2007 13:54:43 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by an-out-0708.google.com with SMTP id c16so70709ana for ; Fri, 09 Nov 2007 05:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=OLZK6UJ7Dy1HZZjFwUczvQP1JFjOyo624QrEkA6qmds=; b=M2kxMPF9aD8Du4c8vqplzq1Z7bprQlozCeKNiOkGWr4ALW3LX6m8c6Xi9IPq81u0N9WdLGvzCuiP7OAo49HKrhZWv0zC/wv41mnqFw1hiYurBM0Ln5hvvSmD2TM7yfi0E5c//VK1+ZJxg2iANRrfC9NaoZZ5ifb7y7mlJ9nacLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=cWbo+JSdvx9jlhAEpp/S+fPUwkU6mjdyjh375t9r9/mMbSTuHMetWyHQZfAUkBSIMSO/6nvcYyhpJ559284htV/mFpAJoocG2pMrEBmR1FQay53gHpgplnlG069Fw7MLVbyh4y7Qve9f7u+vnDcF4uq3wuf30s/wsNxyQN5Bk/c= Received: by 10.100.33.19 with SMTP id g19mr2888575ang.1194616473046; Fri, 09 Nov 2007 05:54:33 -0800 (PST) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id g1sm4350117muf.2007.11.09.05.54.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 05:54:31 -0800 (PST) Message-ID: <4733F612.10805@gmail.com> Date: Fri, 09 Nov 2007 05:54:26 +0000 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071109) MIME-Version: 1.0 To: OutbackDingo References: <4733F1DA.60706@gmail.com> <1194616213.8643.24.camel@z60m.optimlabs.com> In-Reply-To: <1194616213.8643.24.camel@z60m.optimlabs.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:54:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OutbackDingo wrote: > well thats kinda hard to do with CVS, though other revision systems > such as mercurial, bazaar, git and perforce, even subversion do it > well, there is also a mercurial respository for FreeBSD out there > some where If I need to use an other CMS I would prefer aegis... and if that is the case I will volunteer to maintain the aegis<--->cvs repo... but there has to be a better way then using yet an other package - -- Aryeh M. Friedman Developer, not business, friendly http://www.flosoft-systems.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHM/YRJ9+1V27SttsRAvBZAJ0WyR9zsc5d+8yYniiG543+pqlfWwCgpWj/ VIlqef2f+3/W7bALCHYlXc0= =34ww -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 14:06:47 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBA5D16A41A for ; Fri, 9 Nov 2007 14:06:47 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.ltdomains.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7C313C4AA for ; Fri, 9 Nov 2007 14:06:47 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from proton.storspeed.com (209-163-168-124.static.twtelecom.net [209.163.168.124]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id lA9DeTGi000416; Fri, 9 Nov 2007 07:40:30 -0600 (CST) (envelope-from anderson@freebsd.org) Message-Id: From: Eric Anderson To: "Aryeh M. Friedman" In-Reply-To: <4733F1DA.60706@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Fri, 9 Nov 2007 07:40:30 -0600 References: <4733F1DA.60706@gmail.com> X-Mailer: Apple Mail (2.912) X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 14:06:47 -0000 On Nov 8, 2007, at 11:36 PM, Aryeh M. Friedman wrote: > >>> >>> 2. If yes to #1 how do I setup keeping everything except my modified >>> code in sync (and if possible to retro activally apply patchs from >>> the >>> local branch unto the main source tree [/usr/src2]) >> >> You won't be able to commit to the BSD repo from your server. I >> think you should treat your repo as read only and use cvsup to keep >> it up to date. At least that's what I do. > > What I meant was how do I keep from clobbering my local changes? If you keep a local repo, and checkout from the local repo, then your checkout will merge the changes (unless there are conflicts). Eric From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 13:56:22 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DB3516A469 for ; Fri, 9 Nov 2007 13:56:22 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id 38D2413C4BA for ; Fri, 9 Nov 2007 13:56:22 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=il4xyv3lTDYyQXf2mNqNw+soltsAfUJ/qKl6aYh5+SvViTPIBJrhVKt658H93i9/h6fx8RA8kdfwdG1geYltQBIsC0mTsQjtjGlsuh12RBXix8toBT3pfUjdbPihbEwDiuJICsmQ9qk4BjawpiHzgxTQKfM5xsX7Jd4PoSHWp1RL4g5+Any6jENbRzgJiW+CUVfMOoSknTWH7Cd78J1TYLhqgUq8dfs9ZEEYmgXk9Mo1E7V6J5VkOelPO6zGIv10; Received: from uucp by munchkin.clue.co.za with local-rmail (Exim 4.67) (envelope-from ) id 1IqTxv-0005PR-V9; Fri, 09 Nov 2007 13:32:07 +0000 Received: from ianf.clue.co.za ([10.0.0.6] helo=clue.co.za) by urchin.clue.co.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1IqTxq-0004rS-NX; Fri, 09 Nov 2007 13:32:02 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1IqTxn-0001He-La; Fri, 09 Nov 2007 15:31:59 +0200 To: "Aryeh M. Friedman" From: Ian FREISLICH In-Reply-To: Message from "Aryeh M. Friedman" of "Fri, 09 Nov 2007 04:56:24 GMT." <4733E878.2050804@gmail.com> X-Attribution: BOFH Date: Fri, 09 Nov 2007 15:31:59 +0200 Message-Id: X-Mailman-Approved-At: Fri, 09 Nov 2007 14:18:43 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 13:56:22 -0000 "Aryeh M. Friedman" wrote: > First of all I am posting to both -current and -hackers because > -hackers seems to be very low volume. > > I just set up a master server development server using the procedure > in development(7) which was fairly clear but left a few questions > unanswered (and one odd behavior). I have only the master server (no > clients). Just for ref my dir tree looks like this: > > /home/ncvs ---> /FreeBSD/CVSROOT > /FreeBSD/7.x (src) > /FreeBSD/current (src ports doc) > /usr/src ---> /FreeBSD/7.x > /usr/src2 ---> /FreeBSD/current > /usr/ports ---> /FreeBSD/current/ports > /usr/obj is on it's own partition > > My questions: > > 1. If I am modifing code and such should I have a local branch? > 2. If yes to #1 how do I setup keeping everything except my modified > code in sync (and if possible to retro activally apply patchs from the > local branch unto the main source tree [/usr/src2]) You won't be able to commit to the BSD repo from your server. I think you should treat your repo as read only and use cvsup to keep it up to date. At least that's what I do. > 3. The documentation said very little about how to generate patchs > between my local code and the main branch > a. Ideally I want to set it up where when I am done with a > modification it automatically creates a patch (I have never used CVS > for anything except through csup and cvsup so I am totally lost here) 'cvs diff' will generate a patch for the specified files or directories. Some like context diffs, I like unified with minimal context '-ud' option to diff. Use whichever you find easier to read. Submit patches in whatever format the developers prefer. Unified seems the most common format around here. Ian -- Ian Freislich From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 14:17:25 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C32816A41A for ; Fri, 9 Nov 2007 14:17:25 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 987C613C4C8 for ; Fri, 9 Nov 2007 14:17:24 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so593932fka for ; Fri, 09 Nov 2007 06:17:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=G2lZ3FtrP2flaGRJC7ARKUJ2Gh/nSl6Kg6PjwHn3iQ0=; b=Ab3aOhWMyXpL8SgCSDxFUzyaFi6R4oXiBXL97gUK/r+i1gwvpYpkSFDsd2k4XppVnY9+cBIvTQP64+KkbceIyeHvjazE/Jla79ZJ59Z9uI1l6zPlMWjcnbxUus/B1g/4I4e/yx1rFs2HNsE4zVTxtiSsvcDshSwwKjZt4RyGkSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=K/+w9a7jNFgXOT+E4TnWgaBj9PFJR3l/VgKU/56k+qRxBvW3LQ4rcmpH9mqT1M9lFDO5n1cxMQR4blHn4Uj8MxcVlkslIv2F2a0BOu8cAMpEaXrJaTSUnz6BP3C8xDlbmtf6MwIgjBNyuKcwqFDpWA0IJN1MtdDzSUdV8Xx1770= Received: by 10.82.155.10 with SMTP id c10mr4043243bue.1194616266047; Fri, 09 Nov 2007 05:51:06 -0800 (PST) Received: from ?10.1.1.101? ( [203.125.55.190]) by mx.google.com with ESMTPS id 28sm1999923fkx.2007.11.09.05.50.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 05:51:04 -0800 (PST) From: OutbackDingo To: "Aryeh M. Friedman" In-Reply-To: <4733F1DA.60706@gmail.com> References: <4733F1DA.60706@gmail.com> Content-Type: text/plain Date: Fri, 09 Nov 2007 21:49:48 +0800 Message-Id: <1194616213.8643.24.camel@z60m.optimlabs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 09 Nov 2007 14:28:22 +0000 Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 14:17:25 -0000 well thats kinda hard to do with CVS, though other revision systems such as mercurial, bazaar, git and perforce, even subversion do it well, there is also a mercurial respository for FreeBSD out there some where On Fri, 2007-11-09 at 05:36 +0000, Aryeh M. Friedman wrote: > >> > >> 2. If yes to #1 how do I setup keeping everything except my modified > >> code in sync (and if possible to retro activally apply patchs from the > >> local branch unto the main source tree [/usr/src2]) > > > > You won't be able to commit to the BSD repo from your server. I > > think you should treat your repo as read only and use cvsup to keep > > it up to date. At least that's what I do. > > What I meant was how do I keep from clobbering my local changes? > From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 15:08:41 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3FA716A420 for ; Fri, 9 Nov 2007 15:08:41 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id 8D4DB13C4D3 for ; Fri, 9 Nov 2007 15:08:41 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by rv-out-0910.google.com with SMTP id l15so443526rvb for ; Fri, 09 Nov 2007 07:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=l9eXj5f2cjbXMU/791UCvSHED3rOdF3yRqCxPUJxesY=; b=iZCMIMF9oUSDVWsOqHtvf9mo89aFQjHOjenrhAYFMYXQAa8o0F2vUX6AwuU+t1Iqovgl8Vwqct1TZAGsWFuaih1mJU62Xth9430GttMepG6NVngQTpv17LSH8HJ2fgf+OqKNWHsdfwS4vWaDKtCvqiknnBKCwEs5L80aqjyOdl4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=TDbvlkPHWqhqmCrBRSJriXj58XpLP4RJu69ARllo39r2A5+ifOoR/5Ew/n+ZVw0nmuPXCy1a0+34eii4d0uQ1CZbL/p7fxRfnj4myeR/BVFfKRaBo4rtS/ln8xnKBbfJh/XkpLB10/WDhjym9KvUv0AmKxjT8QOjuMop2TYC2bQ= Received: by 10.140.200.16 with SMTP id x16mr967811rvf.1194619411340; Fri, 09 Nov 2007 06:43:31 -0800 (PST) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTPS id f7sm112009nfh.2007.11.09.06.43.28 (version=SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 06:43:30 -0800 (PST) From: Tom Evans To: OutbackDingo In-Reply-To: <1194616213.8643.24.camel@z60m.optimlabs.com> References: <4733F1DA.60706@gmail.com> <1194616213.8643.24.camel@z60m.optimlabs.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Gt12PG58YM+6X02s0p4k" Date: Fri, 09 Nov 2007 14:43:27 +0000 Message-Id: <1194619407.64797.64.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , "Aryeh M. Friedman" , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 15:08:41 -0000 --=-Gt12PG58YM+6X02s0p4k Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-11-09 at 21:49 +0800, OutbackDingo wrote: > well thats kinda hard to do with CVS, though other revision systems such > as mercurial, bazaar, git and perforce, even subversion do it well, > there is also a mercurial respository for FreeBSD out there some where >=20 > On Fri, 2007-11-09 at 05:36 +0000, Aryeh M. Friedman wrote: > > >> > > >> 2. If yes to #1 how do I setup keeping everything except my modified > > >> code in sync (and if possible to retro activally apply patchs from t= he > > >> local branch unto the main source tree [/usr/src2]) > > > > > > You won't be able to commit to the BSD repo from your server. I > > > think you should treat your repo as read only and use cvsup to keep > > > it up to date. At least that's what I do. > >=20 > > What I meant was how do I keep from clobbering my local changes? > >=20 >=20 (Nothing like top posting to destroy the thread flow) OutbackDingo is incorrect. That is the entire purpose of CVS, otherwise they might as well call it VS.. Your /usr/src will be a checkout of a particular branch of freebsd (called a working copy). You periodically update your cvs repository (where you checkout from) with the latest freebsd commits.=20 When you wish to, you update your working copy from your repository by issuing a 'cvs up'. This merges changes in the repository into your local copy, merging in with the local changes. When you want to see what has changed since you last did a 'cvs up', issue a 'cvs -n up'. When you want to see the local modifications in your working copy, issue a 'cvs diff'. Read the cvs red-bean book for more info. http://cvsbook.red-bean.com/cvsbook.html HTH Tom --=-Gt12PG58YM+6X02s0p4k Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHNHILlcRvFfyds/cRArXUAJ0ar4mNW70v/FDLoVlF9DxWVkoR0ACfRHU4 seH30Lq+tzYuHD7/gdqNa44= =Rjv3 -----END PGP SIGNATURE----- --=-Gt12PG58YM+6X02s0p4k-- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 15:13:37 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8885816A41A for ; Fri, 9 Nov 2007 15:13:37 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id DD36D13C4C4 for ; Fri, 9 Nov 2007 15:13:36 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so430763nfb for ; Fri, 09 Nov 2007 07:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=lHJFfAg6x7Mg9gbAgixgikZJ+FpNeELKuNrN6U2Hvy8=; b=WiVroifcySZ3pFbTbSxfpuqPFmbt3/H4gCGiboSETilekrnewJ/0T94W1tVO3yFFxMbDMJ4NPOctaOV3JoO60SR26fRkACDjTnjU0xByWmxu3oOUFgHkQNZVCvcXJfa2+6WASMEklFFzHtxBFzZnyQx9fJKtRFj8hOtgHXh2in4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=uk2597oT8CHBeCS/z1dIftSBkmDKRGZeHnWo5XQYUTf0M/u9C5UClWO3Mono22MjSAiuelzk5AaGQ5r3pz3PrRbjZ68ZxuDM0EV/8e2S8Y2/tiF9PGay5MG4Z7F/c/9+w3DSogGoVMivG+ue2rmGno7O1evJqR4dkGUFjIY0kPk= Received: by 10.78.204.7 with SMTP id b7mr2501963hug.1194621210606; Fri, 09 Nov 2007 07:13:30 -0800 (PST) Received: from ?10.1.1.101? ( [203.125.55.190]) by mx.google.com with ESMTPS id z28sm702468hub.2007.11.09.07.13.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Nov 2007 07:13:29 -0800 (PST) From: OutbackDingo To: Tom Evans In-Reply-To: <1194619407.64797.64.camel@localhost> References: <4733F1DA.60706@gmail.com> <1194616213.8643.24.camel@z60m.optimlabs.com> <1194619407.64797.64.camel@localhost> Content-Type: text/plain Date: Fri, 09 Nov 2007 23:12:39 +0800 Message-Id: <1194621176.1219.3.camel@z60m.optimlabs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , "Aryeh M. Friedman" , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 15:13:37 -0000 On Fri, 2007-11-09 at 14:43 +0000, Tom Evans wrote: > On Fri, 2007-11-09 at 21:49 +0800, OutbackDingo wrote: > > well thats kinda hard to do with CVS, though other revision systems such > > as mercurial, bazaar, git and perforce, even subversion do it well, > > there is also a mercurial respository for FreeBSD out there some where > > > > On Fri, 2007-11-09 at 05:36 +0000, Aryeh M. Friedman wrote: > > > >> > > > >> 2. If yes to #1 how do I setup keeping everything except my modified > > > >> code in sync (and if possible to retro activally apply patchs from the > > > >> local branch unto the main source tree [/usr/src2]) > > > > > > > > You won't be able to commit to the BSD repo from your server. I > > > > think you should treat your repo as read only and use cvsup to keep > > > > it up to date. At least that's what I do. > > > > > > What I meant was how do I keep from clobbering my local changes? > > > > > > > (Nothing like top posting to destroy the thread flow) > > OutbackDingo is incorrect. That is the entire purpose of CVS, otherwise > they might as well call it VS.. > > Your /usr/src will be a checkout of a particular branch of freebsd > (called a working copy). You periodically update your cvs repository > (where you checkout from) with the latest freebsd commits. > When you wish to, you update your working copy from your repository by > issuing a 'cvs up'. This merges changes in the repository into your > local copy, merging in with the local changes. > When you want to see what has changed since you last did a 'cvs up', > issue a 'cvs -n up'. > When you want to see the local modifications in your working copy, issue > a 'cvs diff'. > > Read the cvs red-bean book for more info. > http://cvsbook.red-bean.com/cvsbook.html > > HTH > > Tom Well I wouldnt say incorrect as i stated it was hard to do. Meaning its easier to complete these tasks with a different RCS, in my OWN opinion. So as not to clobber ones changes locally. I didnt say it could not be done, its simply more difficult to achieve the same result as with other RCS systems. The reason I sated as more difficult to do, Ive seen quite a number of times when tracking a vendor branch, that merges had to be more manually handled because of local changes. This is another of those "preferences" people get into wars over, Best OS, Browser, RCS etc etc etc... From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 15:24:27 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28E4216A418; Fri, 9 Nov 2007 15:24:27 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (mailwasher.lanl.gov [204.121.3.2]) by mx1.freebsd.org (Postfix) with ESMTP id B853813C48D; Fri, 9 Nov 2007 15:24:26 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id lA9FB6ON030451; Fri, 9 Nov 2007 08:11:06 -0700 Received: from oppie-mail.lanl.gov (oppie-mail.lanl.gov [128.165.4.123]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id lA9FB5TL001693; Fri, 9 Nov 2007 08:11:05 -0700 Received: from [128.165.86.10] (secretariat.lanl.gov [128.165.86.10]) by oppie-mail.lanl.gov (Postfix) with ESMTP id 795531F8002; Fri, 9 Nov 2007 08:11:00 -0700 (MST) From: James To: "Aryeh M. Friedman" In-Reply-To: <4733F476.9030008@gmail.com> References: <4733F1DA.60706@gmail.com> <4733F476.9030008@gmail.com> Organization: Los Alamos National Laboratories Date: Fri, 09 Nov 2007 08:11:00 -0700 Message-Id: <1194621060.80662.5.camel@secretariat.lanl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: jamesh@lanl.gov X-Spam-Status: No X-Mailman-Approved-At: Fri, 09 Nov 2007 15:34:17 +0000 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jamesh@lanl.gov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 15:24:27 -0000 On Fri, 2007-11-09 at 05:47 +0000, Aryeh M. Friedman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > > > > > If you keep a local repo, and checkout from the local repo, then > > your checkout will merge the changes (unless there are conflicts). > > Thanks the fact I know the answer you gave is quite simple but > completely over my head shows I need a good tutorial on cvs where can > I find one ;-) > O'Reilly released a good book a while back that has a free version online: http://cvsbook.red-bean.com/ From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 15:46:19 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1157116A468 for ; Fri, 9 Nov 2007 15:46:19 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 11F5113C4B3 for ; Fri, 9 Nov 2007 15:46:15 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lA9FRVmR018916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 17:27:42 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id lA9FRPno014685; Fri, 9 Nov 2007 17:27:25 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id lA9FRPqd014684; Fri, 9 Nov 2007 17:27:25 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 9 Nov 2007 17:27:25 +0200 From: Giorgos Keramidas To: OutbackDingo Message-ID: <20071109152724.GA14638@kobe.laptop> References: <4733F1DA.60706@gmail.com> <1194616213.8643.24.camel@z60m.optimlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1194616213.8643.24.camel@z60m.optimlabs.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.992, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.41, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-hackers@freebsd.org, Ian FREISLICH , "Aryeh M. Friedman" , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 15:46:19 -0000 On 2007-11-09 21:49, OutbackDingo wrote: > well thats kinda hard to do with CVS, though other revision systems such > as mercurial, bazaar, git and perforce, even subversion do it well, > there is also a mercurial respository for FreeBSD out there some where That is cool, but it takes a bit of familiarity with both CVS *and* the target SCM, so it may be worth sticking with CVS for a while. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 16:36:44 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEB5716A479 for ; Fri, 9 Nov 2007 16:36:44 +0000 (UTC) (envelope-from randyhyde@earthlink.net) Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) by mx1.freebsd.org (Postfix) with ESMTP id 902C013C481 for ; Fri, 9 Nov 2007 16:36:44 +0000 (UTC) (envelope-from randyhyde@earthlink.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=cpKoNzKuT+cewhCVrWDtA931e7oafUYlwOu2RKSXLw6Yilpfai8xhOkV//eI+l2+; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP; Received: from [66.215.252.78] (helo=pentiv) by elasmtp-galgo.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1IqWqU-0001h0-TY for freebsd-hackers@freebsd.org; Fri, 09 Nov 2007 11:36:39 -0500 Message-ID: <002f01c822ee$b04ac4b0$6302a8c0@pentiv> From: "Randall Hyde" To: References: <000701c82253$b3a8c030$6302a8c0@pentiv> <20071108225238.GB22005@dan.emsphone.com> <4734061D.9000606@freebsd.org> Date: Fri, 9 Nov 2007 08:36:32 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 X-ELNK-Trace: eba5e0c9192a36dcd6dd28457998182d7e972de0d01da94027df9aca3d9f83411742da86437c4f23350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.215.252.78 Subject: Re: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 16:36:44 -0000 > > You should also carefully do an strace or similar on > Windows and Linux as well. You may find that you're > doing a system call per byte on FreeBSD but not on > those other systems. Certainly this might be possible under Windows, as I have no idea what happens once I link in one of the various kernel.dll modules. Under Linux, however, I am directly issuing the INT($80) instruction, so one system call per byte is being made. To answer a different question in the thread, I'm pretty sure I'm making only one FreeBSD call per byte, at least in one of the cases I posted. You'll note that one of the test examples made a call to "bsd.read( fd, buffer, 1 );". That's just a function I wrote that rearranges parameters and sets up the stack, executes an INT( $80 ) instruction, cleans up the stack, and returns to the user. In a different test example I *was* making a couple of calls, (specifically to lseek to check to see if I'd reached EOF), but the performance difference was minimal (i.e., the time was being spent in the read call). I have to run off for an appt right now, but I'll try the "dd" command later today and see what that reports. I wonder if I'm only getting one character output per time slice, or something like that? Cheers, Randy Hyde From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 16:59:44 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14D1016A417 for ; Fri, 9 Nov 2007 16:59:44 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from freebsd.alaskaparadise.com (freebsd.alaskaparadise.com [208.79.80.117]) by mx1.freebsd.org (Postfix) with ESMTP id D4D5C13C4AC for ; Fri, 9 Nov 2007 16:59:43 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from 137-42-178-69.gci.net (137-42-178-69.gci.net [69.178.42.137]) by freebsd.alaskaparadise.com (Postfix) with ESMTP id 39A7923833D6; Fri, 9 Nov 2007 16:46:11 +0000 (UTC) From: Beech Rintoul To: "Aryeh M. Friedman" Date: Fri, 9 Nov 2007 07:46:03 -0900 User-Agent: KMail/1.9.7 References: <4733E878.2050804@gmail.com> In-Reply-To: <4733E878.2050804@gmail.com> X-Face: jC2w\k*Q1\0DA2Q0Eh&BrP/Rt2M,^2O#R07VoT98m*>miQF9%Bi9vy`F6cPjwEe?m,)=?utf-8?q?2=0A=09X=3FM=5C=3AOE9QgZ?="xT3/n3,3MJ7N=Cfkmi%f(w^~X"SUxn>; 27NO; C+)g[7J`$G*SN>{<=?utf-8?q?O=3Bg7=7C=0A=09o=7D=265A=5D4?=@7D`=Eb@Zs1Ln814?]|k@'bG=.Ca"[|8+_.OsNAo8!#?4u MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711090746.05647.beech@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Beech Rintoul List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 16:59:44 -0000 On Thursday 08 November 2007, Aryeh M. Friedman said: > First of all I am posting to both -current and -hackers because > -hackers seems to be very low volume. Please do not cross post. It is considered bad form and generates thousands of unnecessary emails. Beech -- --------------------------------------------------------------------------------------- Beech Rintoul - FreeBSD Developer - beech@FreeBSD.org /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --------------------------------------------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 17:34:16 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D034716A46B; Fri, 9 Nov 2007 17:34:16 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F3F7413C480; Fri, 9 Nov 2007 17:34:15 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47349A17.3080806@FreeBSD.org> Date: Fri, 09 Nov 2007 18:34:15 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Alexey Popov References: <47137D36.1020305@chistydom.ru> <47140906.2020107@FreeBSD.org> <47146FB4.6040306@chistydom.ru> <47147E49.9020301@FreeBSD.org> <47149E6E.9000500@chistydom.ru> <4715035D.2090802@FreeBSD.org> <4715C297.1020905@chistydom.ru> <4715C5D7.7060806@FreeBSD.org> <471EE4D9.5080307@chistydom.ru> <4723BF87.20302@FreeBSD.org> <47344E47.9050908@chistydom.ru> In-Reply-To: <47344E47.9050908@chistydom.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: amrd disk performance drop after running under high load X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 17:34:16 -0000 Alexey Popov wrote: > Hi. > > Kris Kennaway wrote:te: > >> In the "good" case you are getting a much higher interrupt rate but >> with the data you provided I can't tell where from. You need to run >> vmstat -i at regular intervals (e.g. every 10 seconds for a minute) >> during the "good" and "bad" times, since it only provides counters and >> an average rate over the uptime of the system. > > Now I'm running 10-process lighttpd and the problem became no so big. > > I collected interrupt stats and it shows no relation beetween > ionterrupts and slowdowns. Here is it: > http://83.167.98.162/gprof/intr-graph/ > > Also I have similiar statistics on mutex profiling and it shows there's > no problem in mutexes. http://83.167.98.162/gprof/mtx-graph/mtxgifnew/ > > I have no idea what else to check. > > With best regards, > Alexey Popov > > I don't know what this graph is showing me :) When precisely is the system behaving poorly? Kris From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 18:51:39 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C034216A476 for ; Fri, 9 Nov 2007 18:51:39 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from fallback-mx.in-berlin.de (fallback-mx.in-berlin.de [192.109.42.17]) by mx1.freebsd.org (Postfix) with ESMTP id 5708D13C4CA for ; Fri, 9 Nov 2007 18:51:39 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by fallback-mx.in-berlin.de (8.14.1/8.13.6/Debian-1) with ESMTP id lA9E5vPG002475 for ; Fri, 9 Nov 2007 15:05:57 +0100 X-Envelope-From: stsp@stsp.name X-Envelope-To: Received: from stsp.lan (world77.mi.fu-berlin.de [160.45.115.77]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id lA9E5m2R031421 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 9 Nov 2007 15:05:49 +0100 Received: from jack.stsp.lan (stsp@localhost.stsp.lan [127.0.0.1]) by stsp.lan (8.14.1/8.14.1) with ESMTP id lA9E5liN011448 for ; Fri, 9 Nov 2007 15:05:47 +0100 (CET) Received: (from stsp@localhost) by jack.stsp.lan (8.14.1/8.14.1/Submit) id lA9E5lEC029999 for freebsd-hackers@freebsd.org; Fri, 9 Nov 2007 15:05:47 +0100 (CET) X-Authentication-Warning: jack.stsp.lan: stsp set sender to stsp@stsp.name using -f Date: Fri, 9 Nov 2007 15:05:47 +0100 From: Stefan Sperling To: freebsd-hackers@freebsd.org Message-ID: <20071109140547.GE27811@jack.stsp.lan> Mail-Followup-To: freebsd-hackers@freebsd.org References: <4733F1DA.60706@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline In-Reply-To: <4733F1DA.60706@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 18:51:39 -0000 --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > You won't be able to commit to the BSD repo from your server. Well, Aryeh wants to commit to a _local_ copy of the BSD repo. This works. See development(7). One thing the man page does not mention is that you need to change the commit hook in CVSROOT (which you only copy on first sync and never ever again) to simply 'exit 0' to allow commits. --=20 stefan http://stsp.name PGP Key: 0xF59D25F0 --6Nae48J/T25AfBN4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (OpenBSD) iD8DBQFHNGk75dMCc/WdJfARAnK6AJ4yxLRHi0DvyMkRpSc+Jztdzz7GRgCg93EO SeejmXlHeq2iQjl3coNBZWw= =NgcI -----END PGP SIGNATURE----- --6Nae48J/T25AfBN4-- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 19:23:41 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19E7016A421 for ; Fri, 9 Nov 2007 19:23:41 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outH.internet-mail-service.net (outH.internet-mail-service.net [216.240.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 04C3613C4C1 for ; Fri, 9 Nov 2007 19:23:40 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Fri, 09 Nov 2007 11:23:09 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id A9CD712699F; Fri, 9 Nov 2007 11:23:08 -0800 (PST) Message-ID: <4734B397.4010905@elischer.org> Date: Fri, 09 Nov 2007 11:23:03 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: OutbackDingo References: <4733F1DA.60706@gmail.com> <1194616213.8643.24.camel@z60m.optimlabs.com> <1194619407.64797.64.camel@localhost> <1194621176.1219.3.camel@z60m.optimlabs.com> In-Reply-To: <1194621176.1219.3.camel@z60m.optimlabs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tom Evans , freebsd-hackers@freebsd.org, Ian FREISLICH , "Aryeh M. Friedman" , freebsd-current@freebsd.org Subject: Re: questions on development(7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 19:23:41 -0000 OutbackDingo wrote: > On Fri, 2007-11-09 at 14:43 +0000, Tom Evans wrote: >> On Fri, 2007-11-09 at 21:49 +0800, OutbackDingo wrote: >>> well thats kinda hard to do with CVS, though other revision systems such >>> as mercurial, bazaar, git and perforce, even subversion do it well, >>> there is also a mercurial respository for FreeBSD out there some where >>> >>> On Fri, 2007-11-09 at 05:36 +0000, Aryeh M. Friedman wrote: >>>>>> 2. If yes to #1 how do I setup keeping everything except my modified >>>>>> code in sync (and if possible to retro activally apply patchs from the >>>>>> local branch unto the main source tree [/usr/src2]) >>>>> You won't be able to commit to the BSD repo from your server. I >>>>> think you should treat your repo as read only and use cvsup to keep >>>>> it up to date. At least that's what I do. >>>> What I meant was how do I keep from clobbering my local changes? >>>> >> (Nothing like top posting to destroy the thread flow) >> >> OutbackDingo is incorrect. That is the entire purpose of CVS, otherwise >> they might as well call it VS.. >> >> Your /usr/src will be a checkout of a particular branch of freebsd >> (called a working copy). You periodically update your cvs repository >> (where you checkout from) with the latest freebsd commits. >> When you wish to, you update your working copy from your repository by >> issuing a 'cvs up'. This merges changes in the repository into your >> local copy, merging in with the local changes. >> When you want to see what has changed since you last did a 'cvs up', >> issue a 'cvs -n up'. >> When you want to see the local modifications in your working copy, issue >> a 'cvs diff'. >> >> Read the cvs red-bean book for more info. >> http://cvsbook.red-bean.com/cvsbook.html >> >> HTH >> >> Tom > > Well I wouldnt say incorrect as i stated it was hard to do. Meaning its > easier to complete these tasks with a different RCS, in my OWN opinion. > So as not to clobber ones changes locally. I didnt say it could not be > done, its simply more difficult to achieve the same result as with other > RCS systems. The reason I sated as more difficult to do, Ive seen quite > a number of times when tracking a vendor branch, that merges had to be > more manually handled because of local changes. This is another of those > "preferences" people get into wars over, Best OS, Browser, RCS etc etc ok having done this for years here's how it goes. If you have a private CVS repo mirroring the FreeBSD tree then you can keep your changes up to date in your "checked out" source tree. but you can generally not check them in anywhere. You CAN keep your own special branch (I think it was branch numbers above 100000 or something, check cvsup docs) that cvsup will not over write, and you can check in your changes there but that branch will not automatically update from freebsd.org so you will need to do branch updates regularly. (and that can be tricky and time consuming in CVS) otherwise your branch will get out-of date when compaerd with -current. usually I just keep my work checked out until I'm ready to feed the changes back but I take regular diffs and stash them away as 'backups' :-) This is why we have the perforce repo in addition to CVS. it is good at doing large branch manipulations, and it is more feasible to keep your own branch in sync with the branch that is kept up to date with the CVS tree. Unfortunatly, we don't give out access to that to 'anybody', it may be possible to get mercurial to do similar, or if you could get a 'personal use' p4 server you could get the scripts from Peter and see if you could do the same. I wonder if ther is a way we could broadcast changes to the p4 'head' branch so that people could keep their own p4 servers up to date.. > etc... > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 10 04:00:49 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08B1A16A417 for ; Sat, 10 Nov 2007 04:00:49 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id E0B2513C4A7 for ; Sat, 10 Nov 2007 04:00:48 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAA40fBh032443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2007 20:00:42 -0800 X-Auth-Received: from [127.0.0.1] (node127.245.100.208.1dial.com [208.100.245.127] (may be forged)) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAA40HPJ017394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 20:00:39 -0800 Message-ID: <47352CAF.1080609@u.washington.edu> Date: Fri, 09 Nov 2007 19:59:43 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Maslan , FreeBSD Hackers References: <319cceca0711030605m370709d1ua0c694d12dbb1766@mail.gmail.com> <47301ADA.3080509@u.washington.edu> <319cceca0711061227h6dbaf2fdib03a962aae7ddad1@mail.gmail.com> <4730D640.3080304@u.washington.edu> <319cceca0711061758m786918c1y2594e7a11e91d873@mail.gmail.com> <47312888.1070400@u.washington.edu> In-Reply-To: <47312888.1070400@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.9.194525 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_NAME_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __USER_AGENT 0' Cc: Subject: Re: pkg_add doesn't keep dependent pkgs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2007 04:00:49 -0000 Garrett Cooper wrote: > Maslan wrote: >> That would be great. >> I'll wait for the patch >> >> >> On Nov 6, 2007 1:01 PM, Garrett Cooper >> wrote: >> >>> Maslan wrote: >>> >>>>> Package dependencies may change, depending on the user >>>>> settings and >>>>> port maintainers configuration for the port (i.e. Makefiles). The >>>>> same >>>>> sort of applies to packages as well. >>>>> Or were you referring to just packages instead of ports based >>>>> package metadata :)? >>>>> Or maybe a better question is: what are you trying to accomplish? >>>>> -Garrett >>>>> >>>>> >>>>> >>>> The problem is that i always try FreeBSD snapshots, and each time i >>>> did a fresh install, i found my self in need to install xorg & gnome. >>>> so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the >>>> package itself only without its dependencies, it would be better for >>>> me to keep the packages i use rather than downloading them every time. >>>> >>>> The ports has no problem with that, since it leaves all the port >>>> dependencies in /usr/ports/distfiles but i prefer packages than >>>> recompiling every time i install a fresh system something like gnome >>>> would eat my day compiling it. >>>> >>> Hmm... that is indeed silly. >>> >>> Let me see if I can fire up a patch for that little issue sometime >>> either next week or the week after to fix that. >>> >>> -Garrett > That's assuming (IIRC) pkg_add doesn't invoke libfetch related APIs > directly and extract straight to the command line. It may take a bit > more work than I initially think, but a patch *should* be trivial to > create. > -Garrett The URL provided to this really simple patch should fix the problem for -K not being propagated down child pkg_add processes (http://students.washington.edu/youshi10/posted/pkg_add_keep_flag_prop.patch). I would test it out but my FreeBSD box is still not hooked up to the net, so no dice :(. It's simple enough though that I'm almost 100% positive that it's correct. If the behavior's wrong or slightly askew, please let me know and I'll see if I can hack around the code a bit more. You made a good point though in terms of usage and propagating / whitelisting options from parent to child (master to slave?) copies of pkg_install apps. I'll write that up for my todo list for the pkg_install rewrite (VLSI's kicking my ass this quarter along with work, so I haven't had a real chance to sit down and make a plan for developing pkg_install). Cheers, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 10 13:03:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BD6C16A468 for ; Sat, 10 Nov 2007 13:03:06 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9F99D13C4B5 for ; Sat, 10 Nov 2007 13:03:05 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id lAAD2hOJ001699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Nov 2007 00:02:44 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id lAAD2hen072534; Sun, 11 Nov 2007 00:02:43 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id lAAD2h5p072533; Sun, 11 Nov 2007 00:02:43 +1100 (EST) (envelope-from peter) Date: Sun, 11 Nov 2007 00:02:43 +1100 From: Peter Jeremy To: Randall Hyde Message-ID: <20071110130243.GU82929@server.vk2pj.dyndns.org> References: <000701c82253$b3a8c030$6302a8c0@pentiv> <20071108225238.GB22005@dan.emsphone.com> <4734061D.9000606@freebsd.org> <002f01c822ee$b04ac4b0$6302a8c0@pentiv> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PyMzGVE0NRonI6bs" Content-Disposition: inline In-Reply-To: <002f01c822ee$b04ac4b0$6302a8c0@pentiv> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: Some FreeBSD performance Issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2007 13:03:06 -0000 --PyMzGVE0NRonI6bs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 09, 2007 at 08:36:32AM -0800, Randall Hyde wrote: >To answer a different question in the thread, I'm pretty sure I'm making >only one FreeBSD call per byte, at least in one of the cases I posted. How about using ktrace or similar to confirm this. >I wonder if I'm only getting one character output per time slice, or >something like that? Maybe, though I don't understand why this would occur. If you time(1) your program, what are the real/user/system time breakdown? That will help clarify where the slowdown is located. Have you tried the dd(1) command suggested. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an RFC2821-compliant MTA. --PyMzGVE0NRonI6bs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHNavz/opHv/APuIcRAs/uAJ9fYLHzIXo/aqMBodk5qRBqWVFi7gCfbzjn P5eKhofT0J3VNiuHgs9z0Ws= =R6nQ -----END PGP SIGNATURE----- --PyMzGVE0NRonI6bs--