From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 00:30:43 2008 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 D6E741065683; Sun, 13 Jul 2008 00:30:43 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from bsdevel.alaskaparadise.com (bsdevel.alaskaparadise.com [208.86.224.193]) by mx1.freebsd.org (Postfix) with ESMTP id AEA438FC12; Sun, 13 Jul 2008 00:30:43 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from 132-34-178-69.gci.net (132-34-178-69.gci.net [69.178.34.132]) by bsdevel.alaskaparadise.com (Postfix) with ESMTP id 57AD928E2863; Sun, 13 Jul 2008 00:30:42 +0000 (UTC) From: Beech Rintoul To: Stanislav Sedov Date: Sat, 12 Jul 2008 16:26:55 -0800 User-Agent: KMail/1.9.7 References: <200805182328.45822.beech@freebsd.org> <200807061326.30152.beech@freebsd.org> <20080713023852.a0977807.stas@FreeBSD.org> In-Reply-To: <20080713023852.a0977807.stas@FreeBSD.org> 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: <200807121626.58487.beech@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Help with copytree code 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: Sun, 13 Jul 2008 00:30:43 -0000 On Saturday 12 July 2008, Stanislav Sedov said: > On Sun, 6 Jul 2008 13:26:21 -0800 > > Beech Rintoul mentioned: > > I'd just like to thank stas@ and everyone who replied with > > suggestions, code etc. I believe that I now have something > > workable and it's been submitted to portmgr for review and > > possible inclusion in bsd.port.mk along with some new features of > > my own. Hopefully, this will fix a long standing problem with > > copytree_*. > > Have you filled the PR so we could review/comment? No, portmgr (Pav) has it and is reviewing. I'll chat with him and see if he wants me to file a pr. Meanwhile I'll be happy to send it to anyone who wants it. The FreeBSD server will just strip it off and I'm moving webservers today so I can't post it for a while. 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/7.0R/announce.html --------------------------------------------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 12 22:23:15 2008 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 A1442106567F for ; Sat, 12 Jul 2008 22:23:15 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 882D08FC13 for ; Sat, 12 Jul 2008 22:23:15 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6CM4bB05892 for ; Sat, 12 Jul 2008 15:04:37 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6CM4bI24087 for ; Sat, 12 Jul 2008 15:04:37 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Sat, 12 Jul 2008 15:04:37 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Sun, 13 Jul 2008 00:49:11 +0000 Subject: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 12 Jul 2008 22:23:15 -0000 Hi folks, Hopefully this is a good list for this topic. It seems like there has been a regression in interactivity from 6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After upgrading my single-cpu amd64 box, 7.0 has much worse latency. When running a kernel compile, there is a noticeable lag to echo my typing or scroll my browser windows, and playing an mp3 frequently cuts out for a second or two. This did not happen on 6.3-RELEASE. I wrote a small program which forks two processes that run gettimeofday() in a tight loop to see how long they get scheduled out. On 6.3 the maximum latency is usually under 100 ms. On 7.0 it is 500 ms or more even when nothing else is running on the system. When a compile is also running it is sometimes 1400 ms or more. SCHED_ULE is much better, so I've switched over. But it's not the default yet, and most people are still going to be using SCHED_4BSD. It used to be acceptable but now it isn't. Does anyone know why it's regressed so badly? -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 01:11:23 2008 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 D8480106566C for ; Sun, 13 Jul 2008 01:11:23 +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 81AC68FC0A; Sun, 13 Jul 2008 01:11:22 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <4879563B.5090201@FreeBSD.org> Date: Sun, 13 Jul 2008 03:11:23 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Nate Eldredge References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 01:11:23 -0000 Nate Eldredge wrote: > Hi folks, > > Hopefully this is a good list for this topic. > > It seems like there has been a regression in interactivity from > 6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After > upgrading my single-cpu amd64 box, 7.0 has much worse latency. When > running a kernel compile, there is a noticeable lag to echo my typing or > scroll my browser windows, and playing an mp3 frequently cuts out for a > second or two. This did not happen on 6.3-RELEASE. Are you sure it's not the x.org server bug that was present in the version shipped with 7.0? Update to the latest version and see if your X interactivity improves. Kris > I wrote a small program which forks two processes that run > gettimeofday() in a tight loop to see how long they get scheduled out. > On 6.3 the maximum latency is usually under 100 ms. On 7.0 it is 500 ms > or more even when nothing else is running on the system. When a compile > is also running it is sometimes 1400 ms or more. > > SCHED_ULE is much better, so I've switched over. But it's not the > default yet, and most people are still going to be using SCHED_4BSD. It > used to be acceptable but now it isn't. Does anyone know why it's > regressed so badly? > From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 06:09:11 2008 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 882F61065670 for ; Sun, 13 Jul 2008 06:09:11 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.224]) by mx1.freebsd.org (Postfix) with ESMTP id 3DBEF8FC17 for ; Sun, 13 Jul 2008 06:09:10 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: by qb-out-0506.google.com with SMTP id q12so1884054qbq.13 for ; Sat, 12 Jul 2008 23:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Ef2KBXGJi1Pf/vRt4eaazJek3Oal3+NTEXPQPCgZNws=; b=K5s0Cye1bW3cy8vAByEUBgvqjfp6DEBzADpdu6BkiHtfCURnVGsxgU1XpSNeJI/zS/ O7DAgzxkHnp+votHAu49yvJiImiwGjPW9eO1nnjIr8hJNFH099tI2yJ8A2L789O8Vwr4 yyeoYb0cR9ntoPVgQcd8ic4lxUvgWDjAgxHDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=l6mmhcJMgBAXoWuP0Lc9lxYVytQbXHlVYRI9m90SoBaYFaqN/Ysj23ame+sY1VhI95 yC9v9v4yx0FESwsCSbTWeAhK9PoF52e9fd7zB0OBJwHbACVdTckSlOroZaBwudz7tKPc EIxQ92tHZLdkref1F8QWxp6LTwLutyqLD6/Gk= Received: by 10.142.242.11 with SMTP id p11mr3766248wfh.135.1215929349868; Sat, 12 Jul 2008 23:09:09 -0700 (PDT) Received: by 10.142.87.12 with HTTP; Sat, 12 Jul 2008 23:09:09 -0700 (PDT) Message-ID: <30fc78250807122309r21ea625dn58c93ac7d1f3c345@mail.gmail.com> Date: Sun, 13 Jul 2008 09:09:09 +0300 From: "Aggelidis Nikos" To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: weird restarts when compiling 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, 13 Jul 2008 06:09:11 -0000 Hi to all the list, i 've been using FreeBSD for almost a month ,and i have this weird problem. Sometimes when i try to compile a program the computer will hard-reset itself, like someone pulled of the plug... For example yesterday i was trying to install jdk1.6 + eclipse, and while i was compiling eclipse {more precisely -if i remember correctly- the "diablo-jdk" needed for eclipse} the computer rebooted itself. The load of the computer was: 2-3xterms, 1 Konversation irc client ,several opera9.51 windows, 1-2 konqueror windows, and 1-2 Firefox widows. I have a dual core box with 2GB of memory and i use freebsd7 32bit. The computer was online for 8hours with almost the same load {minus the compilation-procedure}. * Has anyone had problems like this? * What can i do to investigate a bit more what was the situation before the restart? * Is there anyway to solve this problem. thanks for your help, nikos PS: i could blame the power company but the above problem has happened before{several times} when i tried to compile "big" programs like firefox or do a pkgdb -Fu, so i don't think it is this. From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 06:51:24 2008 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 554FF1065673 for ; Sun, 13 Jul 2008 06:51:24 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id E90C88FC0A for ; Sun, 13 Jul 2008 06:51:23 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 63698 invoked by uid 1001); 13 Jul 2008 02:51:10 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Sun, 13 Jul 2008 02:51:09 -0400 Date: Sun, 13 Jul 2008 02:51:08 -0400 To: "Aggelidis Nikos" Message-ID: <20080713025108.3839d97e@bhuda.mired.org> In-Reply-To: <30fc78250807122309r21ea625dn58c93ac7d1f3c345@mail.gmail.com> References: <30fc78250807122309r21ea625dn58c93ac7d1f3c345@mail.gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: weird restarts when compiling 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, 13 Jul 2008 06:51:24 -0000 On Sun, 13 Jul 2008 09:09:09 +0300 "Aggelidis Nikos" wrote: > Hi to all the list, i 've been using FreeBSD for almost a month ,and i > have this weird problem. Sometimes when i try to compile a program the > computer will hard-reset itself, like someone pulled of the plug... > For example yesterday i was trying to install jdk1.6 + eclipse, and > while i was compiling eclipse {more precisely -if i remember > correctly- the "diablo-jdk" needed for eclipse} the computer rebooted > itself. > > The load of the computer was: 2-3xterms, 1 Konversation irc client > ,several opera9.51 windows, 1-2 konqueror windows, and 1-2 Firefox > widows. I have a dual core box with 2GB of memory and i use freebsd7 > 32bit. The computer was online for 8hours with almost the same load > {minus the compilation-procedure}. > > * Has anyone had problems like this? Yes. It's always turned out to be flaky hardware for me. > * What can i do to investigate a bit more what was the situation > before the restart? Look through /var/log/messages. > * Is there anyway to solve this problem. Well, you really can't "solve" it, so much as troubleshoot it. Make up a list of possible causes, and then start checking each possible cause. You haven't given any real information about the system or the problem, so we can't eliminate anything. My top suspects would be the PSU (old or inadequate) and CPU (overheating or overclocked). Memory and the I/O subsystem would be next, but they tend to cause random process failure rather than system shutdowns when they go flaky, so I'd try them last. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 07:06:15 2008 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 9DD5A106567A for ; Sun, 13 Jul 2008 07:06:15 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: from hunter.Sisis.de (mail.oclc.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id 017318FC12 for ; Sun, 13 Jul 2008 07:06:14 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id IAA26701 for ; Sun, 13 Jul 2008 08:55:51 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) Received: from ppp-88-217-60-45.dynamic.mnet-online.de(88.217.60.45) by hunter.Sisis.de via smap (V2.1) id xma026682; Sun, 13 Jul 08 08:55:19 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m6D73CMW003548 for freebsd-hackers@freebsd.org; Sun, 13 Jul 2008 09:03:12 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Sun, 13 Jul 2008 09:03:12 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080713070312.GA3473@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) Subject: merging into DVD+RW with growisofs && non aligned DMA transfer (7.0R) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2008 07:06:15 -0000 Hello, I wanted to add a file to an already written DVD+RW (written a day before on the same system) with # growisofs -M /dev/cd0 -r -T -J -joliet-long -v directory This produced tons of error messages via syslog as Jul 11 13:45:30 rebelion kernel: ata0: FAILURE - non aligned DMA transfer attempted Jul 11 13:45:30 rebelion kernel: acd0: setting up DMA failed and the only way to get the system back to a usable state was rebooting it; I've reloaded the files from the DVD to the file system, added the file I wanted get merged and wrote the DVD again with -Z which worked fine; this is with FreeBSD-7.0R; what is wrong with -M or what I've done wrong? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 08:04:32 2008 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 73B611065670 for ; Sun, 13 Jul 2008 08:04:32 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 422848FC12 for ; Sun, 13 Jul 2008 08:04:32 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so3743649wfg.7 for ; Sun, 13 Jul 2008 01:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=plLkdo7sFO0GvseKARWVNY1caGfKUpoNjjzXWjyFZQ0=; b=ruuRHzd3xn0VKVXX9Xh1rHJggXk/F43A4oU2b5GugVlvJkzCarD9d0ACkEvd4DDcML 9ZEkGfl70EY4/uCbzjd6n1xcuWRliZWwFQV3/g9Z2Um687reboUH0oA+NaG2ilDto3rE nIrc5wdh0ntWLHURVfPpLFkkwaQlz39UvOagg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=axBoUptnfCEzc4dhz7SOPXCjkh4nirZ+7PZIYA3QdzkWTta+UA3P323w+a/gyqTlqY HyK3XjnGyu/6GmF4lOHCWsjBLr76LQowSxfgjHEA9XLXHU3ARh6F+uzcingAs3ow0Wdr knAwUL5Pz7fUua4hYRF2IKCRawnvH1DPUnS8E= Received: by 10.142.232.20 with SMTP id e20mr3784518wfh.109.1215936271788; Sun, 13 Jul 2008 01:04:31 -0700 (PDT) Received: by 10.142.87.12 with HTTP; Sun, 13 Jul 2008 01:04:31 -0700 (PDT) Message-ID: <30fc78250807130104p3d1447behc40cf71c4b817d4@mail.gmail.com> Date: Sun, 13 Jul 2008 11:04:31 +0300 From: "Aggelidis Nikos" To: "Mike Meyer" In-Reply-To: <20080713025108.3839d97e@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <30fc78250807122309r21ea625dn58c93ac7d1f3c345@mail.gmail.com> <20080713025108.3839d97e@bhuda.mired.org> Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: weird restarts when compiling 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, 13 Jul 2008 08:04:32 -0000 Thanks for your answers Manolis and Mike. In the beginning i didn't suspect hardware because it happened only at compilation procedures. Now i realize that every other task i do isn't really demanding. > Look through /var/log/messages. i get this: Jul 13 09:00:00 apollo newsyslog[1018]: logfile turned over due to size>100K * CPU overheating -> Is there anyway to check for cpu temperatures within freebsd? -> I 've used the pc for like 8 hours in a really hot day but it didn't restart...if this can be considered as an indication. *Memory -> i used memtest ,from an ubuntu live cd, to check the memory and everything works fine according to it. *PSU I have a 400Watt PSU... maybe this is inadequate. I will try to swap it for something stronger to see how it goes. In general where are there any stress tests i can do, to test the PSU and some major subsystems of the computer? thanks in advance, nikos PS: this was a ready-made pc that had it's p4 processor upgraded to a dual core. It also got a new motherboard and 2G of ddr2. It has an old nvidia GeForce fx 5200, and a 400watt nameless PSU. I only have freebsd,which i installed a month ago, on it. From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 08:06:57 2008 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 3A73F1065674 for ; Sun, 13 Jul 2008 08:06:57 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from nexus.in-nomine.org (dhammapada.xs4all.nl [82.95.168.248]) by mx1.freebsd.org (Postfix) with ESMTP id DF2998FC15 for ; Sun, 13 Jul 2008 08:06:56 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from localhost (localhost.domini.in-nomine.org [127.0.0.1]) by nexus.in-nomine.org (Postfix) with ESMTP id 2508CD81C; Sun, 13 Jul 2008 10:06:55 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at in-nomine.org Received: from nexus.in-nomine.org ([127.0.0.1]) by localhost (nexus.domini.in-nomine.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYdfYEIDeL0p; Sun, 13 Jul 2008 10:06:54 +0200 (CEST) Received: by nexus.in-nomine.org (Postfix, from userid 1000) id 4B722D6D6; Sun, 13 Jul 2008 10:06:54 +0200 (CEST) Date: Sun, 13 Jul 2008 10:06:54 +0200 From: Jeroen Ruigrok van der Werven To: Aggelidis Nikos Message-ID: <20080713080654.GD27106@nexus.in-nomine.org> References: <30fc78250807122309r21ea625dn58c93ac7d1f3c345@mail.gmail.com> <20080713025108.3839d97e@bhuda.mired.org> <30fc78250807130104p3d1447behc40cf71c4b817d4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30fc78250807130104p3d1447behc40cf71c4b817d4@mail.gmail.com> Organisation: Ninth Circle Enterprises User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, Mike Meyer , freebsd-questions@freebsd.org Subject: Re: weird restarts when compiling 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, 13 Jul 2008 08:06:57 -0000 -On [20080713 10:04], Aggelidis Nikos (aggelidis.news@gmail.com) wrote: >> Look through /var/log/messages. >i get this: Jul 13 09:00:00 apollo newsyslog[1018]: logfile turned >over due to size>100K Then look at /var/log/messages.0.bz2 Also, check `last`. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B There is time in life for everything... From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 08:34:12 2008 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 D8C02106564A for ; Sun, 13 Jul 2008 08:34:12 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id B5D668FC0A for ; Sun, 13 Jul 2008 08:34:12 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6D8YCB04677; Sun, 13 Jul 2008 01:34:12 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6D8YBP03438; Sun, 13 Jul 2008 01:34:11 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Sun, 13 Jul 2008 01:34:11 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Kris Kennaway In-Reply-To: <4879563B.5090201@FreeBSD.org> Message-ID: References: <4879563B.5090201@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@FreeBSD.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 08:34:12 -0000 On Sun, 13 Jul 2008, Kris Kennaway wrote: > Nate Eldredge wrote: >> Hi folks, >> >> Hopefully this is a good list for this topic. >> >> It seems like there has been a regression in interactivity from 6.3-RELEASE >> to 7.0-RELEASE when using the SCHED_4BSD scheduler. After upgrading my >> single-cpu amd64 box, 7.0 has much worse latency. When running a kernel >> compile, there is a noticeable lag to echo my typing or scroll my browser >> windows, and playing an mp3 frequently cuts out for a second or two. This >> did not happen on 6.3-RELEASE. > > Are you sure it's not the x.org server bug that was present in the version > shipped with 7.0? Update to the latest version and see if your X > interactivity improves. Yes, I had not yet upgraded my x.org port when testing this, so it was the same x.org that was fine under 6.3. Also: >> I wrote a small program which forks two processes that run gettimeofday() >> in a tight loop to see how long they get scheduled out. On 6.3 the maximum >> latency is usually under 100 ms. On 7.0 it is 500 ms or more even when >> nothing else is running on the system. When a compile is also running it >> is sometimes 1400 ms or more. This test shows a difference even in single user mode, when X is not running at all. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 09:26:03 2008 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 E463F106567B; Sun, 13 Jul 2008 09:26:03 +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 626B68FC0A; Sun, 13 Jul 2008 09:26:03 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from stsp.name (ted.stsp.name [217.197.84.186]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id m6D8oCSK005910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 13 Jul 2008 10:50:12 +0200 Received: from ted.stsp.name (localhost [127.0.0.1]) by stsp.name (8.14.2/8.14.2) with ESMTP id m6D8oNr9072707; Sun, 13 Jul 2008 10:50:23 +0200 (CEST) (envelope-from stsp@ted.stsp.name) Received: (from stsp@localhost) by ted.stsp.name (8.14.2/8.14.2/Submit) id m6D8oM9X072662; Sun, 13 Jul 2008 10:50:22 +0200 (CEST) (envelope-from stsp) Date: Sun, 13 Jul 2008 10:50:22 +0200 From: Stefan Sperling To: Nate Eldredge Message-ID: <20080713085022.GB8139@ted.stsp.name> References: <4879563B.5090201@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NMuMz9nt05w80d4+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: freebsd-hackers@FreeBSD.org, Kris Kennaway Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 09:26:04 -0000 --NMuMz9nt05w80d4+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 13, 2008 at 01:34:11AM -0700, Nate Eldredge wrote: > On Sun, 13 Jul 2008, Kris Kennaway wrote: >=20 > > Nate Eldredge wrote: > >> I wrote a small program which forks two processes that run gettimeofda= y()=20 > >> in a tight loop to see how long they get scheduled out. On 6.3 the ma= ximum=20 > >> latency is usually under 100 ms. On 7.0 it is 500 ms or more even whe= n=20 > >> nothing else is running on the system. When a compile is also running= it=20 > >> is sometimes 1400 ms or more. >=20 > This test shows a difference even in single user mode, when X is not=20 > running at all. I was seeing similar problems (audio stutter during compiles, jerky mouse) after upgrading to 7.0. The box is an Athlon-XP 2400+ with 1GB of RAM. Since removing SMP support from the kernel and switching to ULE, interactivity has been acceptible again. I did not update the xserver at the time, and I can't recall if it has been updated since. Stefan --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkh5wc4ACgkQ5dMCc/WdJfBlFwCdG7KPysizS6RlM0nuXAIOLAiD tUcAnjF7IakNTJCcPGLAp/dGkoziLWeD =CAVI -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 10:09:52 2008 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 B98BC1065675 for ; Sun, 13 Jul 2008 10:09:52 +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 865838FC1E; Sun, 13 Jul 2008 10:09:51 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <4879D46E.7080104@FreeBSD.org> Date: Sun, 13 Jul 2008 12:09:50 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Nate Eldredge References: <4879563B.5090201@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 10:09:52 -0000 Nate Eldredge wrote: > On Sun, 13 Jul 2008, Kris Kennaway wrote: > >> Nate Eldredge wrote: >>> Hi folks, >>> >>> Hopefully this is a good list for this topic. >>> >>> It seems like there has been a regression in interactivity from >>> 6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. >>> After upgrading my single-cpu amd64 box, 7.0 has much worse latency. >>> When running a kernel compile, there is a noticeable lag to echo my >>> typing or scroll my browser windows, and playing an mp3 frequently >>> cuts out for a second or two. This did not happen on 6.3-RELEASE. >> >> Are you sure it's not the x.org server bug that was present in the >> version shipped with 7.0? Update to the latest version and see if >> your X interactivity improves. > > Yes, I had not yet upgraded my x.org port when testing this, so it was > the same x.org that was fine under 6.3. Also: > >>> I wrote a small program which forks two processes that run >>> gettimeofday() in a tight loop to see how long they get scheduled >>> out. On 6.3 the maximum latency is usually under 100 ms. On 7.0 it >>> is 500 ms or more even when nothing else is running on the system. >>> When a compile is also running it is sometimes 1400 ms or more. > > This test shows a difference even in single user mode, when X is not > running at all. > It shows *a* difference, but perhaps not the *same* difference. Please humour me and rule it out. Kris From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 10:55:59 2008 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 2511A1065674 for ; Sun, 13 Jul 2008 10:55:59 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.freebsd.org (Postfix) with ESMTP id A83868FC12 for ; Sun, 13 Jul 2008 10:55:58 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m6DAtrL7022121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Jul 2008 20:55:55 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m6DAtmeM056158; Sun, 13 Jul 2008 20:55:48 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m6DAtmGX056157; Sun, 13 Jul 2008 20:55:48 +1000 (EST) (envelope-from peter) Date: Sun, 13 Jul 2008 20:55:48 +1000 From: Peter Jeremy To: Dmitry Morozovsky Message-ID: <20080713105548.GA55221@server.vk2pj.dyndns.org> References: <20080704121833.J35668@woozle.rinet.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20080704121833.J35668@woozle.rinet.ru> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, oleg@rinet.ru Subject: Re: profiling broken on RELENG_7/i386 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, 13 Jul 2008 10:55:59 -0000 --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Jul-04 13:01:11 +0400, Dmitry Morozovsky wrote: >It seems we step on a bug in gcc in RELENG_7/i386 > >It is triggered at least by profiling program which uses getopt(3): I think it's actually in the profiling initialisation code. If you try to run sample code under gdb, you can see that .mcount() is not preserving %ecx, though main() assumes it does. (gdb) disas $eip Dump of assembler code for function main: 0x080481d0 : lea 0x4(%esp),%ecx 0x080481d4 : and $0xfffffff0,%esp 0x080481d7 : pushl 0xfffffffc(%ecx) 0x080481da : push %ebp 0x080481db : mov %esp,%ebp 0x080481dd : push %ecx 0x080481de : sub $0x14,%esp 0x080481e1 : call 0x8051b50 <.mcount> 0x080481e6 : mov 0x4(%ecx),%eax 0x080481e9 : mov (%eax),%eax 0x080481eb : mov %eax,0x8(%esp) 0x080481ef : mov (%ecx),%eax 0x080481f1 : mov %eax,0x4(%esp) 0x080481f5 : movl $0x8066b0a,(%esp) 0x080481fc : call 0x8051b00 0x08048201 : mov $0x0,%eax 0x08048206 : add $0x14,%esp 0x08048209 : pop %ecx 0x0804820a : pop %ebp 0x0804820b : lea 0xfffffffc(%ecx),%esp 0x0804820e : ret =20 End of assembler dump. (gdb) x/10x $esp 0xbfbfeadc: 0x0804815f 0x00000001 0xbfbfeb08 0xbfbfeb10 0xbfbfeaec: 0x00000000 0x00000000 0x00000000 0x00000000 0xbfbfeafc: 0x00000000 0x00000000 (gdb) info regi eax 0xbfbfeb08 -1077941496 ecx 0x1e968 125288 edx 0x8051d1a 134552858 ebx 0x1 1 esp 0xbfbfeadc 0xbfbfeadc ebp 0xbfbfeb00 0xbfbfeb00 esi 0xbfbfeb10 -1077941488 edi 0x0 0 eip 0x80481d0 0x80481d0 eflags 0x282 642 cs 0x33 51 ss 0x3b 59 ds 0x3b 59 es 0x3b 59 fs 0x3b 59 gs 0x1b 27 =2E.. [step through .mcount] =2E.. (gdb) stepi main (argc=3DError accessing memory address 0x1b: Bad address. ) at x.c:4 4 printf("Hello %d %s\n", argc, argv[0]); (gdb) info regi eax 0x1 1 ecx 0x1b 27 edx 0x804815f 134512991 ebx 0x1 1 esp 0xbfbfeab0 0xbfbfeab0 ebp 0xbfbfeac8 0xbfbfeac8 esi 0xbfbfeb10 -1077941488 edi 0x0 0 eip 0x80481e6 0x80481e6 eflags 0x246 582 cs 0x33 51 ss 0x3b 59 ds 0x3b 59 es 0x3b 59 fs 0x3b 59 gs 0x1b 27 --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkh53zQACgkQ/opHv/APuIe+oQCfT/3JMk9dd+g/f1J9aFPaIfHZ yHAAn0VIKv3ROqEHkRstmkHaEsUE2YOV =5j3z -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 11:16:11 2008 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 C2C041065672; Sun, 13 Jul 2008 11:16:11 +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 AA9478FC1A; Sun, 13 Jul 2008 11:16:11 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 951ED1CC092; Sun, 13 Jul 2008 04:16:11 -0700 (PDT) Date: Sun, 13 Jul 2008 04:16:11 -0700 From: Jeremy Chadwick To: Aggelidis Nikos Message-ID: <20080713111611.GA83443@eos.sc1.parodius.com> References: <30fc78250807122309r21ea625dn58c93ac7d1f3c345@mail.gmail.com> <20080713025108.3839d97e@bhuda.mired.org> <30fc78250807130104p3d1447behc40cf71c4b817d4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30fc78250807130104p3d1447behc40cf71c4b817d4@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, Mike Meyer , freebsd-questions@freebsd.org Subject: Re: weird restarts when compiling 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, 13 Jul 2008 11:16:11 -0000 On Sun, Jul 13, 2008 at 11:04:31AM +0300, Aggelidis Nikos wrote: > * CPU overheating > -> Is there anyway to check for cpu temperatures within freebsd? > -> I 've used the pc for like 8 hours in a really hot day but it > didn't restart...if this can be considered as an indication. Not easily. If coretemp(4) is loaded, you should have some sysctls named dev.cpu.X.temperature which contain the temperature of the core in Celcius. Otherwise, you can try utilities like mbmon and healthd, but those were written for old (circa 90s) hardware. Also, are you running powerd(8) on this machine? > *Memory > -> i used memtest ,from an ubuntu live cd, to check the memory and > everything works fine according to it. That's a good start; your memory is probably not the issue then. > *PSU > I have a 400Watt PSU... maybe this is inadequate. I will try to swap > it for something stronger to see how it goes. Wattage is not the only thing that matters with a PSU. Voltages are significantly more important, if you ask me. I'd make a list of what your voltages are (go into the BIOS and see) and provide them here. There may be one which is significantly off, indicating a bad PSU. > In general where are there any stress tests i can do, to test the PSU > and some major subsystems of the computer? Windows offers many free utilities that do this; I'm not sure about FreeBSD. -- | 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 Sun Jul 13 07:47:34 2008 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 8541A1065676; Sun, 13 Jul 2008 07:47:34 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id D86388FC19; Sun, 13 Jul 2008 07:47:33 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id m6D7lUQg094503; Sun, 13 Jul 2008 15:47:30 +0800 (KRAST) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id m6D7lUQw094502; Sun, 13 Jul 2008 15:47:30 +0800 (KRAST) (envelope-from eugen) Date: Sun, 13 Jul 2008 15:47:30 +0800 From: Eugene Grosbein To: Kris Kennaway Message-ID: <20080713074730.GA93887@svzserv.kemerovo.su> References: <4879563B.5090201@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4879563B.5090201@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Sun, 13 Jul 2008 13:35:32 +0000 Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 07:47:34 -0000 On Sun, Jul 13, 2008 at 03:11:23AM +0200, Kris Kennaway wrote: > >It seems like there has been a regression in interactivity from > >6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After > >upgrading my single-cpu amd64 box, 7.0 has much worse latency. When > >running a kernel compile, there is a noticeable lag to echo my typing or > >scroll my browser windows, and playing an mp3 frequently cuts out for a > >second or two. This did not happen on 6.3-RELEASE. > > Are you sure it's not the x.org server bug that was present in the > version shipped with 7.0? No, it's not. I have exactly the same problem with SCHED_4BSD after upgrade from 6.3-STABLE to 7.0-STABLE. I didn't upgrade my x.org 6.9.0, only OS (all 6.x compat shims are installed). There is some sort of regression, certainly. Eugene Grosbein From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 14:01:14 2008 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 44CFB106564A for ; Sun, 13 Jul 2008 14:01:14 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id CD25E8FC14 for ; Sun, 13 Jul 2008 14:01:13 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.2/8.14.2) with ESMTP id m6DE1CNS080589; Sun, 13 Jul 2008 18:01:12 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 13 Jul 2008 18:01:12 +0400 (MSD) From: Dmitry Morozovsky To: Peter Jeremy In-Reply-To: <20080713105548.GA55221@server.vk2pj.dyndns.org> Message-ID: <20080713175927.R58331@woozle.rinet.ru> References: <20080704121833.J35668@woozle.rinet.ru> <20080713105548.GA55221@server.vk2pj.dyndns.org> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (woozle.rinet.ru [0.0.0.0]); Sun, 13 Jul 2008 18:01:12 +0400 (MSD) Cc: kan@freebsd.org, freebsd-hackers@freebsd.org, oleg@rinet.ru Subject: Re: profiling broken on RELENG_7/i386 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, 13 Jul 2008 14:01:14 -0000 On Sun, 13 Jul 2008, Peter Jeremy wrote: PJ> On 2008-Jul-04 13:01:11 +0400, Dmitry Morozovsky wrote: PJ> >It seems we step on a bug in gcc in RELENG_7/i386 PJ> > PJ> >It is triggered at least by profiling program which uses getopt(3): PJ> PJ> I think it's actually in the profiling initialisation code. If PJ> you try to run sample code under gdb, you can see that .mcount() PJ> is not preserving %ecx, though main() assumes it does. I see. However, I'm afraid we need knowledge of some gcc guru to bring the fix in. Alexander, could you please comment? PJ> PJ> (gdb) disas $eip PJ> Dump of assembler code for function main: PJ> 0x080481d0 : lea 0x4(%esp),%ecx PJ> 0x080481d4 : and $0xfffffff0,%esp PJ> 0x080481d7 : pushl 0xfffffffc(%ecx) PJ> 0x080481da : push %ebp PJ> 0x080481db : mov %esp,%ebp PJ> 0x080481dd : push %ecx PJ> 0x080481de : sub $0x14,%esp PJ> 0x080481e1 : call 0x8051b50 <.mcount> PJ> 0x080481e6 : mov 0x4(%ecx),%eax PJ> 0x080481e9 : mov (%eax),%eax PJ> 0x080481eb : mov %eax,0x8(%esp) PJ> 0x080481ef : mov (%ecx),%eax PJ> 0x080481f1 : mov %eax,0x4(%esp) PJ> 0x080481f5 : movl $0x8066b0a,(%esp) PJ> 0x080481fc : call 0x8051b00 PJ> 0x08048201 : mov $0x0,%eax PJ> 0x08048206 : add $0x14,%esp PJ> 0x08048209 : pop %ecx PJ> 0x0804820a : pop %ebp PJ> 0x0804820b : lea 0xfffffffc(%ecx),%esp PJ> 0x0804820e : ret PJ> End of assembler dump. PJ> (gdb) x/10x $esp PJ> 0xbfbfeadc: 0x0804815f 0x00000001 0xbfbfeb08 0xbfbfeb10 PJ> 0xbfbfeaec: 0x00000000 0x00000000 0x00000000 0x00000000 PJ> 0xbfbfeafc: 0x00000000 0x00000000 PJ> (gdb) info regi PJ> eax 0xbfbfeb08 -1077941496 PJ> ecx 0x1e968 125288 PJ> edx 0x8051d1a 134552858 PJ> ebx 0x1 1 PJ> esp 0xbfbfeadc 0xbfbfeadc PJ> ebp 0xbfbfeb00 0xbfbfeb00 PJ> esi 0xbfbfeb10 -1077941488 PJ> edi 0x0 0 PJ> eip 0x80481d0 0x80481d0 PJ> eflags 0x282 642 PJ> cs 0x33 51 PJ> ss 0x3b 59 PJ> ds 0x3b 59 PJ> es 0x3b 59 PJ> fs 0x3b 59 PJ> gs 0x1b 27 PJ> ... PJ> [step through .mcount] PJ> ... PJ> (gdb) stepi PJ> main (argc=Error accessing memory address 0x1b: Bad address. PJ> ) at x.c:4 PJ> 4 printf("Hello %d %s\n", argc, argv[0]); PJ> (gdb) info regi PJ> eax 0x1 1 PJ> ecx 0x1b 27 PJ> edx 0x804815f 134512991 PJ> ebx 0x1 1 PJ> esp 0xbfbfeab0 0xbfbfeab0 PJ> ebp 0xbfbfeac8 0xbfbfeac8 PJ> esi 0xbfbfeb10 -1077941488 PJ> edi 0x0 0 PJ> eip 0x80481e6 0x80481e6 PJ> eflags 0x246 582 PJ> cs 0x33 51 PJ> ss 0x3b 59 PJ> ds 0x3b 59 PJ> es 0x3b 59 PJ> fs 0x3b 59 PJ> gs 0x1b 27 PJ> PJ> -- PJ> Peter Jeremy PJ> Please excuse any delays as the result of my ISP's inability to implement PJ> an MTA that is either RFC2821-compliant or matches their claimed behaviour. PJ> Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 14:32:49 2008 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 64708106564A; Sun, 13 Jul 2008 14:32:49 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id C39478FC18; Sun, 13 Jul 2008 14:32:48 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 59B4F30012; Sun, 13 Jul 2008 15:32:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on muon.cran.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=8.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 Received: from tau (unknown [IPv6:2a01:348:10f:0:219:b9ff:fe54:f04a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTP; Sun, 13 Jul 2008 15:32:44 +0100 (BST) Date: Sun, 13 Jul 2008 15:32:35 +0100 From: Bruce Cran To: Dmitry Morozovsky Message-ID: <20080713153235.73eb34fd@tau> In-Reply-To: <20080713175927.R58331@woozle.rinet.ru> References: <20080704121833.J35668@woozle.rinet.ru> <20080713105548.GA55221@server.vk2pj.dyndns.org> <20080713175927.R58331@woozle.rinet.ru> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/PlfL1jC+oKtU.cy4Q98Dhjs"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: kan@freebsd.org, oleg@rinet.ru, freebsd-hackers@freebsd.org Subject: Re: profiling broken on RELENG_7/i386 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, 13 Jul 2008 14:32:49 -0000 --Sig_/PlfL1jC+oKtU.cy4Q98Dhjs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 13 Jul 2008 18:01:12 +0400 (MSD) Dmitry Morozovsky wrote: > On Sun, 13 Jul 2008, Peter Jeremy wrote: >=20 > PJ> On 2008-Jul-04 13:01:11 +0400, Dmitry Morozovsky > PJ> wrote: > PJ> >It seems we step on a bug in gcc in RELENG_7/i386 > PJ> > > PJ> >It is triggered at least by profiling program which uses > PJ> >getopt(3): > PJ>=20 > PJ> I think it's actually in the profiling initialisation code. If > PJ> you try to run sample code under gdb, you can see that .mcount() > PJ> is not preserving %ecx, though main() assumes it does. >=20 > I see. However, I'm afraid we need knowledge of some gcc guru to > bring the fix in. >=20 This is a known bug in 7.x and has apparently been fixed in -CURRENT.=20 See http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dbin/119709 for more details. --=20 Bruce Cran --Sig_/PlfL1jC+oKtU.cy4Q98Dhjs Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIehIHn4uvqcJsLfgRAkIAAKDM5Nvj+vZIaKrrzDlFKBsOCOcnYwCfThJd omxFsec1xVgm7lxxin5WAZ4= =g5/G -----END PGP SIGNATURE----- --Sig_/PlfL1jC+oKtU.cy4Q98Dhjs-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 15:13:16 2008 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 78F31106566B for ; Sun, 13 Jul 2008 15:13:16 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.183]) by mx1.freebsd.org (Postfix) with ESMTP id 041B58FC18 for ; Sun, 13 Jul 2008 15:13:15 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so2369789ika.3 for ; Sun, 13 Jul 2008 08:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=L9kmzO0r2N+V98MGAsJDaZBX9Em4uyvaiQk3Wti2Lds=; b=YamAXr9D9caGiG9FEo6MkoTABVIE5vALf7EJRZobVgbEjxbiq0cav9LJVcQw3hxwwt 2/jE1dcNKSBXwFq+k6XjVZutY6AZiEczry8gueBfLqzoR6ik4ogIIhSz5eA4nGs8k0ay zCCgzN6OJzcklwzB79yR7pIzVPv4ybDMV1dbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=DIeQdbnnEsz/8iqdFaZL2q5rcWFTNS3S7EGCcxTk1sHnjGIIy4ZIHKgt4HWluCHBlF P2ty+eN97yEAaWO/T8UtUtrhJywlCC5zspQ2y+Iyp0YPDC0mBYEfz0KNFBMGo4ck+yTO wcvJVaTWfS+xwYZv0N4lclXl2hXx3Lgp457UA= Received: by 10.210.37.16 with SMTP id k16mr8199827ebk.194.1215961994482; Sun, 13 Jul 2008 08:13:14 -0700 (PDT) Received: by 10.210.139.1 with HTTP; Sun, 13 Jul 2008 08:13:14 -0700 (PDT) Message-ID: <78c6bd860807130813p4c28f930g1f3094241aa1f1b1@mail.gmail.com> Date: Sun, 13 Jul 2008 11:13:14 -0400 From: "Michael B Allen" To: freebsd-hackers MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Pls sanity check my semtimedop(2) implementation 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, 13 Jul 2008 15:13:16 -0000 Hi, Below is a semtimedop(2) implementation that I'm using for FreeBSD. I was hoping someone could look it over and tell me if they think the implementation is sound. The code seems to work ok but when stressing the FreeBSD build of my app I have managed to provoke errors related to concurrency (usually when a SIGALRM goes off). The Linux build works flawlessesly so I'm wondering about this one critical function that is different. Is there any reason why I would want to use ITIMER_VIRTUAL / SIGVTALRM instead of ITIMER_REAL / SIGALRM? Or perhaps I should be using a different implementation entirely? Mike int _semtimedop(int semid, struct sembuf *array, size_t nops, struct timespec *_timeout) { struct timeval timeout, before, after; struct itimerval value, ovalue; struct sigaction sa, osa; int ret; if (_timeout) { timeout.tv_sec = _timeout->tv_sec; timeout.tv_usec = _timeout->tv_nsec / 1000; if (gettimeofday(&before, NULL) == -1) { return -1; } memset(&value, 0, sizeof value); value.it_value = timeout; memset(&sa, 0, sizeof sa); /* signal_print writes the signal info to a log file */ sa.sa_sigaction = signal_print; sa.sa_flags = SA_SIGINFO; sigemptyset(&sa.sa_mask); sigaction(SIGALRM, &sa, &osa); if (setitimer(ITIMER_REAL, &value, &ovalue) == -1) { sigaction(SIGALRM, &osa, NULL); return -1; } } ret = semop(semid, array, nops); if (_timeout) { sigaction(SIGALRM, &osa, NULL); if (setitimer(ITIMER_REAL, &ovalue, NULL) == -1) { return -1; } } if (ret == -1) { if (_timeout) { struct timeval elapsed; if (gettimeofday(&after, NULL) == -1) { return -1; } _timeval_diff(&after, &before, &elapsed); if (timercmp(&elapsed, &timeout, >=)) errno = EAGAIN; } return -1; } return 0; } From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 15:23:36 2008 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 CDDC3106567A; Sun, 13 Jul 2008 15:23:36 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4F2118FC26; Sun, 13 Jul 2008 15:23:35 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.2/8.14.2) with ESMTP id m6DFNXwn068555; Sun, 13 Jul 2008 19:23:33 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 13 Jul 2008 19:23:33 +0400 (MSD) From: Dmitry Morozovsky To: Bruce Cran In-Reply-To: <20080713153235.73eb34fd@tau> Message-ID: <20080713191804.F58331@woozle.rinet.ru> References: <20080704121833.J35668@woozle.rinet.ru> <20080713105548.GA55221@server.vk2pj.dyndns.org> <20080713175927.R58331@woozle.rinet.ru> <20080713153235.73eb34fd@tau> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (woozle.rinet.ru [0.0.0.0]); Sun, 13 Jul 2008 19:23:33 +0400 (MSD) Cc: kan@freebsd.org, freebsd-hackers@freebsd.org, oleg@rinet.ru Subject: Re: profiling broken on RELENG_7/i386 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, 13 Jul 2008 15:23:36 -0000 On Sun, 13 Jul 2008, Bruce Cran wrote: BC> > PJ> On 2008-Jul-04 13:01:11 +0400, Dmitry Morozovsky BC> > PJ> wrote: BC> > PJ> >It seems we step on a bug in gcc in RELENG_7/i386 BC> > PJ> > BC> > PJ> >It is triggered at least by profiling program which uses BC> > PJ> >getopt(3): BC> > PJ> BC> > PJ> I think it's actually in the profiling initialisation code. If BC> > PJ> you try to run sample code under gdb, you can see that .mcount() BC> > PJ> is not preserving %ecx, though main() assumes it does. BC> > BC> > I see. However, I'm afraid we need knowledge of some gcc guru to BC> > bring the fix in. BC> > BC> BC> This is a known bug in 7.x and has apparently been fixed in -CURRENT. BC> See http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/119709 for more BC> details. It seems it is not, at least on cluster reference -CURRENT i386 machine: Thu Jul 3 21:52:15 UTC 2008 marck@ref8-i386:~/tmp/gprof> ./test Segmentation fault (core dumped) Profiling program does not always dump core, but .mcount definitely clobbers one of the registers: marck@ref8-i386:~/tmp/gprof> cat test-x.c #include int main(int argc, char *argv[]) { printf("Hello, world!\n"); printf("argc=%d, argv=%p\n", argc, argv); return (0); } w/o -pg: marck@ref8-i386:~/tmp/gprof> ./test Hello, world! argc=1, argv=0xbf7febf8 with -pg: marck@ref8-i386:~/tmp/gprof> ./test Hello, world! argc=0, argv=0x0 Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 16:36:21 2008 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 1288E106566C; Sun, 13 Jul 2008 16:36:21 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id 712FC8FC18; Sun, 13 Jul 2008 16:36:20 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A3C4E.dip.t-dialin.net [84.154.60.78]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id m6DGaDw2050205; Sun, 13 Jul 2008 18:36:14 +0200 (CEST) (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 m6DGa9Ht057682; Sun, 13 Jul 2008 18:36:09 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id m6DGZx73050160; Sun, 13 Jul 2008 18:36:09 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200807131636.m6DGZx73050160@fire.js.berklix.net> To: hackers@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com In-reply-to: Your message "Fri, 11 Jul 2008 18:08:53 +0200." Date: Sun, 13 Jul 2008 18:35:59 +0200 Sender: jhs@berklix.org Cc: Chris De Young , Ivan Voras Subject: Re: GPG encryption of binary sample requested. 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, 13 Jul 2008 16:36:21 -0000 "Julian Stacey" wrote: > Summary: A problem in zlib is confirmed here (for mail gpg decryption), > do others see this too or have comment please ? It turns out /usr/ports/mail/popd is corrupting data from both my servers running FreeBSD-6.2 & FreeBSD-6.3, (3rd server with 7.0 back soon to test). Detail: zlib was reacting to corrupt data. I did some loop tests & grabbing data half way with sftp & found: - Data out goes OK with SMTP+Auth to servers, - Data served back via POP3 is corrupted from my remote FreeBSD popd servers ( /usr/ports/mail/popd popd-2.2.2a_4, on both FreeBSD-6.2, 6.3, (My FreeBSD-7.0 server off line, not tested), - My local fetchmail on my dynamic IP gate running FreeBSD-6.2, & my internal host send out & recieve back fine using an alternate POP3 - No problem with large base64 bins, only when I receive encrypted. I'll have to install some other POP3 (or IMAP) server, Big choice: cd /usr/ports/mail; echo *pop* akpop3d cucipop freepops mdpop3d nullpop p5-vpopmail pecl-pop3 pop-before-smtp pop3gwd pop3lite pop3proxy pop3vscan popa3d popa3d-before-sendmail popcheck popclient popd popfile poppassd popper poppwd poppy popular qpopper solidpop3d teapop teapop-devel tpop3d vm-pop3d vpopmail vpopmail-devel wmmultipop3 wmpop3 wmpop3lb PS test accounts are handy to have for debugging when things break, so if 1 or 2 people fancy offering me a POP3 account, I'd happily reciprocate. PPS Earlier I tried /usr/ports/mail/getmail, It fetches 1M of uuencoded random data, but fails on 10M with: operation error (child pid 56001 killed by signal 9) Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 16:56:26 2008 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 0A81F1065672 for ; Sun, 13 Jul 2008 16:56:25 +0000 (UTC) (envelope-from modelnine@modelnine.org) Received: from jord.modelnine.org (jord.modelnine.org [83.246.72.120]) by mx1.freebsd.org (Postfix) with ESMTP id A61118FC1E for ; Sun, 13 Jul 2008 16:56:25 +0000 (UTC) (envelope-from modelnine@modelnine.org) Received: from phoenix (hnvr-4dbbb7b4.pool.einsundeins.de [77.187.183.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: modelnine) by jord.modelnine.org (Postfix) with ESMTPSA id 4A46AA40CC0 for ; Sun, 13 Jul 2008 18:40:57 +0200 (CEST) From: Heiko Wundram To: freebsd-hackers@freebsd.org Date: Sun, 13 Jul 2008 18:44:37 +0200 User-Agent: KMail/1.9.7 References: <200807131636.m6DGZx73050160@fire.js.berklix.net> In-Reply-To: <200807131636.m6DGZx73050160@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807131844.37339.modelnine@modelnine.org> Subject: Re: GPG encryption of binary sample requested. 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, 13 Jul 2008 16:56:26 -0000 Am Sonntag, 13. Juli 2008 18:35:59 schrieb Julian Stacey: > I'll have to install some other POP3 (or IMAP) server, Big choice: > cd /usr/ports/mail; echo *pop* > akpop3d cucipop freepops mdpop3d nullpop p5-vpopmail pecl-pop3 > pop-before-smtp pop3gwd pop3lite pop3proxy pop3vscan popa3d > popa3d-before-sendmail popcheck popclient popd popfile poppassd > popper poppwd poppy popular qpopper solidpop3d teapop teapop-devel > tpop3d vm-pop3d vpopmail vpopmail-devel wmmultipop3 wmpop3 wmpop3lb I'm personally very happy with courier-imap (which is both a POP and IMAP implementation). courier requires you to keep your mail-spools in maildir format, though (which I favor anyway over mbox, but YMMV). Depending on the MTA/MDA you use, it should be easy to adapt it to store mails to maildirs. For Postfix, maildir support is builtin, for sendmail, you can use procmail to do the delivery, which also sports maildir support. -- Heiko Wundram From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 18:20:58 2008 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 988271065673 for ; Sun, 13 Jul 2008 18:20:58 +0000 (UTC) (envelope-from brucem@mail.cruzio.com) Received: from cruzio.com (dsl-63-249-85-132.cruzio.com [63.249.85.132]) by mx1.freebsd.org (Postfix) with ESMTP id 680B48FC21 for ; Sun, 13 Jul 2008 18:20:58 +0000 (UTC) (envelope-from brucem@mail.cruzio.com) Received: from mail.cruzio.com (localhost [127.0.0.1]) by cruzio.com (8.12.10/8.12.10) with ESMTP id m6DIESq8000464; Sun, 13 Jul 2008 11:14:28 -0700 (PDT) (envelope-from brucem@mail.cruzio.com) Received: (from brucem@localhost) by mail.cruzio.com (8.12.10/8.12.10/Submit) id m6DIESh7000463; Sun, 13 Jul 2008 11:14:28 -0700 (PDT) (envelope-from brucem) Date: Sun, 13 Jul 2008 11:14:28 -0700 (PDT) From: "Bruce R. Montague" Message-Id: <200807131814.m6DIESh7000463@mail.cruzio.com> To: ancelgray@yahoo.com Cc: freebsd-hackers@freebsd.org Subject: Re: Re: Re: Hardware support for AMD Geode CS5536 audio? 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, 13 Jul 2008 18:20:58 -0000 Hi, re: > > Bruce, > > This is Andrew Gray. I am running an Alix-1C board with the CS5536 on it. > This board is very nice. It's only about $138 and it has a good "standard" > clone AWARD bios that we are all used to (unlike say, the Soekris boards). > It uses only 5 watts and has everthing including 21 GPIO pins. > (except is doesn't have a Freebsd sound driver yet. > <---snip---> > > http://www.mini-box.com/Alix-1C-Board-1-LAN-1-MINI-PCI?sc=8&category=754 Looks like a nice board, close to the reference platform, and has exposed audio (unlike some of the Geode-based embedded systems). Looks like a decent CS5536 audio development platform. Its use of the CS5536 is not apparent from a casual skim of the web-page, thanks, I would not have known about it if not for your mail. > > A question for you? Do Freebsd 4.6 drivers still work on freebsd 6.2 and 7.0? Not sure, I haven't had relevant Geode hardware up for awhile... I'd be rather surprised if even for the CS5530 something hadn't changed or needed tweaking, but I don't know. > > Are you working on this CS5536 driver? Do you have hardware yet? > I don't have hardware, but I've just ordered an Alix-1C. :) I haven't been working on this. I had googled for a few days without finding anything that looked like a convenient dev platform (mostly closed embedded systems). I also came across info at AMD's site that implied the CS5536 had been end-of-lifed and that made me a bit depressed. Does anyone know, BTW, if this is the case? When I get this Alix-1C I will try to get something up. But it will definitely just be in "all-too-infrequent spare-time cycles between real-life and dayjob", so we're talking weekend-and-late-night-hobby here. If anyone such as yourself want to hack away on it, that would be great too. I'll try to stay in touch. Thanks, -bruce From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 18:41:01 2008 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 C4A5C1065672; Sun, 13 Jul 2008 18:41:01 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from bsdevel.alaskaparadise.com (bsdevel.alaskaparadise.com [208.86.224.193]) by mx1.freebsd.org (Postfix) with ESMTP id 927128FC2C; Sun, 13 Jul 2008 18:41:01 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from stargate.alaskaparadise.com (132-34-178-69.gci.net [69.178.34.132]) by bsdevel.alaskaparadise.com (Postfix) with ESMTP id D678628E2898; Sun, 13 Jul 2008 18:41:00 +0000 (UTC) From: Beech Rintoul To: freebsd-hackers@freebsd.org Date: Sun, 13 Jul 2008 10:40:52 -0800 User-Agent: KMail/1.9.7 References: <200805182328.45822.beech@freebsd.org> <20080713023852.a0977807.stas@FreeBSD.org> <200807121626.58487.beech@freebsd.org> In-Reply-To: <200807121626.58487.beech@freebsd.org> 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: <200807131040.55910.beech@freebsd.org> Cc: Stanislav Sedov Subject: Re: Help with copytree code 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: Sun, 13 Jul 2008 18:41:01 -0000 On Saturday 12 July 2008, Beech Rintoul said: > On Saturday 12 July 2008, Stanislav Sedov said: > > On Sun, 6 Jul 2008 13:26:21 -0800 > > > > Beech Rintoul mentioned: > > > I'd just like to thank stas@ and everyone who replied with > > > suggestions, code etc. I believe that I now have something > > > workable and it's been submitted to portmgr for review and > > > possible inclusion in bsd.port.mk along with some new features > > > of my own. Hopefully, this will fix a long standing problem > > > with copytree_*. > > > > Have you filled the PR so we could review/comment? > > No, portmgr (Pav) has it and is reviewing. I'll chat with him and > see if he wants me to file a pr. Meanwhile I'll be happy to send it > to anyone who wants it. The FreeBSD server will just strip it off > and I'm moving webservers today so I can't post it for a while. > > Beech OK, if anyone wishes to test this code I posted it here: http://www.alaskaparadise.com/freebsd/copytree.diff Comments or suggestions are welcome :-) 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/7.0R/announce.html --------------------------------------------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 19:05:16 2008 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 505DA1065670 for ; Sun, 13 Jul 2008 19:05:16 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id DE1668FC15 for ; Sun, 13 Jul 2008 19:05:15 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2579409fkk.11 for ; Sun, 13 Jul 2008 12:05:14 -0700 (PDT) Received: by 10.86.33.10 with SMTP id g10mr12394509fgg.14.1215925530159; Sat, 12 Jul 2008 22:05:30 -0700 (PDT) Received: by 10.86.61.4 with HTTP; Sat, 12 Jul 2008 22:05:30 -0700 (PDT) Message-ID: <84dead720807122205i33bf6eb0p998d473df9e52304@mail.gmail.com> Date: Sun, 13 Jul 2008 10:35:30 +0530 From: "Joseph Koshy" To: "FreeBSD Stable List" , "FreeBSD Hackers" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: fabien.thomas@netasq.com Subject: Announcement: PmcTools callchain capture for RELENG_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: Sun, 13 Jul 2008 19:05:16 -0000 Hello List(s), I am very pleased to announce a patch, by Fabien Thomas, that brings PmcTools' callchain capture features to 7-STABLE. Thank you, Fabien! The patch is linked to from the PmcTools wiki page: http://wiki.freebsd.org/PmcTools. The current file name is: "patch-callchain-FreeBSD-7-STABLE-2008-07-12.gz". As the file name indicates, it should apply against a 7-STABLE tree of 2008-07-12 vintage. To apply the patch: % cd /home/src-7x # or whereever your RELENG_7 tree resides % patch < PATCH-FILE Then you should follow the full procedure to update userland and kernel from source as spelled out in src/UPDATING. Please note that HWPMC(4) log files that contain callchain information are not binary compatible with prior versions of pmc(3) and pmcstat(8). Please do test on your systems and let Fabien and me know how you fared. Koshy From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 19:38:24 2008 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 D30F2106566B; Sun, 13 Jul 2008 19:38:24 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id A905F8FC12; Sun, 13 Jul 2008 19:38:24 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6DJcOB04961; Sun, 13 Jul 2008 12:38:24 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6DJcON11422; Sun, 13 Jul 2008 12:38:24 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Sun, 13 Jul 2008 12:38:24 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Kris Kennaway In-Reply-To: <4879D46E.7080104@FreeBSD.org> Message-ID: References: <4879563B.5090201@FreeBSD.org> <4879D46E.7080104@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 19:38:24 -0000 On Sun, 13 Jul 2008, Kris Kennaway wrote: > Nate Eldredge wrote: >> On Sun, 13 Jul 2008, Kris Kennaway wrote: >> >>> Nate Eldredge wrote: >>>> Hi folks, >>>> >>>> Hopefully this is a good list for this topic. >>>> >>>> It seems like there has been a regression in interactivity from >>>> 6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After >>>> upgrading my single-cpu amd64 box, 7.0 has much worse latency. When >>>> running a kernel compile, there is a noticeable lag to echo my typing or >>>> scroll my browser windows, and playing an mp3 frequently cuts out for a >>>> second or two. This did not happen on 6.3-RELEASE. >>> >>> Are you sure it's not the x.org server bug that was present in the version >>> shipped with 7.0? Update to the latest version and see if your X >>> interactivity improves. >> >> Yes, I had not yet upgraded my x.org port when testing this, so it was the >> same x.org that was fine under 6.3. Also: >> >>>> I wrote a small program which forks two processes that run gettimeofday() >>>> in a tight loop to see how long they get scheduled out. On 6.3 the >>>> maximum latency is usually under 100 ms. On 7.0 it is 500 ms or more >>>> even when nothing else is running on the system. When a compile is also >>>> running it is sometimes 1400 ms or more. >> >> This test shows a difference even in single user mode, when X is not >> running at all. >> > > It shows *a* difference, but perhaps not the *same* difference. Please > humour me and rule it out. Okay. I am in the process of recompiling all my ports, so after that is done I will boot with a GENERIC kernel and see what happens. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 20:08:22 2008 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 76A841065679 for ; Sun, 13 Jul 2008 20:08:22 +0000 (UTC) (envelope-from mbsd@pacbell.net) Received: from nlpi029.prodigy.net (nlpi029.sbcis.sbc.com [207.115.36.58]) by mx1.freebsd.org (Postfix) with ESMTP id 37F7E8FC16 for ; Sun, 13 Jul 2008 20:08:22 +0000 (UTC) (envelope-from mbsd@pacbell.net) Received: from mbook.home (adsl-69-236-103-127.dsl.pltn13.pacbell.net [69.236.103.127]) (authenticated bits=0) by nlpi029.prodigy.net (8.13.8 smtpauth/dk/8.13.8) with ESMTP id m6DJtMcD013014; Sun, 13 Jul 2008 14:55:38 -0500 Date: Sun, 13 Jul 2008 12:55:22 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= To: Michael B Allen In-Reply-To: <78c6bd860807130813p4c28f930g1f3094241aa1f1b1@mail.gmail.com> Message-ID: References: <78c6bd860807130813p4c28f930g1f3094241aa1f1b1@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 13 Jul 2008 20:08:22 -0000 On Sun, 13 Jul 2008, Michael B Allen wrote: > Hi, > > Below is a semtimedop(2) implementation that I'm using for FreeBSD. I > was hoping someone could look it over and tell me if they think the > implementation is sound. > > The code seems to work ok but when stressing the FreeBSD build of my app > I have managed to provoke errors related to concurrency (usually when a > SIGALRM goes off). The Linux build works flawlessesly so I'm wondering > about this one critical function that is different. At the very least you need to check errno when semop() returns -1. Unless it is EINTR, you have other problems. Also, if there is any other code using the timer across this function call, you have race conditions between changing the signal handler and setting the timer. Even if there is no other use of the timer across this function, resetting the signal handler before disarming the timer leaves you open to the signal being handled by the default handler which will make the process exit. $.02, /Mikko > Is there any reason why I would want to use ITIMER_VIRTUAL / > SIGVTALRM instead of ITIMER_REAL / SIGALRM? > > Or perhaps I should be using a different implementation entirely? > > Mike > > int > _semtimedop(int semid, > struct sembuf *array, > size_t nops, > struct timespec *_timeout) > { > struct timeval timeout, before, after; > struct itimerval value, ovalue; > struct sigaction sa, osa; > int ret; > > if (_timeout) { > timeout.tv_sec = _timeout->tv_sec; > timeout.tv_usec = _timeout->tv_nsec / 1000; > > if (gettimeofday(&before, NULL) == -1) { > return -1; > } > > memset(&value, 0, sizeof value); > value.it_value = timeout; > > memset(&sa, 0, sizeof sa); > /* signal_print writes the signal info to a log file > */ > sa.sa_sigaction = signal_print; > sa.sa_flags = SA_SIGINFO; > sigemptyset(&sa.sa_mask); > sigaction(SIGALRM, &sa, &osa); > > if (setitimer(ITIMER_REAL, &value, &ovalue) == -1) { > sigaction(SIGALRM, &osa, NULL); > return -1; > } > } > > ret = semop(semid, array, nops); > > if (_timeout) { > sigaction(SIGALRM, &osa, NULL); > > if (setitimer(ITIMER_REAL, &ovalue, NULL) == -1) { > return -1; > } > } > > if (ret == -1) { > if (_timeout) { > struct timeval elapsed; > > if (gettimeofday(&after, NULL) == -1) { > return -1; > } > > _timeval_diff(&after, &before, &elapsed); > > if (timercmp(&elapsed, &timeout, >=)) > errno = EAGAIN; > } > > return -1; > } > > return 0; > } > _______________________________________________ > 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 Sun Jul 13 21:09:24 2008 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 7B8031065676 for ; Sun, 13 Jul 2008 21:09:24 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id C75368FC1C for ; Sun, 13 Jul 2008 21:09:23 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1669686nfh.33 for ; Sun, 13 Jul 2008 14:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=g3IN1yIeGhjoLszUDpHn9j3O/bkahMaKMtEj9fHAXNk=; b=dBg0ZdBTJUlEuaGK64Fk4TAMZpfOfRfCv/HZ4yb8rxzbDleGpDTKc/gLRI/51a1q+G 9z2KMG0YMop0pFflgEdLpG9aCnghGV3GitPIdbmqZJaLUXY5VWUr5u8L4boSj3l00d6G +6iED/HgQ8anm8kP0LDmqgb2//sm2+U5kOwW0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=w6kCQchBikBylBkjPTd36cj+jRLEqpQ1wSZvXZIb1QwJt9YruIeN+MxbPmRE6FIywy 7+e3nnp/4G7S8AAlDgfrt8JZYokHiAPlYFWlYj6ueIVBkE9YiGugthK9u7VgaHFzYeG6 A3e5ygTObaeSZsGWsQxBfYnNkqrHldxcMQBGk= Received: by 10.210.34.2 with SMTP id h2mr8386826ebh.110.1215983360203; Sun, 13 Jul 2008 14:09:20 -0700 (PDT) Received: by 10.210.139.1 with HTTP; Sun, 13 Jul 2008 14:09:20 -0700 (PDT) Message-ID: <78c6bd860807131409v6e34478ameda1390b9eb2333f@mail.gmail.com> Date: Sun, 13 Jul 2008 17:09:20 -0400 From: "Michael B Allen" To: "=?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?=" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <78c6bd860807130813p4c28f930g1f3094241aa1f1b1@mail.gmail.com> Cc: freebsd-hackers Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 13 Jul 2008 21:09:24 -0000 On 7/13/08, Mikko Ty=F6l=E4j=E4rvi wrote: > On Sun, 13 Jul 2008, Michael B Allen wrote: > > > > Hi, > > > > Below is a semtimedop(2) implementation that I'm using for FreeBSD. I > > was hoping someone could look it over and tell me if they think the > > implementation is sound. > > > > The code seems to work ok but when stressing the FreeBSD build of my ap= p > > I have managed to provoke errors related to concurrency (usually when a > > SIGALRM goes off). The Linux build works flawlessesly so I'm wondering > > about this one critical function that is different. > > > > At the very least you need to check errno when semop() returns -1. > Unless it is EINTR, you have other problems. > > Also, if there is any other code using the timer across this function > call, you have race conditions between changing the signal handler and > setting the timer. Even if there is no other use of the timer across > this function, resetting the signal handler before disarming the timer > leaves you open to the signal being handled by the default handler > which will make the process exit. Hi Mikko, So if some other code uses setitimer(2) for whatever reason, then I have the potential for a race. I'm not aware of any other such instances of setitimer but my app is actually a plugin for a larger application so I can't entirely rule out the possibility. Is there any facility for creating a stateful timer so that I don't run into this problem? Can anyone provide the basis for an alternative implementation? Should I use select(2) instead? Mike > > Is there any reason why I would want to use ITIMER_VIRTUAL / > > SIGVTALRM instead of ITIMER_REAL / SIGALRM? > > > > Or perhaps I should be using a different implementation entirely? > > > > Mike > > > > int > > _semtimedop(int semid, > > struct sembuf *array, > > size_t nops, > > struct timespec *_timeout) > > { > > struct timeval timeout, before, after; > > struct itimerval value, ovalue; > > struct sigaction sa, osa; > > int ret; > > > > if (_timeout) { > > timeout.tv_sec =3D _timeout->tv_sec; > > timeout.tv_usec =3D _timeout->tv_nsec / 1000; > > > > if (gettimeofday(&before, NULL) =3D=3D -1) { > > return -1; > > } > > > > memset(&value, 0, sizeof value); > > value.it_value =3D timeout; > > > > memset(&sa, 0, sizeof sa); > > /* signal_print writes the signal info to a log file > > */ > > sa.sa_sigaction =3D signal_print; > > sa.sa_flags =3D SA_SIGINFO; > > sigemptyset(&sa.sa_mask); > > sigaction(SIGALRM, &sa, &osa); > > > > if (setitimer(ITIMER_REAL, &value, &ovalue) =3D=3D -1) { > > sigaction(SIGALRM, &osa, NULL); > > return -1; > > } > > } > > > > ret =3D semop(semid, array, nops); > > > > if (_timeout) { > > sigaction(SIGALRM, &osa, NULL); > > > > if (setitimer(ITIMER_REAL, &ovalue, NULL) =3D=3D -1) { > > return -1; > > } > > } > > > > if (ret =3D=3D -1) { > > if (_timeout) { > > struct timeval elapsed; > > > > if (gettimeofday(&after, NULL) =3D=3D -1) { > > return -1; > > } > > > > _timeval_diff(&after, &before, &elapsed); > > > > if (timercmp(&elapsed, &timeout, >=3D)) > > errno =3D EAGAIN; > > } > > > > return -1; > > } > > > > return 0; > > } From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 23:11:24 2008 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 00AFC1065670 for ; Sun, 13 Jul 2008 23:11:24 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 874598FC1B for ; Sun, 13 Jul 2008 23:11:23 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2641915fkk.11 for ; Sun, 13 Jul 2008 16:11:22 -0700 (PDT) Received: by 10.86.80.5 with SMTP id d5mr13237860fgb.26.1215977434146; Sun, 13 Jul 2008 12:30:34 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Sun, 13 Jul 2008 12:30:34 -0700 (PDT) Message-ID: <7d6fde3d0807131230m598cf198ia1deded3afa1ac0c@mail.gmail.com> Date: Sun, 13 Jul 2008 12:30:34 -0700 From: "Garrett Cooper" To: "Eugene Grosbein" In-Reply-To: <20080713074730.GA93887@svzserv.kemerovo.su> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4879563B.5090201@FreeBSD.org> <20080713074730.GA93887@svzserv.kemerovo.su> Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 13 Jul 2008 23:11:24 -0000 On Sun, Jul 13, 2008 at 12:47 AM, Eugene Grosbein wrote: > On Sun, Jul 13, 2008 at 03:11:23AM +0200, Kris Kennaway wrote: > >> >It seems like there has been a regression in interactivity from >> >6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After >> >upgrading my single-cpu amd64 box, 7.0 has much worse latency. When >> >running a kernel compile, there is a noticeable lag to echo my typing or >> >scroll my browser windows, and playing an mp3 frequently cuts out for a >> >second or two. This did not happen on 6.3-RELEASE. >> >> Are you sure it's not the x.org server bug that was present in the >> version shipped with 7.0? > > No, it's not. I have exactly the same problem with SCHED_4BSD > after upgrade from 6.3-STABLE to 7.0-STABLE. I didn't upgrade > my x.org 6.9.0, only OS (all 6.x compat shims are installed). > There is some sort of regression, certainly. IIRC some folks reported performance degradation using SCHED_4BSD in the past after the SMP fixes, so this isn't a new news story. SCHED_ULE isn't going to be default until 7.1-RELEASE I believe because they might be fanning out a few bugs in -CURRENT (the number of bugs are small from what I've seen) and MFC'ing them to 7-RELEASE. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 11:33:19 2008 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 4B10B1065674 for ; Mon, 14 Jul 2008 11:33:19 +0000 (UTC) (envelope-from kmf@fischer.org.za) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id E37FE8FC2E for ; Mon, 14 Jul 2008 11:33:18 +0000 (UTC) (envelope-from kmf@fischer.org.za) Received: by ug-out-1314.google.com with SMTP id q2so270197uge.37 for ; Mon, 14 Jul 2008 04:33:17 -0700 (PDT) Received: by 10.67.87.6 with SMTP id p6mr1623078ugl.14.1216033691718; Mon, 14 Jul 2008 04:08:11 -0700 (PDT) Received: by 10.66.243.4 with HTTP; Mon, 14 Jul 2008 04:08:11 -0700 (PDT) Message-ID: Date: Mon, 14 Jul 2008 13:08:11 +0200 From: "Karl Fischer" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: FreeBSD Best Practice 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, 14 Jul 2008 11:33:19 -0000 Hello I'm a SysAdmin, I'm wondering whether this is the correct list to ask? I'm looking for FreeBSD Best Practice information, (or a FreeBSD Mailing List, I can join) I want to make sure that all my servers comply to at least some widely accepted standards, so in the event of me getting hit by a bus or being abducted by aliens, another person can take over from me. I have done a search through the mailing lists and this seems like the list to ask. Thanks Karl -- -------------------------------------------------- Karl Fischer |_|0|_| "Absence of evidence |_|_|0| is not evidence of absence" |0|0|0| Carl Sagan - http://fischer.org.za - -------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 11:57:48 2008 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 B9A02106566B; Mon, 14 Jul 2008 11:57:48 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 728338FC0A; Mon, 14 Jul 2008 11:57:48 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 9E6DF1B10EF4; Mon, 14 Jul 2008 13:57:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 043401B10EE0; Mon, 14 Jul 2008 13:57:43 +0200 (CEST) Message-ID: <487B3F37.7000300@moneybookers.com> Date: Mon, 14 Jul 2008 14:57:43 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Joseph Koshy References: <84dead720807122205i33bf6eb0p998d473df9e52304@mail.gmail.com> In-Reply-To: <84dead720807122205i33bf6eb0p998d473df9e52304@mail.gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/7707/Mon Jul 14 12:05:46 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: FreeBSD Hackers , fabien.thomas@netasq.com, FreeBSD Stable List Subject: Re: Announcement: PmcTools callchain capture for RELENG_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: Mon, 14 Jul 2008 11:57:48 -0000 Hi, Does it mean that hwpmc from now will work "out of the box" with new Intel core2 duo/quad processors (like T7500) ? Joseph Koshy wrote: > Hello List(s), > > I am very pleased to announce a patch, by Fabien Thomas, that brings > PmcTools' callchain capture features to 7-STABLE. Thank you, Fabien! > > The patch is linked to from the PmcTools wiki page: > http://wiki.freebsd.org/PmcTools. > > The current file name is: "patch-callchain-FreeBSD-7-STABLE-2008-07-12.gz". > As the file name indicates, it should apply against a 7-STABLE tree of > 2008-07-12 > vintage. > > To apply the patch: > % cd /home/src-7x # or whereever your RELENG_7 tree resides > % patch < PATCH-FILE > > Then you should follow the full procedure to update userland > and kernel from source as spelled out in src/UPDATING. > > Please note that HWPMC(4) log files that contain callchain information are > not binary compatible with prior versions of pmc(3) and pmcstat(8). > > Please do test on your systems and let Fabien and me know > how you fared. > > Koshy > _______________________________________________ > 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" > -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 09:15:34 2008 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 0035D1065670 for ; Mon, 14 Jul 2008 09:15:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 87D9E8FC1D for ; Mon, 14 Jul 2008 09:15:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A567AD.dip.t-dialin.net [84.165.103.173]) by redbull.bpaserver.net (Postfix) with ESMTP id 58F102E0A4; Mon, 14 Jul 2008 11:15:26 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 9166A136076; Mon, 14 Jul 2008 11:15:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1216026914; bh=2rNzsf3D/b0sQEj4nzxbGFQjOGr3Qvek+ CMS01Ful9Y=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gKRTYAc/JdpNHnvhoULh7sY+k9eBRs/uxUiL5HTZ3ZVleqSOnbPNNRr6pMygXPKA7 tpy1NA4wPunZgG+GwgmoC9ruUFBLhfAmQi7baEmAG2Dmm5RxOi4EjlBIV655aSP4n5O gzh5OYHBQ1j6JBoVAYJ95nhN66E9tAHyObV+M1tOm+LHco4TRHu4zuDMwtqGf5kQxP5 nBpNLm9JGtVlXe1aHqFU8rmMYIQcNhf1m+yTs+XgUG79NcBKXiC+wMDBiyEVrdt0MBw JRbTwqmaFaSbnSsstncnxTHPEcB5VBNY6U01tJQxeZZD/x/Aujw9/RWH2YsgRXctvM5 E/Ko1OtnA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m6E9FEeW039874; Mon, 14 Jul 2008 11:15:14 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 14 Jul 2008 11:15:14 +0200 Message-ID: <20080714111514.3394138okvgiq42o@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 14 Jul 2008 11:15:14 +0200 From: Alexander Leidinger To: Mel References: <200807111517.54399.fbsd.hackers@rachie.is-a-geek.net> In-Reply-To: <200807111517.54399.fbsd.hackers@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-12.904, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, J_CHICKENPOX_46 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Mon, 14 Jul 2008 12:00:12 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel API docs ('make doxygen') 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, 14 Jul 2008 09:15:34 -0000 Quoting Mel (from Fri, 11 Jul 2008 =20 15:17:54 +0200): > I was wondering if this project is considered obsolete, finished or work i= n > progress. I would say it's in the "it has to prove it's usefulness"-stage. This =20 means not all people are convinced it is useful to have such stuff in =20 our source and someone needs to sit down and do something good to a =20 subsystem to show that it is useful to those people. > If it's the latter, I'm happy to do the legwork, like set up proper stubs = for > each function and structure that people who really know how they work can I think some people would complain if this would be committed to our =20 version control system without consent, and without those stubs being =20 there I don't expect that the stubs get converted to proper docs. So =20 giving advice to just go ahead may be a waste. > adjust. There's a lot already in there with normal comments, that can beco= me > documentation by simply adding an extra asterisk. Decide for yourself if you are willing to invest your time to convert =20 the existing docs in the source into doxygen docs. In =20 src/tools/kerneldoc/subsys/ is already a framework to handle the =20 doxygen stuff per subsystem (not all subsystems are done there). It =20 would be most beneficial to start with one of the subsystems which are =20 already available there. In case you want to play around there, send =20 me a mail and I try to get some time to commit some fixes. In case you =20 are interested to work on a subsystem which is not represented there, =20 you can email me too (but it should be easy to copy&modify an existing =20 file). But again, no guarantees that any changes to the source get's =20 committed. Bye, Alexander. --=20 Beware of a tall black man with one blond shoe. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 12:58:49 2008 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 007171065682 for ; Mon, 14 Jul 2008 12:58:48 +0000 (UTC) (envelope-from fluxboxtremist@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id BACE88FC25 for ; Mon, 14 Jul 2008 12:58:48 +0000 (UTC) (envelope-from fluxboxtremist@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so2734691pyb.10 for ; Mon, 14 Jul 2008 05:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=TbvXosytVQ9WMQ+jyqf+cCp4DAUjeOlMP69oc+Kk/C0=; b=QAcue/rccCWtm4vTGMv5HRc44Snmm6XM1M3kFwFeajWL6lqKS+CsnWAK/NbzaZhg8x 4RVPGv0fWGbRbT16jCwm7g8+XcPg2UbggVbWnfJBPpLa6wyA3hud/g7rplN0MUDtzVel kqBxvwv3hV52eRmWKvjhlx+n+Rbv7yAo3gaL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=S9X5K18aZH9HgX8e2dVbknObc//gO/NF9P+LV6NxtIze1VEQtLOsVQb+tW3AYJeAkH 0UqvQnAE8Hy5C//R6zG3721hCkvDo493oQF4pKdcaNiNEhDGB0dqppSyd4htwIXkBwIs E0rmuDVEW1ABbLzIpZx2NZGqzo7TGue/g3HP8= Received: by 10.141.41.12 with SMTP id t12mr6566529rvj.282.1216040295666; Mon, 14 Jul 2008 05:58:15 -0700 (PDT) Received: by 10.140.225.12 with HTTP; Mon, 14 Jul 2008 05:58:15 -0700 (PDT) Message-ID: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> Date: Mon, 14 Jul 2008 05:58:15 -0700 From: "Andres Chavez" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 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: Postfix problem. 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, 14 Jul 2008 12:58:49 -0000 hey guys i am having problems with postfix on freebsd. Postfix its listening on port smtps (465) but not on smtp (25) and all of the services are up and running, even i can use the postfixadmin to add mailboxes etc. what can be happening? i am following this how-to http://www.purplehat.org/?page_id=4 step by step so any help would be great thanks in advance. -- Atte: Andres Eduardo Chavez O. Websites: http://www.noixe.net From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 13:01:49 2008 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 40B041065671 for ; Mon, 14 Jul 2008 13:01:49 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from nexus.in-nomine.org (dhammapada.xs4all.nl [82.95.168.248]) by mx1.freebsd.org (Postfix) with ESMTP id 05F908FC0C for ; Mon, 14 Jul 2008 13:01:48 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from localhost (localhost.domini.in-nomine.org [127.0.0.1]) by nexus.in-nomine.org (Postfix) with ESMTP id 7A4C4D22B; Mon, 14 Jul 2008 15:01:47 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at in-nomine.org Received: from nexus.in-nomine.org ([127.0.0.1]) by localhost (nexus.domini.in-nomine.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bR1qvVoYvMGT; Mon, 14 Jul 2008 15:01:45 +0200 (CEST) Received: by nexus.in-nomine.org (Postfix, from userid 1000) id 60027D229; Mon, 14 Jul 2008 15:01:45 +0200 (CEST) Date: Mon, 14 Jul 2008 15:01:45 +0200 From: Jeroen Ruigrok van der Werven To: Andres Chavez Message-ID: <20080714130145.GC60130@nexus.in-nomine.org> References: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> Organisation: Ninth Circle Enterprises User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Postfix problem. 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, 14 Jul 2008 13:01:49 -0000 -On [20080714 14:59], Andres Chavez (fluxboxtremist@gmail.com) wrote: >Postfix its listening on port smtps (465) but not on smtp (25) >and all of the services are up and running, even i can use the postfixadmin >to add mailboxes etc. The obvious: 1) check your logfiles 2) sockstat | grep 25 -- see if something is already bound on port 25 -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B All are lunatics, but he who can analyze his delusions is called a philosopher. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 13:07:02 2008 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 B84691065673 for ; Mon, 14 Jul 2008 13:07:02 +0000 (UTC) (envelope-from kmf@fischer.org.za) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB838FC0A for ; Mon, 14 Jul 2008 13:07:02 +0000 (UTC) (envelope-from kmf@fischer.org.za) Received: by ug-out-1314.google.com with SMTP id q2so282582uge.37 for ; Mon, 14 Jul 2008 06:07:01 -0700 (PDT) Received: by 10.67.23.5 with SMTP id a5mr1669216ugj.89.1216040820618; Mon, 14 Jul 2008 06:07:00 -0700 (PDT) Received: by 10.66.243.4 with HTTP; Mon, 14 Jul 2008 06:07:00 -0700 (PDT) Message-ID: Date: Mon, 14 Jul 2008 15:07:00 +0200 From: "Karl Fischer" To: "Andres Chavez" In-Reply-To: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Postfix problem. 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, 14 Jul 2008 13:07:02 -0000 On Mon, Jul 14, 2008 at 2:58 PM, Andres Chavez wrote: > hey guys i am having problems with postfix on freebsd. > > Postfix its listening on port smtps (465) but not on smtp (25) > and all of the services are up and running, even i can use the postfixadmin > to add mailboxes etc. Hi Anders What you can do is perhaps telnet into port 25 and see what service is running. like this : host# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 somehost.com ESMTP Sendmail 8.14.2/8.14.2; Mon, 14 Jul 2008 15:11:00 +0200 (SAST) You are probably running Sendmail. You can read more here : http://www.freebsd.org/doc/en/books/handbook/mail-changingmta.html Hope this helps. Karl -- -------------------------------------------------- Karl Fischer |_|0|_| "Absence of evidence |_|_|0| is not evidence of absence" |0|0|0| Carl Sagan - http://fischer.org.za - -------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 13:40:23 2008 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 E56571065679 for ; Mon, 14 Jul 2008 13:40:23 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from nexus.in-nomine.org (dhammapada.xs4all.nl [82.95.168.248]) by mx1.freebsd.org (Postfix) with ESMTP id A91948FC1E for ; Mon, 14 Jul 2008 13:40:23 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from localhost (localhost.domini.in-nomine.org [127.0.0.1]) by nexus.in-nomine.org (Postfix) with ESMTP id 3C08BD22B; Mon, 14 Jul 2008 15:40:22 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at in-nomine.org Received: from nexus.in-nomine.org ([127.0.0.1]) by localhost (nexus.domini.in-nomine.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cB30cdcZctmj; Mon, 14 Jul 2008 15:40:21 +0200 (CEST) Received: by nexus.in-nomine.org (Postfix, from userid 1000) id 5FEDAD229; Mon, 14 Jul 2008 15:40:21 +0200 (CEST) Date: Mon, 14 Jul 2008 15:40:21 +0200 From: Jeroen Ruigrok van der Werven To: Andres Chavez Message-ID: <20080714134021.GD60130@nexus.in-nomine.org> References: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> <20080714130145.GC60130@nexus.in-nomine.org> <2de331130807140614g2992f452rd487f2af2c6799ce@mail.gmail.com> <2de331130807140635y78df4e89o34d245a43802de72@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2de331130807140635y78df4e89o34d245a43802de72@mail.gmail.com> Organisation: Ninth Circle Enterprises User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Postfix problem. 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, 14 Jul 2008 13:40:24 -0000 Can you please cc: the mailinglist? Thanks. -On [20080714 15:36], Andres Chavez (fluxboxtremist@gmail.com) wrote: >postfix/postfix-script: warning: not owned by group maildrop: /usr/sbin/ >postdrop > >postfix/postfix-script: warning: not set-gid or not owner+group+world >executable: /usr/sbin/postdrop > >postfix/postfix-script: starting the Postfix mail system. I would suggest: 0) clean your system from your botched attempt at installing postfix by yourself 1) read http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 2) install postfix from ports/mail/postfix And take it from there? -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B In every stone sleeps a crystal... From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:07:54 2008 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 33E591065674 for ; Mon, 14 Jul 2008 14:07:54 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from clewlow.org (clewlow.org [210.215.149.194]) by mx1.freebsd.org (Postfix) with ESMTP id AB5018FC25 for ; Mon, 14 Jul 2008 14:07:53 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from 192.168.1.100 (localhost [127.0.0.1]) by clewlow.org (Postfix) with ESMTP id 849FC1C0844; Tue, 15 Jul 2008 00:07:51 +1000 (EST) Received: from 192.168.1.10 (SquirrelMail authenticated user tim) by 192.168.1.100 with HTTP; Tue, 15 Jul 2008 00:07:51 +1000 (EST) Message-ID: <62827.192.168.1.10.1216044471.squirrel@192.168.1.100> In-Reply-To: <20080714134021.GD60130@nexus.in-nomine.org> References: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> <20080714130145.GC60130@nexus.in-nomine.org> <2de331130807140614g2992f452rd487f2af2c6799ce@mail.gmail.com> <2de331130807140635y78df4e89o34d245a43802de72@mail.gmail.com> <20080714134021.GD60130@nexus.in-nomine.org> Date: Tue, 15 Jul 2008 00:07:51 +1000 (EST) From: "Tim Clewlow" To: fluxboxtremist@gmail.com User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20080715000751_48922" X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: Postfix problem. 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, 14 Jul 2008 14:07:54 -0000 ------=_20080715000751_48922 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit > Can you please cc: the mailinglist? Thanks. > > -On [20080714 15:36], Andres Chavez (fluxboxtremist@gmail.com) > wrote: >>postfix/postfix-script: warning: not owned by group maildrop: >> /usr/sbin/ >>postdrop >> >>postfix/postfix-script: warning: not set-gid or not >> owner+group+world >>executable: /usr/sbin/postdrop >> >>postfix/postfix-script: starting the Postfix mail system. > > I would suggest: > > 0) clean your system from your botched attempt at installing postfix > by > yourself > 1) read > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html > 2) install postfix from ports/mail/postfix > > And take it from there? > Hi there, I have attached the notes I gathered while making the postfix server that is sending you this mail. In particular, pay attention to the bit that says: As part of the installation the port asks if it could add user "postfix" to group "mail", I advise answering yes. It also offers to activate postfix in /etc/mail/mailer.conf, again answer yes. Regards, Tim. We are BSD ... resistance is futile. http://www.freebsd.org/ - http://www.openbsd.org/ - http://www.netbsd.org/ ------=_20080715000751_48922 Content-Type: application/octet-stream; name="postfix" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="postfix" ClRoaXMgZG9jdW1lbnQgZGV0YWlscyBob3cgdG8gaW5zdGFsbCBwb3N0Zml4IChhbmQgZGlzYWJs ZSBzZW5kbWFpbCkuIE5vdGUgdGhpcwp3YXMgZG9uZSBvbiBGcmVlQlNEIDYuMiB3aXRoIFBvc3Rm aXggMi41CgoKUFJFIElOU1RBTExBVElPTgoKU3RhcnQgYnkgc3RvcHBpbmcgc2VuZG1haWwgd2l0 aDoKCiAgICAuL2V0Yy9yYy5kL3NlbmRtYWlsIHN0b3AKCkluIC9ldGMvcmMuY29uZiBhZGQgb3Ig Y2hhbmdlIHRoZSBzZW5kbWFpbCBsaW5lcyB0byBiZWNvbWU6CgogICAgc2VuZG1haWxfZW5hYmxl PSJOTyIKICAgIHNlbmRtYWlsX3N1Ym1pdF9lbmFibGU9Ik5PIgogICAgc2VuZG1haWxfb3V0Ym91 bmRfZW5hYmxlPSJOTyIKICAgIHNlbmRtYWlsX21zcF9xdWV1ZV9lbmFibGU9Ik5PIgoKCklOU1RB TExBVElPTgoKSW5zdGFsbCBtYWlsL3Bvc3RmaXgKCkFzIHBhcnQgb2YgdGhlIGluc3RhbGxhdGlv biB0aGUgcG9ydCBhc2tzIGlmIGl0IGNvdWxkIGFkZCB1c2VyICJwb3N0Zml4IiB0bwpncm91cCAi bWFpbCIsIEkgYWR2aXNlIGFuc3dlcmluZyB5ZXMuIEl0IGFsc28gb2ZmZXJzIHRvIGFjdGl2YXRl IHBvc3RmaXggaW4KL2V0Yy9tYWlsL21haWxlci5jb25mLCBhZ2FpbiBhbnN3ZXIgeWVzLiBUaGUg ZmlsZSAvZXRjL21haWwvbWFpbGVyLmNvbmYgd2lsbApsb29rIHNvbWV0aGluZyBsaWtlOgoKICAg IHNlbmRtYWlsICAgICAgICAvdXNyL2xvY2FsL3NiaW4vc2VuZG1haWwKICAgIHNlbmQtbWFpbCAg ICAgICAvdXNyL2xvY2FsL3NiaW4vc2VuZG1haWwKICAgIG1haWxxICAgICAgICAgICAvdXNyL2xv Y2FsL3NiaW4vc2VuZG1haWwKICAgIG5ld2FsaWFzZXMgICAgICAvdXNyL2xvY2FsL3NiaW4vc2Vu ZG1haWwKCk5vdyBlbmFibGUgcG9zdGZpeCBpbiAvZXRjL3JjLmNvbmYgd2l0aDoKCiAgICBwb3N0 Zml4X2VuYWJsZT0iWUVTIgoKQW5kIGRpc2FibGUgc2VuZG1haWwgc3BlY2lmaWMgZGFpbHkgcm91 dGluZXMgaW4gL2V0Yy9wZXJpb2RpYy5jb25mOgoKICAgIGRhaWx5X2NsZWFuX2hvc3RzdGF0X2Vu YWJsZT0iTk8iCiAgICBkYWlseV9zdGF0dXNfbWFpbF9yZWplY3RzX2VuYWJsZT0iTk8iCiAgICBk YWlseV9zdGF0dXNfaW5jbHVkZV9zdWJtaXRfbWFpbHE9Ik5PIgogICAgZGFpbHlfc3VibWl0X3F1 ZXVlcnVuPSJOTyIKCgpDT05GSUdVUkFUSU9OCgpDYW4gcHJvYmFibHkgd29yayBvdXQgbW9zdCBv ZiB0aGUgc2V0dGluZ3MgaW4gL3Vzci9sb2NhbC9ldGMvcG9zdGZpeC9tYWluLmNmCmp1c3QgYnkg cmVhZGluZyB0aGUgY29tbWVudHMgYWxzbyBpbiB0aGF0IGZpbGUsIG9yIGNhbiByZWFkOgoKICAg IG1hbiA1IHBvc3Rjb25mCgpNdWNoIGdvb2Qgc3R1ZmYgY2FuIGFsc28gYmUgZm91bmQgYXQgaHR0 cDovL3d3dy5wb3N0Zml4Lm9yZy9kb2N1bWVudGF0aW9uLmh0bWwKQ29uZmlnIHNldHRpbmdzIGFy ZSBpbiBmaWxlIC91c3IvbG9jYWwvZXRjL3Bvc3RmaXgvbWFpbi5jZiB1bmxlc3Mgb3RoZXJ3aXNl CnNwZWNpZmllZC4KCllvdSBtdXN0IHJ1biB0aGUgZm9sbG93aW5nIGNvbW1hbmQgYXQgbGVhc3Qg b25jZSBiZWZvcmUgc3RhcnRpbmcgcG9zdGZpeCwgYW5kCnlvdSBtdXN0IGFsc28gcnVuIGl0IChh bmQgcmVzdGFydCBwb3N0Zml4KSBhZnRlciBtYWtpbmcgYW55IGNoYW5nZXMgdG8KL2V0Yy9hbGlh c2VzCgogICAgbmV3YWxpYXNlcwoKVGhlIGFib3ZlIGNvbW1hbmQgd2lsbCBjcmVhdGUgdGhlIGZp bGUgL2V0Yy9hbGlhc2VzLmRiIC0gaWYgeW91IGRvIG5vdCBoYXZlCnRoaXMgZmlsZSB0aGVuIHBv c3RmaXggd2lsbCBhYm9ydCBkdXJpbmcgc3RhcnR1cCwgaWUgaXQgd29udCB3b3JrLgoKClNUQVJU SU5HIFBPU1RJRlgKCllvdSBjYW4gZWl0aGVyIHJlYm9vdCBhbmQgbWFrZSBzdXJlIGV2ZXJ5dGhp bmcgc3RhcnRzIGF0IGJvb3QgYXMgZXhwZWN0ZWQsIG9yCmp1c3QgZG86CgogICAgcG9zdGZpeCBz dGFydAoKLS0tCgpFWEFNUExFCgpJbiB0aGUgc2V0dXAgSSBoYXZlIGF0IGhvbWUgKGNsZXdsb3cu b3JnKSBJIGNoYW5nZWQvdW5jb21tZW50ZWQgdGhlIGZvbGxvd2luZwpsaW5lcyBpbiAvdXNyL2xv Y2FsL2V0Yy9wb3N0Zml4L21haW4uY2YKCiAgICBteWhvc3RuYW1lID0gY2xld2xvdy5vcmcKICAg IG15ZG9tYWluID0gY2xld2xvdy5vcmcKICAgIG15b3JpZ2luID0gJG15aG9zdG5hbWUKICAgIG15 bmV0d29ya3MgPSAxOTIuMTY4LjEuMC8yNCwgMTI3LjAuMC4wLzgKICAgIGhvbWVfbWFpbGJveCA9 IE1haWxkaXIvCgo= ------=_20080715000751_48922-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:39:33 2008 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 37A3F106566C for ; Mon, 14 Jul 2008 14:39:33 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 692F58FC16 for ; Mon, 14 Jul 2008 14:39:32 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m6EEdMUw087204; Mon, 14 Jul 2008 16:39:22 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m6EEdKe8087203; Mon, 14 Jul 2008 16:39:20 +0200 (CEST) (envelope-from olli) Date: Mon, 14 Jul 2008 16:39:20 +0200 (CEST) Message-Id: <200807141439.m6EEdKe8087203@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, jhs@berklix.org In-Reply-To: <200807131636.m6DGZx73050160@fire.js.berklix.net> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 14 Jul 2008 16:39:23 +0200 (CEST) Cc: Subject: Re: GPG encryption of binary sample requested. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, jhs@berklix.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 14:39:33 -0000 Julian Stacey wrote: > [...] > I'll have to install some other POP3 (or IMAP) server, Big choice: > cd /usr/ports/mail; echo *pop* > akpop3d cucipop freepops mdpop3d nullpop p5-vpopmail pecl-pop3 > pop-before-smtp pop3gwd pop3lite pop3proxy pop3vscan popa3d > popa3d-before-sendmail popcheck popclient popd popfile poppassd > popper poppwd poppy popular qpopper solidpop3d teapop teapop-devel > tpop3d vm-pop3d vpopmail vpopmail-devel wmmultipop3 wmpop3 wmpop3lb I'm a satisfied user of dovecot (ports/mail/dovecot) for several years. Installation was painless. Works with standard mailfolders, so you don't have to convert to maildir format if you don't want to. YMMV, of course. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Passwords are like underwear. You don't share them, you don't hang them on your monitor or under your keyboard, you don't email them, or put them on a web site, and you must change them very often. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:40:32 2008 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 367E7106566C for ; Mon, 14 Jul 2008 14:40:32 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id 1A62E8FC1B for ; Mon, 14 Jul 2008 14:40:32 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: by duane.dbq.yournetplus.com (Postfix, from userid 1001) id D36553E2C20; Mon, 14 Jul 2008 12:42:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id CA8DD3E2C1F for ; Mon, 14 Jul 2008 12:42:16 +0000 (UTC) Date: Mon, 14 Jul 2008 12:42:16 +0000 (UTC) From: Duane Hill X-X-Sender: duane@duane.dbq.yournetplus.com To: freebsd-hackers@freebsd.org In-Reply-To: <62827.192.168.1.10.1216044471.squirrel@192.168.1.100> Message-ID: References: <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> <20080714130145.GC60130@nexus.in-nomine.org> <2de331130807140614g2992f452rd487f2af2c6799ce@mail.gmail.com> <2de331130807140635y78df4e89o34d245a43802de72@mail.gmail.com> <20080714134021.GD60130@nexus.in-nomine.org> <62827.192.168.1.10.1216044471.squirrel@192.168.1.100> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: Postfix problem. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d.hill@yournetplus.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 14:40:32 -0000 On Tue, 15 Jul 2008, Tim Clewlow wrote: > >> Can you please cc: the mailinglist? Thanks. >> >> -On [20080714 15:36], Andres Chavez (fluxboxtremist@gmail.com) >> wrote: >>> postfix/postfix-script: warning: not owned by group maildrop: >>> /usr/sbin/ >>> postdrop >>> >>> postfix/postfix-script: warning: not set-gid or not >>> owner+group+world >>> executable: /usr/sbin/postdrop >>> >>> postfix/postfix-script: starting the Postfix mail system. >> >> I would suggest: >> >> 0) clean your system from your botched attempt at installing postfix >> by >> yourself >> 1) read >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html >> 2) install postfix from ports/mail/postfix >> >> And take it from there? >> > > Hi there, > > I have attached the notes I gathered while making the postfix server > that is sending you this mail. In particular, pay attention to the > bit that says: > > As part of the installation the port asks if it could add user > "postfix" to group "mail", I advise answering yes. It also offers to > activate postfix in /etc/mail/mailer.conf, again answer yes. Not sure what the issue is other than what has already been suggested. However, Postfix can fix permission/owner-ship on its own files by doing: postfix set-permissions -d From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:55:16 2008 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 C93A01065675 for ; Mon, 14 Jul 2008 14:55:16 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 652DD8FC0C for ; Mon, 14 Jul 2008 14:55:16 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2922361fkk.11 for ; Mon, 14 Jul 2008 07:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=F+8XYWskQPkT67Pp42uUJqn1Rnir8+7sHp3uS7b4ewQ=; b=wQa3PftOv6VpZIJv8NB4ZnxvMOKdgg+69DjIekAOouY8Fsanlwja1O3br4Hmnvgk3v 2S9kX4u4u2go3sG14HcxRUAHvEoGrKE1WOYAJeZ9aHV15V6+4WRiy7aTiD+ijiGnSA+j HyLm9D4P3pfWEfrYGKx3eKSgLRgNHv0c3mgsk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dmefFqLyHLl0a8tt4U0aaSLjOC5SwRWqgRyOw6Khi7/nm0IPjqoBvcInCUfloSbjo7 lWq8d2KSgw3H72zUzeubalfdv2B1DJMAsWdjfc6HYa7+v+KQh/4bnxRJZAJ0xSu6BmFd pmnR6Jzlcaw++Zpe2Bwr7eGVKx33c1N5sVBE8= Received: by 10.86.95.20 with SMTP id s20mr8442909fgb.25.1216047315188; Mon, 14 Jul 2008 07:55:15 -0700 (PDT) Received: by 10.86.61.4 with HTTP; Mon, 14 Jul 2008 07:55:15 -0700 (PDT) Message-ID: <84dead720807140755s300e0158p16415ee3b9185840@mail.gmail.com> Date: Mon, 14 Jul 2008 20:25:15 +0530 From: "Joseph Koshy" To: "Stefan Lambrev" In-Reply-To: <487B3F37.7000300@moneybookers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <84dead720807122205i33bf6eb0p998d473df9e52304@mail.gmail.com> <487B3F37.7000300@moneybookers.com> Cc: FreeBSD Hackers , fabien.thomas@netasq.com, FreeBSD Stable List Subject: Re: Announcement: PmcTools callchain capture for RELENG_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: Mon, 14 Jul 2008 14:55:16 -0000 > Does it mean that hwpmc from now will work "out of the box" with new Intel > core2 duo/quad processors (like T7500) ? No, someone needs to write the appropriate CPU-dependent module for that. For those who are interested in doing so, there is a HowTo document at: http://wiki.freebsd.org/PmcTools/PmcHardwareHowTo Koshy From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:55:48 2008 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 8E16B1065671 for ; Mon, 14 Jul 2008 14:55:48 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 55E748FC1F for ; Mon, 14 Jul 2008 14:55:48 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KIPSp-0004si-5Z for freebsd-hackers@freebsd.org; Mon, 14 Jul 2008 14:55:43 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 14:55:43 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 14:55:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Mon, 14 Jul 2008 16:55:32 +0200 Lines: 42 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBB41C10D24896A04E0FF86C0" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: FreeBSD Best Practice 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, 14 Jul 2008 14:55:48 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBB41C10D24896A04E0FF86C0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Karl Fischer wrote: > Hello > I'm a SysAdmin, I'm wondering whether this is the correct list to ask? > I'm looking for FreeBSD Best Practice information, (or a FreeBSD > Mailing List, I can join) > I want to make sure that all my servers comply to at least some widely > accepted standards, > so in the event of me getting hit by a bus or being abducted by aliens,= > another person can take over from me. >=20 > I have done a search through the mailing lists and this seems like the > list to ask. The only thing that comes close to that is the Handbook, which covers only the base system (e.g. without web servers, databases and similar "third party" software). The Handbook describes how to set up RAID, networking, add users, sendmail (but no POP3/IMAP servers), etc. in a fairly detailed and consistent way. --------------enigBB41C10D24896A04E0FF86C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIe2jkldnAQVacBcgRAkyvAKCTN0M4kjPS1Pac/QgBL2S9S+5HqACdFOlH tSnE1snSnpxOBbuWJgxm8ak= =DIpc -----END PGP SIGNATURE----- --------------enigBB41C10D24896A04E0FF86C0-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 14:58:44 2008 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 25A911065676 for ; Mon, 14 Jul 2008 14:58:44 +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 261E58FC13 for ; Mon, 14 Jul 2008 14:58:43 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id D9A501CC092; Mon, 14 Jul 2008 07:58:43 -0700 (PDT) Date: Mon, 14 Jul 2008 07:58:43 -0700 From: Jeremy Chadwick To: freebsd-hackers@FreeBSD.ORG, jhs@berklix.org Message-ID: <20080714145843.GA50893@eos.sc1.parodius.com> References: <200807131636.m6DGZx73050160@fire.js.berklix.net> <200807141439.m6EEdKe8087203@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200807141439.m6EEdKe8087203@lurza.secnetix.de> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Re: GPG encryption of binary sample requested. 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, 14 Jul 2008 14:58:44 -0000 On Mon, Jul 14, 2008 at 04:39:20PM +0200, Oliver Fromme wrote: > Julian Stacey wrote: > > [...] > > I'll have to install some other POP3 (or IMAP) server, Big choice: > > cd /usr/ports/mail; echo *pop* > > akpop3d cucipop freepops mdpop3d nullpop p5-vpopmail pecl-pop3 > > pop-before-smtp pop3gwd pop3lite pop3proxy pop3vscan popa3d > > popa3d-before-sendmail popcheck popclient popd popfile poppassd > > popper poppwd poppy popular qpopper solidpop3d teapop teapop-devel > > tpop3d vm-pop3d vpopmail vpopmail-devel wmmultipop3 wmpop3 wmpop3lb > > I'm a satisfied user of dovecot (ports/mail/dovecot) for > several years. Installation was painless. Works with > standard mailfolders, so you don't have to convert to > maildir format if you don't want to. YMMV, of course. I'm also a satisfied user of dovecot (after switching from qpopper!). There is a problem I continually encounter with dovecot, however -- but it only applies if you're using dovecot with postfix, and have postfix configured to use dovecot as the SMTP AUTH authentication mechanism (yes, that's a feature dovecot provides as well!). -- | 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 Mon Jul 14 15:20:17 2008 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 18E6B1065674 for ; Mon, 14 Jul 2008 15:20:17 +0000 (UTC) (envelope-from davidfeustel@comcast.net) Received: from QMTA04.emeryville.ca.mail.comcast.net (qmta04.emeryville.ca.mail.comcast.net [76.96.30.40]) by mx1.freebsd.org (Postfix) with ESMTP id 18A4D8FC13 for ; Mon, 14 Jul 2008 15:20:17 +0000 (UTC) (envelope-from davidfeustel@comcast.net) Received: from OMTA11.emeryville.ca.mail.comcast.net ([76.96.30.36]) by QMTA04.emeryville.ca.mail.comcast.net with comcast id pm2l1Z02s0mlR8UA4r4Hnb; Mon, 14 Jul 2008 15:04:17 +0000 Received: from localhost ([69.245.196.200]) by OMTA11.emeryville.ca.mail.comcast.net with comcast id pr4F1Z00Q4KuD458Xr4GNt; Mon, 14 Jul 2008 15:04:16 +0000 X-Authority-Analysis: v=1.0 c=1 a=2KqpvLvSPzTkQTRID3QA:9 a=s0yifkOp0mB1cdicpH8A:7 a=iLd4Odf_HliHrJb2Dj2iC9SSNPEA:4 a=LY0hPdMaydYA:10 From: dfeustel@mindspring.com To: Ivan Voras In-Reply-To: Message-Id: <20080714152017.18A4D8FC13@mx1.freebsd.org> Date: Mon, 14 Jul 2008 15:20:17 +0000 (UTC) Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD Best Practice 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, 14 Jul 2008 15:20:17 -0000 On Mon, Jul 14, 2008 at 04:55:32PM +0200, Ivan Voras wrote: > Karl Fischer wrote: > > Hello > > I'm a SysAdmin, I'm wondering whether this is the correct list to ask? > > I'm looking for FreeBSD Best Practice information, (or a FreeBSD > > Mailing List, I can join) > > I want to make sure that all my servers comply to at least some widely > > accepted standards, > > so in the event of me getting hit by a bus or being abducted by aliens, > > another person can take over from me. > > > > I have done a search through the mailing lists and this seems like the > > list to ask. > > The only thing that comes close to that is the Handbook, which covers > only the base system (e.g. without web servers, databases and similar > "third party" software). The Handbook describes how to set up RAID, > networking, add users, sendmail (but no POP3/IMAP servers), etc. in a > fairly detailed and consistent way. Also, check out _Building a Server with FreeBSD 7_ by Bryan Hong. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 16:07:43 2008 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 3B0E9106564A for ; Mon, 14 Jul 2008 16:07:43 +0000 (UTC) (envelope-from ancelgray@yahoo.com) Received: from wombat.diezmil.com (aa.81.b6.static.xlhost.com [207.182.129.170]) by mx1.freebsd.org (Postfix) with ESMTP id 04D088FC1A for ; Mon, 14 Jul 2008 16:07:42 +0000 (UTC) (envelope-from ancelgray@yahoo.com) Received: from wombat.diezmil.com (wombat.diezmil.com [127.0.0.1]) by wombat.diezmil.com (8.14.2/8.14.2) with ESMTP id m6F00xDl013178 for ; Mon, 14 Jul 2008 20:00:59 -0400 Date: Mon, 14 Jul 2008 20:00:59 -0400 From: ancelgray@yahoo.com To: freebsd-hackers@freebsd.org Message-ID: <21541490.01216080059414.JavaMail.root@wombat.diezmil.com> In-Reply-To: <20080121170155.GC51116@hamlet.SetFilePointer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 14 Jul 2008 16:17:21 +0000 Subject: Re: Hardware support for AMD Geode CS5536 audio? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ancelgray@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 16:07:43 -0000 OK, After doing a little more reading, I see that a DOS test program is impossible because the MSR registers for the audio controller are accessed in protected mode only. There actually are opcoded assembler instructions to access the MSR's: RDMSR WRMSR This is a show stopper in DOS. This is gonna take a little patience. Andrew -- This message was sent on behalf of ancelgray@yahoo.com at openSubscriber.com http://www.opensubscriber.com/message/freebsd-hackers@freebsd.org/8429646.html From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 16:58:11 2008 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 9C06E1065675 for ; Mon, 14 Jul 2008 16:58:11 +0000 (UTC) (envelope-from tom@trancegeek.net) Received: from mhzweb.megahertz-computer.net (207-150-183-22.static.sagonet.net [207.150.183.22]) by mx1.freebsd.org (Postfix) with ESMTP id 49A4C8FC0A for ; Mon, 14 Jul 2008 16:58:11 +0000 (UTC) (envelope-from tom@trancegeek.net) Received: (qmail 6682 invoked from network); 14 Jul 2008 11:31:01 -0500 Received: from 207-150-183-22.static.sagonet.net (HELO Inbox) (166.196.135.185) by 207-150-183-22.static.sagonet.net with (RC4-MD5 encrypted) SMTP; 14 Jul 2008 11:31:00 -0500 MIME-Version: 1.0 content-class: From: Tom Norris Date: Mon, 14 Jul 2008 12:31:02 -0400 Importance: normal X-Priority: 3 To: Karl Fischer , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Message-Id: <20080714165811.49A4C8FC0A@mx1.freebsd.org> Cc: Subject: RE: FreeBSD Best Practice 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, 14 Jul 2008 16:58:11 -0000 Absolute FreeBSD by Michael W. Lucas is also a good book for getting a Free= BSD system up and running. When I first started running BSD that book and = the handbook were my bibles. (sorry for the top reply -- limitation of my wintendo phone) -----Original Message----- From: Karl Fischer Sent: Monday, July 14, 2008 7:08 AM To: freebsd-hackers@freebsd.org Subject: FreeBSD Best Practice Hello I'm a SysAdmin, I'm wondering whether this is the correct list to ask? I'm looking for FreeBSD Best Practice information, (or a FreeBSD Mailing List, I can join) I want to make sure that all my servers comply to at least some widely accepted standards, so in the event of me getting hit by a bus or being abducted by aliens, another person can take over from me. I have done a search through the mailing lists and this seems like the list to ask. Thanks Karl --=20 -------------------------------------------------- Karl Fischer |_|0|_| "Absence of evidence |_|_|0| is not evidence of absence" |0|0|0| Carl Sagan - http://fischer.org.za - -------------------------------------------------- _______________________________________________ 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 Mon Jul 14 18:36:19 2008 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 CE350106566C for ; Mon, 14 Jul 2008 18:36:19 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 956768FC15 for ; Mon, 14 Jul 2008 18:36:19 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2097657ywe.13 for ; Mon, 14 Jul 2008 11:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=R9oiceFl73SKluXb9ZoO+QmFc/5m5XI6khCcUMJP65A=; b=Qeb1LRSh5cSxMgynCTVw9Ohp7KJEy3m3WcQrMKLSshX9D6nIUOdzto9W8vZNIeJ8EP 7NVAkwXa5qZlj6RVRGNj8YE1PsHw5Lu5XhpmZM3Q8FTlA3io+VMqjiwN0tDXFs7bAhid Kk9J6zIsWhVy9K7yU5/v5lr+au3ogHQxsEDA0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Rk4K93RuX9nQDzYZbJITFqMe7pT018WlopNIYEAe2xHUcO9A76II+vpsWF+2cZG7IE VpfNaZTqpe+3ya5I7petbNKyVtAJLS0VjrQk3hZwEC/q7RZcKpzy5WxSIHwVxrGUaTxQ xYjKQzQCZStz+8tNVfUFdxY/5Y+JCTqWBL1F4= Received: by 10.103.227.13 with SMTP id e13mr8115342mur.49.1216058812739; Mon, 14 Jul 2008 11:06:52 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 11:06:52 -0700 (PDT) Message-ID: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> Date: Mon, 14 Jul 2008 23:36:52 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 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: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 18:36:19 -0000 Hi All, I am new to FreeBSD and this mailing list as well. What I want to achieve is change the device of my mount point '/'(or any other mount point) after I reboot the machine. I have some knowledge about initrd in Linux in which I can change the device for '/' and than reboot the machine so that it takes a new device for '/'. How can I achieve this in FreeBSD? I am using the latest release 7.0. Any pointers will be helpful. Thanks, --Tapan. From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 18:40:30 2008 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 D6CF61065684 for ; Mon, 14 Jul 2008 18:40:30 +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 D2C018FC27 for ; Mon, 14 Jul 2008 18:40:30 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id B9EC31CC092; Mon, 14 Jul 2008 11:40:30 -0700 (PDT) Date: Mon, 14 Jul 2008 11:40:30 -0700 From: Jeremy Chadwick To: Tapan Chaudhari Message-ID: <20080714184030.GA62288@eos.sc1.parodius.com> References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 18:40:30 -0000 On Mon, Jul 14, 2008 at 11:36:52PM +0530, Tapan Chaudhari wrote: > Hi All, > I am new to FreeBSD and this mailing list as well. > What I want to achieve is change the device of my mount point '/'(or any > other mount point) after I reboot the machine. I have some knowledge about > initrd in Linux in which I can change the device for '/' and than reboot the > machine so that it takes a new device for '/'. > How can I achieve this in FreeBSD? I am using the latest release 7.0. Any > pointers will be helpful. I think you're looking for the loader variables rootdev or root.vfs.mountrootfsfrom. -- | 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 Mon Jul 14 19:18:57 2008 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 839D3106566B for ; Mon, 14 Jul 2008 19:18:57 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 428918FC17 for ; Mon, 14 Jul 2008 19:18:57 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2103736ywe.13 for ; Mon, 14 Jul 2008 12:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=9h5iwRqSIbcNd3qhFKc4zN/ikchjAxkv3Z5xCEVTorc=; b=UwixQbRon8DQymlri8XNnmGyqYxq3aYRlkNyyVYjs46IKe6uNwsNiE1BjqMkBWeueN eWCmikiP3QFyhK4Ir6BVEme/13kyOdEn/9oGBTPUZwPNWIZefUEeSaYhblIA6ydCjwJF NHVpFCfzNVw+eYj2q3vwsBF2RjboWq+aVZkHQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=Fpmwim4QS0r9a1pqJSY1aU2SBQymd2Hq1lJ8G17XB/vutAWlISTO3iqD0Wxdacu6jB 3B3jwamK7yB9od9ElXYI9KmGQunVh2cpHw68uo766j5VE77hi4J0JKn394sOYaAdlWk3 0XoFV3MTIN9c2r/rPwC1F31kt3Zo2+2gLGDZc= Received: by 10.103.6.6 with SMTP id j6mr8176439mui.89.1216063122615; Mon, 14 Jul 2008 12:18:42 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 12:18:42 -0700 (PDT) Message-ID: <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> Date: Tue, 15 Jul 2008 00:48:42 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <20080714184030.GA62288@eos.sc1.parodius.com> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> 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: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 19:18:57 -0000 This is not exactly what I wanted. I will try to elaborate myself. I am creating my own device which will act as a new boot slice which must be mounted as '/'. New device will process i/o calls and then redirect the i/o calls to original device of '/'. Now since I cannot unmount '/' and mount it again with my new device while system is running, I will have to find a way to tell kernel to mount my new device as '/' from next time onwards it boots. does anyone have suggestions on this? Thanks, --Tapan. On Tue, Jul 15, 2008 at 12:10 AM, Jeremy Chadwick wrote: > On Mon, Jul 14, 2008 at 11:36:52PM +0530, Tapan Chaudhari wrote: > > Hi All, > > I am new to FreeBSD and this mailing list as well. > > What I want to achieve is change the device of my mount point '/'(or any > > other mount point) after I reboot the machine. I have some knowledge > about > > initrd in Linux in which I can change the device for '/' and than reboot > the > > machine so that it takes a new device for '/'. > > How can I achieve this in FreeBSD? I am using the latest release 7.0. Any > > pointers will be helpful. > > I think you're looking for the loader variables rootdev or > root.vfs.mountrootfsfrom. > > -- > | 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 Mon Jul 14 19:37:14 2008 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 F06E3106566C for ; Mon, 14 Jul 2008 19:37:14 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id 82EA78FC16 for ; Mon, 14 Jul 2008 19:37:14 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 1799 invoked by uid 1001); 14 Jul 2008 15:37:00 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Mon, 14 Jul 2008 15:36:59 -0400 Date: Mon, 14 Jul 2008 15:36:53 -0400 To: "Tapan Chaudhari" Message-ID: <20080714153653.59ecb307@bhuda.mired.org> In-Reply-To: <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 19:37:15 -0000 On Tue, 15 Jul 2008 00:48:42 +0530 "Tapan Chaudhari" wrote: > This is not exactly what I wanted. I will try to elaborate myself. > I am creating my own device which will act as a new boot slice which must be > mounted as '/'. New device will process i/o calls and then redirect the i/o > calls to original device of '/'. Now since I cannot unmount '/' and mount it > again with my new device while system is running, I will have to find a way > to tell kernel to mount my new device as '/' from next time onwards it > boots. > does anyone have suggestions on this? That's pretty much exactly what vfs.root.mountfrom does. Edit /boot/loader.conf to add a line: vfs.root_mountfrom="fstype:devicespec" and you're good to go. The kernel will boot from your default root partition, then remount root using the value of that variable. I.e. - I set mine to "zfs:internal/root" to boot my system to a zfs root. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 20:38:38 2008 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 61FF4106564A for ; Mon, 14 Jul 2008 20:38:38 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184]) by mx1.freebsd.org (Postfix) with ESMTP id DFE858FC1F for ; Mon, 14 Jul 2008 20:38:37 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so787284gve.39 for ; Mon, 14 Jul 2008 13:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=YNT9bBWrTuuIl+Q58zSRqfhM2x+4BRE3Yjap9WNe7BE=; b=VdmTpxkXVzjHpzlVl0N9T9Zjh3/8SpmEo8T+V+pRZ9xuTASnx//9DXF8cYUxqQK8J4 YAnxNnC98wotywB239u0O98HXyxAT/1O7XO+9RRa3g+P5BP4SlUPVSgz9SkZ9l3k0s6T HVDU91+P/u4/UdatXRSAnk6uh+93aCiYZghdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=pcfNVFCbmxwcxaHHFDhAXELDYeQ8ioafoW5qOjvuoZYl3p+afnUYWJVpQVx9eOG1+a vvwJ+wojwDD9SsYSnMKH1oXG03HlZPQbobfU4XCvfDFQU56E+5WsnNvHOIeNdxHfFNY4 ovLhO3MqKZJQiMkNhXJHdu9Ny7wgV58laOqWU= Received: by 10.103.251.2 with SMTP id d2mr8224147mus.88.1216066224523; Mon, 14 Jul 2008 13:10:24 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 13:10:24 -0700 (PDT) Message-ID: <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> Date: Tue, 15 Jul 2008 01:40:24 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <20080714153653.59ecb307@bhuda.mired.org> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> <20080714153653.59ecb307@bhuda.mired.org> 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: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 20:38:38 -0000 Hi, Thanks a lot Mike. But the problem is the device I am talking about is not the physical device. I am writing a driver which will create a virtual device and all the i/os done on this virtual device will be ultimately redirected to the original device. Correct me if I am wrong, but I guess the loader will try to mount my new device on '/' and then load the modules into the kernel. Since my driver would not be loaded at that point in time, it will fail to even mount '/'. Am I right? Or can our drivers get loaded before loader mounts '/' ? Thanks, --Tapan. On Tue, Jul 15, 2008 at 1:06 AM, Mike Meyer wrote: > On Tue, 15 Jul 2008 00:48:42 +0530 > "Tapan Chaudhari" wrote: > > > This is not exactly what I wanted. I will try to elaborate myself. > > I am creating my own device which will act as a new boot slice which must > be > > mounted as '/'. New device will process i/o calls and then redirect the > i/o > > calls to original device of '/'. Now since I cannot unmount '/' and mount > it > > again with my new device while system is running, I will have to find a > way > > to tell kernel to mount my new device as '/' from next time onwards it > > boots. > > does anyone have suggestions on this? > > That's pretty much exactly what vfs.root.mountfrom does. Edit > /boot/loader.conf to add a line: > > vfs.root_mountfrom="fstype:devicespec" > > and you're good to go. The kernel will boot from your default root > partition, then remount root using the value of that variable. I.e. - > I set mine to "zfs:internal/root" to boot my system to a zfs root. > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > > O< ascii ribbon campaign - stop html mail - www.asciiribbon.org > From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 20:58:04 2008 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 2C1B7106568A for ; Mon, 14 Jul 2008 20:58:04 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id CD3A68FC0C for ; Mon, 14 Jul 2008 20:58:03 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 4587 invoked by uid 1001); 14 Jul 2008 16:57:49 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Mon, 14 Jul 2008 16:57:49 -0400 Date: Mon, 14 Jul 2008 16:57:47 -0400 To: "Tapan Chaudhari" Message-ID: <20080714165747.6c12371b@bhuda.mired.org> In-Reply-To: <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> <20080714153653.59ecb307@bhuda.mired.org> <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 20:58:04 -0000 On Tue, 15 Jul 2008 01:40:24 +0530 "Tapan Chaudhari" wrote: > Hi, > Thanks a lot Mike. But the problem is the device I am talking about is > not the physical device. I am writing a driver which will create a virtual > device and all the i/os done on this virtual device will be ultimately > redirected to the original device. Correct me if I am wrong, but I guess the > loader will try to mount my new device on '/' and then load the modules into > the kernel. Since my driver would not be loaded at that point in time, it > will fail to even mount '/'. Am I right? Or can our drivers get loaded > before loader mounts '/' ? You gotta keep your "/"'s straight. The kernel will boot of off a physical devices - pretty much required. At that point, you can use boot.config to load modules from that device, including any needed to keep your driver happy. Set the vsf.root.mountfrom to tell the kernel what where to find what's going to become the root file system when it gets to that point. The process is documented in the man pages, starting with say boot(8). Read through that and some of the "SEE ALSO" pages. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 21:13:13 2008 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 DB7B0106564A for ; Mon, 14 Jul 2008 21:13:13 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6EE8FC16 for ; Mon, 14 Jul 2008 21:13:13 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so1110904ana.13 for ; Mon, 14 Jul 2008 14:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=iwQyOsQOXCWzp3O7hpUkAW8cdS96Joue7whodx+HDv8=; b=Tinff0qGAazZKijrsmbuo+i60lsypcU9ftgB3I/8EDW80X3OgYaJDXD5ddUtXhj+gk Ol9YquUK2h3VTz/e7UkwbE/EgwsmzrwGsatWTEUQNJoQ7MhxlHA1joUJuisx3XATuaF1 zlg4ZODQM640/2QlVq7c/0rLfGuFBvR5l863A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pVsN6DjJ0TbzbSoJ6xZMq8MyBf4320XCkWY4VExKshYKgAY86YnMa7Ogd04zXXQGCb WKggLbu8M3+gGMQtsRS8QE9FECbqjJndL3rG+6rrpAM9najDA9eb9rxeUfLMDSHoI1TR jidZZZJNg1DRbXvR3+X12HT24GR0cauKREwWQ= Received: by 10.100.37.20 with SMTP id k20mr10772981ank.12.1216069068453; Mon, 14 Jul 2008 13:57:48 -0700 (PDT) Received: by 10.100.42.12 with HTTP; Mon, 14 Jul 2008 13:57:48 -0700 (PDT) Message-ID: Date: Mon, 14 Jul 2008 22:57:48 +0200 From: "Mateusz Guzik" To: "Tapan Chaudhari" In-Reply-To: <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> <20080714153653.59ecb307@bhuda.mired.org> <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 14 Jul 2008 21:13:13 -0000 2008/7/14 Tapan Chaudhari : > > Hi, > Thanks a lot Mike. But the problem is the device I am talking about is > not the physical device. I am writing a driver which will create a virtual > device and all the i/os done on this virtual device will be ultimately > redirected to the original device. Correct me if I am wrong, but I guess the > loader will try to mount my new device on '/' and then load the modules into > the kernel. Since my driver would not be loaded at that point in time, it > will fail to even mount '/'. Am I right? Or can our drivers get loaded > before loader mounts '/' ? Yes, take a look at /boot/loader.conf . From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 01:11:01 2008 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 0A6121065677; Tue, 15 Jul 2008 01:11:01 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from bcmelmx.bytecraft.au.com (bcmelmx.bytecraft.au.com [203.39.118.2]) by mx1.freebsd.org (Postfix) with ESMTP id 6D6648FC14; Tue, 15 Jul 2008 01:11:00 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmarshal.bytecraft.internal ([10.0.0.3]) by bcmelmx.bytecraft.au.com (8.13.8/8.12.11) with ESMTP id m6F1AunV043833; Tue, 15 Jul 2008 11:10:56 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.0.0.24]) by svmailmarshal.bytecraft.internal with MailMarshal (v6, 4, 1, 5038) id ; Tue, 15 Jul 2008 11:10:55 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Jul 2008 11:10:54 +1000 Message-ID: <04E232FDCD9FBE43857F7066CAD3C0F15B837B@svmailmel.bytecraft.internal> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: massive interrupt storm Thread-Index: AcjgzWHn/AJAIZuGTOyOFS4vP2B/aACGSYOQAMwIt3A= From: "Murray Taylor" To: "Murray Taylor" , "Jeremy Chadwick" Cc: freebsd-hackers@freebsd.org, Sergey Babkin Subject: RE: massive interrupt storm 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, 15 Jul 2008 01:11:01 -0000 On Tue, Jul 08, 2008 at 05:21:34PM +1000, Murray Taylor wrote: > We have variously shutdown all USB in the bios, pulled the Raid=20 > daughter board, and still cant solve this storm. Have you tried disabling MSI and MSI-X in FreeBSD to see if it makes a difference? Set hw.pci.enable_msi=3D"0" and hw.pci.enable_msix=3D"0" in /boot/loader.conf and reboot. --=20 | Jeremy Chadwick jdc at parodius.com | ---------------------------- Nope, :( Interrupt usage is still around the 89-95% :(=20 NB sysctl -a | grep msi returns nothing, and attempting to set the values directly returns 'unknown OID' this is on 6.2 GENERIC -------- Still looking for any other hints as to what may be causing this storm. We have tried the msi hints above, with no joy. shutting down USB stuff in the=20 BIOS (no joy), disabling ACPI on boot (this generates a kernel fault and reboots) and different keyboards ( USB only, this thing has no PS/2 ports ) This only thing that made a difference, and that was not totally repeatable was unplugging and re-plugging a keyboard after boot.... then the storm stopped, but we were still without bge1 (a single NIC firewall is kinda useless!) Murray Taylor --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.=20 E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- ### This e-mail message has been scanned for Viruses by Bytecraft ### From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 02:25:06 2008 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 349CD1065672 for ; Tue, 15 Jul 2008 02:25:06 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id B20228FC0C for ; Tue, 15 Jul 2008 02:25:05 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1888969nfh.33 for ; Mon, 14 Jul 2008 19:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=smaQ8TfSCx6YVNMF9qmHuRKlGCed4nVqWO4K+fcFmTE=; b=d5XzaqcWDy04ZS9oslhENRRNXx1Aec+Le8Tx6TdTUfZKZHnk36NCychtNO4MADv/O0 CtH0UbcC8qFEGj+I7xSs/x8/15xsuWEG8U61sqoCKUDeiQeS5Pcz7H+/Go09c4xdGeif UptfhNDuloTPi+L6dby0uFaqy0AUa8yfTHQRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=ho+Mcz4+tuPCHYC/HhIhBVQQqJ8/967gm7jPlf9+3mU+odwMD+gSjBJzcqAqQ5qMmC Bf4gSphLqiIliitxVc95d7tAPOBSa9NE+XE36bf8ALKelu52nvRRnQP4ZIzr7pXqfjw0 El6DpaLRdXa0H3bFLmRpz3oGWHf/Pl64htUeA= Received: by 10.103.24.11 with SMTP id b11mr8443494muj.77.1216088704189; Mon, 14 Jul 2008 19:25:04 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 19:25:04 -0700 (PDT) Message-ID: <482257ad0807141925m37c5b46bqa65c33852078b6f8@mail.gmail.com> Date: Tue, 15 Jul 2008 07:55:04 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <20080714165747.6c12371b@bhuda.mired.org> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> <20080714153653.59ecb307@bhuda.mired.org> <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> <20080714165747.6c12371b@bhuda.mired.org> 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: Can I change the device of the "/" mount point at boot time. 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, 15 Jul 2008 02:25:06 -0000 Thank You Mateusz and Mike. I guess I am clear with my doubt now. I will also go through the man pages to go into depth of it. Thanks, --Tapan. On Tue, Jul 15, 2008 at 2:27 AM, Mike Meyer wrote: > On Tue, 15 Jul 2008 01:40:24 +0530 > "Tapan Chaudhari" wrote: > > > Hi, > > Thanks a lot Mike. But the problem is the device I am talking about is > > not the physical device. I am writing a driver which will create a > virtual > > device and all the i/os done on this virtual device will be ultimately > > redirected to the original device. Correct me if I am wrong, but I guess > the > > loader will try to mount my new device on '/' and then load the modules > into > > the kernel. Since my driver would not be loaded at that point in time, it > > will fail to even mount '/'. Am I right? Or can our drivers get loaded > > before loader mounts '/' ? > > You gotta keep your "/"'s straight. The kernel will boot of off a > physical devices - pretty much required. At that point, you can use > boot.config to load modules from that device, including any needed to > keep your driver happy. Set the vsf.root.mountfrom to tell the kernel > what where to find what's going to become the root file system when it > gets to that point. > > The process is documented in the man pages, starting with say > boot(8). Read through that and some of the "SEE ALSO" pages. > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > > O< ascii ribbon campaign - stop html mail - www.asciiribbon.org > From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 03:31:16 2008 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 996A51065674; Tue, 15 Jul 2008 03:31:16 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 515D98FC16; Tue, 15 Jul 2008 03:31:16 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6F3VFB18667; Mon, 14 Jul 2008 20:31:15 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m6F3VFd23829; Mon, 14 Jul 2008 20:31:15 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Mon, 14 Jul 2008 20:31:15 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Nate Eldredge In-Reply-To: Message-ID: References: <4879563B.5090201@FreeBSD.org> <4879D46E.7080104@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3 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, 15 Jul 2008 03:31:16 -0000 On Sun, 13 Jul 2008, Nate Eldredge wrote: > On Sun, 13 Jul 2008, Kris Kennaway wrote: > >> Nate Eldredge wrote: >>> On Sun, 13 Jul 2008, Kris Kennaway wrote: >>> >>>> Nate Eldredge wrote: >>>>> Hi folks, >>>>> >>>>> Hopefully this is a good list for this topic. >>>>> >>>>> It seems like there has been a regression in interactivity from >>>>> 6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After >>>>> upgrading my single-cpu amd64 box, 7.0 has much worse latency. When >>>>> running a kernel compile, there is a noticeable lag to echo my typing or >>>>> scroll my browser windows, and playing an mp3 frequently cuts out for a >>>>> second or two. This did not happen on 6.3-RELEASE. >>>> >>>> Are you sure it's not the x.org server bug that was present in the >>>> version shipped with 7.0? Update to the latest version and see if your X >>>> interactivity improves. >>> >>> Yes, I had not yet upgraded my x.org port when testing this, so it was the >>> same x.org that was fine under 6.3. Also: >>> >>>>> I wrote a small program which forks two processes that run >>>>> gettimeofday() in a tight loop to see how long they get scheduled out. >>>>> On 6.3 the maximum latency is usually under 100 ms. On 7.0 it is 500 ms >>>>> or more even when nothing else is running on the system. When a compile >>>>> is also running it is sometimes 1400 ms or more. >>> >>> This test shows a difference even in single user mode, when X is not >>> running at all. >>> >> >> It shows *a* difference, but perhaps not the *same* difference. Please >> humour me and rule it out. > > Okay. I am in the process of recompiling all my ports, so after that is done > I will boot with a GENERIC kernel and see what happens. After trying this, I can't seem to reproduce the sound skipping behavior, unless I do something fairly extreme like "make -j 6". But the mouse does seem to skip when a compile is running, so I do believe there is a regression. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 04:05:00 2008 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 A8BD4106566C for ; Tue, 15 Jul 2008 04:05:00 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id EDD348FC08 for ; Tue, 15 Jul 2008 04:04:59 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m6F3WXpn013655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 15 Jul 2008 13:02:33 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 15 Jul 2008 13:02:23 +0930 User-Agent: KMail/1.9.7 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714165747.6c12371b@bhuda.mired.org> <482257ad0807141925m37c5b46bqa65c33852078b6f8@mail.gmail.com> In-Reply-To: <482257ad0807141925m37c5b46bqa65c33852078b6f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1286294.IYKM9OJmET"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200807151302.30415.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Tapan Chaudhari Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 15 Jul 2008 04:05:00 -0000 --nextPart1286294.IYKM9OJmET Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 15 Jul 2008, Tapan Chaudhari wrote: > Thank You Mateusz and Mike. I guess I am clear with my doubt now. I > will also go through the man pages to go into depth of it. The critical thing is that the loader must read the kernel (and modules,=20 config etc..) from a disk the BIOS knows about. After that you can use any device the kernel knows about. As for the virtual device aspect - could you use a geom class to do you=20 want? It's hard to say without an overview of what you actually want to=20 achieve :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1286294.IYKM9OJmET Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIfBpO5ZPcIHs/zowRAhfcAKChEdS7klPgO/wVsH2cA4dJd2fTnwCeIFwT S4Godvivg0Yxu5/oT6EG5OA= =qym3 -----END PGP SIGNATURE----- --nextPart1286294.IYKM9OJmET-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 04:38:27 2008 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 83A8D1065685 for ; Tue, 15 Jul 2008 04:38:27 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by mx1.freebsd.org (Postfix) with ESMTP id 003478FC17 for ; Tue, 15 Jul 2008 04:38:26 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so1951922mue.3 for ; Mon, 14 Jul 2008 21:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=DnqxKmdFklFKbA00YkUPshn7fdTc0nQILkt7Fec4LLE=; b=TiZUjXy7WXaqe+QNHkg79FNM2O1GGXyHak30U15ifqOKXN+F3CKhzltpVq3SOVEWPb VubGk3GHD+Qn4KIRyTHCoNTsVwF9RhlP0YPsUS4fa3SofOIQ38eoxvWaILTEmbNbc6pV t4iCKXXhSkq2Rn1ARpBmSzq+EX50zd1domocg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=KXfHmgR224jia1Ba6RH+me7Yk3lo/Kp4XGRzX8bWuak7mjAer+LBqz7chh8OMBclko UKSH9CNrL8QL28yKTmz4BJbXCcEV1WXhumQBjjmX0H5HcbHQZk3ftXws6TcULJyRjpvU SBeeHRt42twYigqrpKrobET7K/WR4I6sNXxyA= Received: by 10.103.250.9 with SMTP id c9mr8507089mus.37.1216096705365; Mon, 14 Jul 2008 21:38:25 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Mon, 14 Jul 2008 21:38:25 -0700 (PDT) Message-ID: <482257ad0807142138j1f7b7dd8nda7de865a4616fc0@mail.gmail.com> Date: Tue, 15 Jul 2008 10:08:25 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <200807151302.30415.doconnor@gsoft.com.au> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714165747.6c12371b@bhuda.mired.org> <482257ad0807141925m37c5b46bqa65c33852078b6f8@mail.gmail.com> <200807151302.30415.doconnor@gsoft.com.au> 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: Can I change the device of the "/" mount point at boot time. 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, 15 Jul 2008 04:38:27 -0000 Hey, Thanks Deniel for the reply. I am aware of the fact you mentioned and will keep in mind. Well what i am trying to achieve is a simple thing to write an interception driver to catch all the i/os going to a particular device, do some manipulations on it and than let it through to the original device. Well as you mentioned about geom, I have recently posted a mail on GEOM mailing list as I could not find geom doing interception, the discussion is still on (You can see the mails with subject line "Can GEOM be used to intercept the I/o calls to an existing mounted device?"). Any sugessuions on interception driver will be helpful? As an interception driver is not possible, for time being I am going towards the redirection concept which will require a reboot and changing the devices on the mount points. For redirection driver, I dont think I will need geom. I can directly create a new device. Rather I think it would be an overhead using geom for a virtual device. Any thoughts on both the issues? Thanks, --Tapan. On Tue, Jul 15, 2008 at 9:02 AM, Daniel O'Connor wrote: > On Tue, 15 Jul 2008, Tapan Chaudhari wrote: > > Thank You Mateusz and Mike. I guess I am clear with my doubt now. I > > will also go through the man pages to go into depth of it. > > The critical thing is that the loader must read the kernel (and modules, > config etc..) from a disk the BIOS knows about. > > After that you can use any device the kernel knows about. > > As for the virtual device aspect - could you use a geom class to do you > want? It's hard to say without an overview of what you actually want to > achieve :) > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 04:56:18 2008 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 EC29A1065675 for ; Tue, 15 Jul 2008 04:56:18 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: from hunter.Sisis.de (mail.oclc.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id 5ABB78FC19 for ; Tue, 15 Jul 2008 04:56:18 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id GAA24102 for ; Tue, 15 Jul 2008 06:44:19 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) Received: from ip-77-24-144-10.web.vodafone.de(77.24.144.10) by hunter.Sisis.de via smap (V2.1) id xma023986; Tue, 15 Jul 08 06:43:38 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m6F4pV03002420 for freebsd-hackers@freebsd.org; Tue, 15 Jul 2008 06:51:31 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Tue, 15 Jul 2008 06:51:28 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080715045128.GA2031@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) Subject: list blocklist from inode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 04:56:19 -0000 Hello, Is there a way (without using fsdb(8)) to list the block list from a given inode? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 05:08:51 2008 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 B5C9D1065672 for ; Tue, 15 Jul 2008 05:08:51 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 6F19D8FC0C for ; Tue, 15 Jul 2008 05:08:51 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 94227 invoked by uid 2001); 15 Jul 2008 05:08:50 -0000 Date: Tue, 15 Jul 2008 00:08:50 -0500 From: "Rick C. Petty" To: Matthias Apitz Message-ID: <20080715050850.GA94069@keira.kiwi-computer.com> References: <20080715045128.GA2031@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080715045128.GA2031@rebelion.Sisis.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: list blocklist from inode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 05:08:51 -0000 On Tue, Jul 15, 2008 at 06:51:28AM +0200, Matthias Apitz wrote: > > Is there a way (without using fsdb(8)) to list the block list from a > given inode? thx ffsinfo -i -l 0x230 -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 06:08:44 2008 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 E6C1B1065673 for ; Tue, 15 Jul 2008 06:08:44 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 252228FC1C for ; Tue, 15 Jul 2008 06:08:43 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m6F68dmO076846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 15 Jul 2008 15:38:39 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 15 Jul 2008 15:38:36 +0930 User-Agent: KMail/1.9.7 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <200807151302.30415.doconnor@gsoft.com.au> <482257ad0807142138j1f7b7dd8nda7de865a4616fc0@mail.gmail.com> In-Reply-To: <482257ad0807142138j1f7b7dd8nda7de865a4616fc0@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2266764.zHTSuDn3IL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200807151538.38285.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Tapan Chaudhari Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 15 Jul 2008 06:08:45 -0000 --nextPart2266764.zHTSuDn3IL Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 15 Jul 2008, Tapan Chaudhari wrote: > Thanks Deniel for the reply. I am aware of the fact you mentioned > and will keep in mind. > Well what i am trying to achieve is a simple thing to write an > interception driver to catch all the i/os going to a particular > device, do some manipulations on it and than let it through to the > original device. Well as you mentioned about geom, I have recently > posted a mail on GEOM mailing list as I could not find geom doing > interception, the discussion is still on (You can see the mails with > subject line "Can GEOM be used to intercept the I/o calls to an > existing mounted device?"). Any sugessuions on interception driver > will be helpful? My first question would be "Why do you want to do that?" > As an interception driver is not possible, for time being I am going > towards the redirection concept which will require a reboot and > changing the devices on the mount points. For redirection driver, I > dont think I will need geom. I can directly create a new device. > Rather I think it would be an overhead using geom for a virtual > device. > Any thoughts on both the issues? I think you'd have a lower overhead and much less hassle writing a GEOM=20 class and using that. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2266764.zHTSuDn3IL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIfD7m5ZPcIHs/zowRAnE3AJ4sguOAy6lCvyQhkhBi6Z8yPixvrACfQwOf 5U/rRk0EOolbyJxy3TzGZMo= =YVqG -----END PGP SIGNATURE----- --nextPart2266764.zHTSuDn3IL-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 15 21:35:24 2008 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 01F8A1065679 for ; Tue, 15 Jul 2008 21:35:24 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 2B13B8FC28 for ; Tue, 15 Jul 2008 21:35:21 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so3719938fgb.35 for ; Tue, 15 Jul 2008 14:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=xLGvBCNfRm0KgtiyfZ1vMvwHvRTpK560618G4/fIuyE=; b=ABEhn1D/Toufx4b0jcqO6bNRVJShPPZwgb4oXw/I+2NcvmNafJaguY7TS2jqu9ZGr1 BnNVWYOwdbbpbZ9ld1rJ7R1yPTxZ9CwGXWOXtggvNotTVLQqbNkP71JybqennDaVe57A 46qpBcOK7cnNnM0MNxP8mTp7lzu/0hjAchj/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=RB1fdZBBGHI3HFF63p6DhleCn+qrjyk0LpjN6/jAAIo+/bNHFD+371hDYgceKhoUZD bS8Xo+rgb39SKrlHx4P/eFJBVjjrv9CDl6TFFsTICO2vBDxV1NONTw19Ng7xubW7P/Pm Oh3FOiOw8cV2oEjpYIZ2iTIq6ZUamc5JnMsgo= Received: by 10.86.92.7 with SMTP id p7mr898050fgb.72.1216157720541; Tue, 15 Jul 2008 14:35:20 -0700 (PDT) Received: from sigill.net.autocom.pl ( [77.236.1.49]) by mx.google.com with ESMTPS id e11sm91512fga.4.2008.07.15.14.35.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Jul 2008 14:35:19 -0700 (PDT) Date: Tue, 15 Jul 2008 23:35:20 +0200 From: Mateusz Guzik To: freebsd-hackers@freebsd.org Message-ID: <20080715213520.GP41336@skucha.home.aster.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="vEao7xgI/oilGqZ+" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: Usage of priv_cred in sys/kern/kern_ktrace.c 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, 15 Jul 2008 21:35:24 -0000 --vEao7xgI/oilGqZ+ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Hi, ktrace has the ability to set flag KTRFAC_ROOT, indicating that the root user started tracing of the given process. It does the following: if (priv_check(td, PRIV_KTRACE) == 0) p->p_traceflag |= KTRFAC_ROOT; I believe this check is wrong and should be changes to something like: if (td->td_ucred->cr_uid == UID_ROOT) p->p_traceflag |= KTRFAC_ROOT; Also, despite the existence of PRIV_KTRACE, there's no way to disable ktrace using the MAC framework, because priv_check is only used in case described above. Am I misintepreting something? If I'm right, what do You think about the attached patch? :) Thanks for Your time, -- Mateusz Guzik --vEao7xgI/oilGqZ+ Content-Type: text/x-diff; charset=iso-8859-2 Content-Disposition: attachment; filename="ktrace.diff" --- sys/kern/kern_priv.c.orig 2008-03-07 16:27:08.000000000 +0100 +++ sys/kern/kern_priv.c 2008-07-15 22:30:56.000000000 +0200 @@ -86,10 +86,18 @@ error = prison_priv_check(cred, priv); if (error) return (error); /* + * Grant some privileges typically available for normal users. + */ + switch (priv) { + case PRIV_KTRACE: + return (0); + } + + /* * Having determined if privilege is restricted by various policies, * now determine if privilege is granted. At this point, any policy * may grant privilege. For now, we allow short-circuit boolean * evaluation, so may not call all policies. Perhaps we should. * --- sys/kern/kern_ktrace.c.orig 2008-02-23 02:01:48.000000000 +0100 +++ sys/kern/kern_ktrace.c 2008-07-15 22:01:03.000000000 +0200 @@ -37,10 +37,11 @@ #include "opt_ktrace.h" #include "opt_mac.h" #include #include +#include #include #include #include #include #include @@ -610,10 +611,13 @@ int nfound, ret = 0; int flags, error = 0, vfslocked; struct nameidata nd; struct ucred *cred; + if (priv_check(td, PRIV_KTRACE)) + if (ops != KTROP_CLEAR && ops != KTROP_CLEARFILE) + return (ENOSYS); /* * Need something to (un)trace. */ if (ops != KTROP_CLEARFILE && facs == 0) return (EINVAL); @@ -821,11 +825,11 @@ if (p->p_tracecred != td->td_ucred) { tracecred = p->p_tracecred; p->p_tracecred = crhold(td->td_ucred); } p->p_traceflag |= facs; - if (priv_check(td, PRIV_KTRACE) == 0) + if (td->td_ucred->cr_uid == UID_ROOT) p->p_traceflag |= KTRFAC_ROOT; } else { /* KTROP_CLEAR */ if (((p->p_traceflag &= ~facs) & KTRFAC_MASK) == 0) { /* no more tracing */ @@ -1027,11 +1031,11 @@ struct proc *targetp; { PROC_LOCK_ASSERT(targetp, MA_OWNED); if (targetp->p_traceflag & KTRFAC_ROOT && - priv_check(td, PRIV_KTRACE)) + td->td_ucred->cr_uid != UID_ROOT) return (0); if (p_candebug(td, targetp) != 0) return (0); --vEao7xgI/oilGqZ+-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 16 07:31:48 2008 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 5C08B1065678 for ; Wed, 16 Jul 2008 07:31:48 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.189]) by mx1.freebsd.org (Postfix) with ESMTP id D778B8FC20 for ; Wed, 16 Jul 2008 07:31:47 +0000 (UTC) (envelope-from tapan.list@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so897130gve.39 for ; Wed, 16 Jul 2008 00:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=jj27U8OLTdinKz+vBg3g9U9AFrBwEEIfFwlm7s0wVfo=; b=ZhYcPfvZxavlKoUZNQg+01IIY+jwKGVKPLvCyLaWOFS3TOZcBqpYMGfEv+BTYm/abO a5xsKBTLWm10CcN317c4rb/Eb0bN0w6LGqYEAyBqA0zAHTUKHcjuaVNQUfyFq8HiEw1x 6AR2isK92sKIlusW42ZHHdljvMcsp3z+wA+BE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=tDxmfxE9PlXeUBsXUVleiyYHacFoLyTAH3p+dm+EQyKmWaNtYdWeRRevRlxToe9Z5m /HB29PXNAO1VMtPXsnySHTqlUiq0fclcrIVxFA5v3r8n0XpZ5T9445pHrxh9V8DrorhP FX+y7+BRHUI5d1WVdxzbs8s4rCt1auNquCOPA= Received: by 10.103.40.5 with SMTP id s5mr577877muj.133.1216193506215; Wed, 16 Jul 2008 00:31:46 -0700 (PDT) Received: by 10.103.227.19 with HTTP; Wed, 16 Jul 2008 00:31:46 -0700 (PDT) Message-ID: <482257ad0807160031k34980a19na9895f38f125d4e0@mail.gmail.com> Date: Wed, 16 Jul 2008 13:01:46 +0530 From: "Tapan Chaudhari" To: freebsd-hackers@freebsd.org In-Reply-To: <200807151538.38285.doconnor@gsoft.com.au> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <200807151302.30415.doconnor@gsoft.com.au> <482257ad0807142138j1f7b7dd8nda7de865a4616fc0@mail.gmail.com> <200807151538.38285.doconnor@gsoft.com.au> 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: Can I change the device of the "/" mount point at boot time. 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, 16 Jul 2008 07:31:48 -0000 On Tue, Jul 15, 2008 at 11:38 AM, Daniel O'Connor wrote: > On Tue, 15 Jul 2008, Tapan Chaudhari wrote: > > Thanks Deniel for the reply. I am aware of the fact you mentioned > > and will keep in mind. > > Well what i am trying to achieve is a simple thing to write an > > interception driver to catch all the i/os going to a particular > > device, do some manipulations on it and than let it through to the > > original device. Well as you mentioned about geom, I have recently > > posted a mail on GEOM mailing list as I could not find geom doing > > interception, the discussion is still on (You can see the mails with > > subject line "Can GEOM be used to intercept the I/o calls to an > > existing mounted device?"). Any sugessuions on interception driver > > will be helpful? > > My first question would be "Why do you want to do that?" I am planning to write a block level snapshot driver. > > > > As an interception driver is not possible, for time being I am going > > towards the redirection concept which will require a reboot and > > changing the devices on the mount points. For redirection driver, I > > dont think I will need geom. I can directly create a new device. > > Rather I think it would be an overhead using geom for a virtual > > device. > > Any thoughts on both the issues? > > I think you'd have a lower overhead and much less hassle writing a GEOM > class and using that. > This sounds good. I will try using GEOM first. But if I could achieve interception, as I described earlier, I will go for that rather than redirection. > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 16 13:40:04 2008 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 4677D106569B for ; Wed, 16 Jul 2008 13:40:04 +0000 (UTC) (envelope-from jan6146@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 2383A8FC1F for ; Wed, 16 Jul 2008 13:40:03 +0000 (UTC) (envelope-from jan6146@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so4537837wfg.7 for ; Wed, 16 Jul 2008 06:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=jau5RpR6xhyCMIZA2Pza+glpMV7EfyZg6h0BW+J+JLU=; b=nEYAkR65/fuV+VOSgwrsRaNf7UwoXKWXsQbSc8IudqmGdz0raUmJZ1msgPEnFQXY5C Lqf1fhJtWzY6JgogUSDCzEAg2sO23mWfioKa2rz2ss25BnA3X2DgMgughcuJOw96ArvG WhBnRaHhrmQbY043+DGLNajIJsJGsSBxIxvcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=P8S0UoL1qfECCsAXoJYcKYypkS1iiFRo462GpNUnXekf5G3qpTlAHjR2nrjRExYP2W 1hJV2eYn7EiBkwCfaoNx3tf5fnYLW1Ogi571gSDtrRBjAc66kPeyf/6+5lLQiSMC1XH/ Tx38FNge6ROjdhLnsze9WWXxI62c4VtqUY80Y= Received: by 10.142.44.11 with SMTP id r11mr10404wfr.285.1216215603544; Wed, 16 Jul 2008 06:40:03 -0700 (PDT) Received: by 10.142.114.20 with HTTP; Wed, 16 Jul 2008 06:40:03 -0700 (PDT) Message-ID: <784966050807160640q31f13160t91702a150bd5b152@mail.gmail.com> Date: Wed, 16 Jul 2008 06:40:03 -0700 From: Rob To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 16 Jul 2008 13:45:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: I'm sorry about being a jerk regarding Sysinstall a week or so ago 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, 16 Jul 2008 13:40:04 -0000 Hi, I've very sorry about being such a jerk about my complaint regarding Sysinstall a week or so ago. It was a week where I was getting 2 hours of sleep per day. Finally my PCP had to intervene and knock me out with big doses of sleeping pills. :) It occasionally happens, then I have half a dozen apologies to make. I promise I will never mention Sysinstall again! I continue to use FreeBSD as I have for the last 10 years and I guess my biggest contribution has been making it known to people and evangelizing it, as it really does blow away Linux in performance. Sincerely, Rob -- ---------------------------------------------------------- http://www.youtube.com/user/whiteflluffyclouds (Ham radio videos) From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 16 14:10:56 2008 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 B53FB106566B for ; Wed, 16 Jul 2008 14:10:56 +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 AABE78FC18 for ; Wed, 16 Jul 2008 14:10:56 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 5CF701CC098; Wed, 16 Jul 2008 07:10:56 -0700 (PDT) Date: Wed, 16 Jul 2008 07:10:56 -0700 From: Jeremy Chadwick To: Rob Message-ID: <20080716141056.GA9656@eos.sc1.parodius.com> References: <784966050807160640q31f13160t91702a150bd5b152@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <784966050807160640q31f13160t91702a150bd5b152@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: I'm sorry about being a jerk regarding Sysinstall a week or so ago 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, 16 Jul 2008 14:10:56 -0000 On Wed, Jul 16, 2008 at 06:40:03AM -0700, Rob wrote: > I've very sorry about being such a jerk about my complaint regarding > Sysinstall a week or so ago. It was a week where I was getting 2 hours of > sleep per day. Finally my PCP had to intervene and knock me out with big > doses of sleeping pills. :) It occasionally happens, then I have half a > dozen apologies to make. I promise I will never mention Sysinstall again! > > I continue to use FreeBSD as I have for the last 10 years and I guess my > biggest contribution has been making it known to people and evangelizing it, > as it really does blow away Linux in performance. For what it's worth, I found the discussion interesting. I appreciate insights of users (not purely SAs), because it gives me a better idea of how people use tools differently than I do, and if they find the same quirks annoying that I do (which seems to be the case). I don't think you should be sorry, but your humbleness is noted. :-) -- | 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 Wed Jul 16 20:04:15 2008 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 4798F106567B for ; Wed, 16 Jul 2008 20:04:15 +0000 (UTC) (envelope-from assaulter0x80@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id 1847C8FC08 for ; Wed, 16 Jul 2008 20:04:15 +0000 (UTC) (envelope-from assaulter0x80@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so7024062rvf.43 for ; Wed, 16 Jul 2008 13:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=P+BuOnWN7wqtZOufr0on/jxISvSoBWkz8prjLzXRf0w=; b=U/rWAMtyh7P3fP+H0qujKsBEXqrFE+br3AyS6Iyug+81WKiBdk56dhbWlIGCMs8NTH wo4JfN6q6+hWgT68wJwULF6feLKSpSEqKoDZdsKNkBDyqNu9L0D3LnLFMv/1RCKkHjmq t5jvqoKI8XfzL5b73z+FdkE1LbVurAVFDv1Jk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=LZB1cR9ie4aRjPpkw/nK9/HBsjzRwEG+fm4w2ERSqCrP1Jie41JYj1lQadDwVaFpjC Mi+MlzULAEqmkqr7J10TrD8A8RzCsfFPQ55mP3JftW1zwfvijecNLvtHSkLBOu36bDwv o4vg4jCe/1ieaiYvVd5yd3jpOWHApi6rKp54Y= Received: by 10.140.203.9 with SMTP id a9mr518564rvg.288.1216236896393; Wed, 16 Jul 2008 12:34:56 -0700 (PDT) Received: by 10.141.179.20 with HTTP; Wed, 16 Jul 2008 12:34:56 -0700 (PDT) Message-ID: Date: Wed, 16 Jul 2008 20:34:56 +0100 From: "Jacky Oh" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 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: SYSINIT 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, 16 Jul 2008 20:04:15 -0000 Hello, I'm insvestigating about KLD's programming, and I cant find in my way wiht the SYSINIT framework. My problem is that im from spanish, and the SYSINIT concept is more complex for my as I understand in english. My question is, anyone can explain to in a less complex form? please, I would be very grateful, thankzz!! I belive that is a kernel trap for link modules and sub-systems, but i don't sure. The best documentation about it is the charpter 5 of "FreeBSD Architechture Handbook" Is the best doc but i need a small help..I'm writing a KLD programming article for a spanish underground magazine. From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 00:13:24 2008 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 116E61065674 for ; Thu, 17 Jul 2008 00:13:24 +0000 (UTC) (envelope-from david@compudoc.de) Received: from s15219232.onlinehome-server.info (s15219232.onlinehome-server.info [87.106.11.95]) by mx1.freebsd.org (Postfix) with ESMTP id 67DE18FC0C for ; Thu, 17 Jul 2008 00:13:22 +0000 (UTC) (envelope-from david@compudoc.de) Received: (qmail 9012 invoked from network); 17 Jul 2008 01:46:41 +0200 Received: from pd9e0ed16.dip0.t-ipconnect.de (HELO hidden) (217.224.237.22) by s15219232.onlinehome-server.info with SMTP; 17 Jul 2008 01:46:41 +0200 From: "David" To: Date: Thu, 17 Jul 2008 01:46:10 +0200 Message-ID: <002d01c8e79e$200078d0$60016a70$@de> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acjnnh+QvQgRHfrhQNKw0RY2sJLQBQ== Content-Language: de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: reading a file in kernelmode 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, 17 Jul 2008 00:13:24 -0000 Hello, I'm developing a FreeBSD kernel module and I'm searching for a good solution to open/read/close a file. My goal is to generate a MD5-Hash of a given file (path). Open-Syscall seems to be improper. Any ideas/solutions/examples? Thanks a lot Greetings, David From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 00:19:34 2008 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 2444C106566B for ; Thu, 17 Jul 2008 00:19:34 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA0C8FC17 for ; Thu, 17 Jul 2008 00:19:32 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so2238091nfh.33 for ; Wed, 16 Jul 2008 17:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition; bh=+gNk3SlSrnrQwhxbNDP/QxYTZK3zcC+ovt3QrwRJ1R8=; b=doznhq7O88juVQQRCjcok71P4SyuaQPlqKBS9lppe0JwZQSxWCGXR9IiY8P5EC8w9V amT74umg2Xw3mWlxfOxRx56azgqwcfIDCuKwq2ZiktVqe3jBs3/97Lae/zqsbvEBC98M Yf054lIs59yyLxpssAOiH2yHqZyT8JYrDPiQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition; b=ioL6dGN3z8CLK2zIjFEzsASVYHFW02jlbLA3dgMT91lhY9HE+higzQ/8FdGOfuUh+2 gG3Ykbtx/s6FqGvM5oqzQ8zy3qgkl1qIPN0hNpxtiHfnzINtwz0Jb3Sz0gpUnGxzuI/q 1ET1rGMYqwb0biPGJan1cn84nPkxPch9Udabs= Received: by 10.210.48.14 with SMTP id v14mr540197ebv.112.1216252259873; Wed, 16 Jul 2008 16:50:59 -0700 (PDT) Received: from logik.internal.network ( [81.86.41.187]) by mx.google.com with ESMTPS id u14sm7378601gvf.6.2008.07.16.16.50.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jul 2008 16:50:59 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 3F4175F36; Wed, 16 Jul 2008 23:49:33 +0000 (UTC) Date: Thu, 17 Jul 2008 00:49:33 +0100 From: xorquewasp@googlemail.com To: freebsd-hackers@freebsd.org Message-ID: <20080716234933.GA85290@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: do not strip, compile with debugging symbols 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, 17 Jul 2008 00:19:34 -0000 Hello. What's the correct way to ensure that ports are built with '-g' and that binaries/libraries created are not stripped? I'm assuming the first one involves setting CFLAGS in /etc/make.conf (admittedly, it's apparently not supported but I'm not building world with this setting anyway). The second, I'm not so sure about. I thought I'd heard of a NO_STRIP setting but if it exists, it's not documented. xw From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 00:38:09 2008 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 5E92A1065673 for ; Thu, 17 Jul 2008 00:38:09 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id F12D88FC14 for ; Thu, 17 Jul 2008 00:38:08 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id E57A928448 for ; Thu, 17 Jul 2008 08:38:07 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 05C27EB6BBE; Thu, 17 Jul 2008 08:38:07 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id Wpzwm4Hjtun4; Thu, 17 Jul 2008 08:38:02 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 67DB9EB68BB; Thu, 17 Jul 2008 08:38:01 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=BVATolQT6Re0oadA4VqwqTZvi0fhMpENwNqpD1XoZK78soUEX/vUnYWoIXSP1DWFN NTskUZOP9jbOTPoSpSFfA== Message-ID: <487E9466.5010701@delphij.net> Date: Wed, 16 Jul 2008 17:37:58 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: xorquewasp@googlemail.com References: <20080716234933.GA85290@logik.internal.network> In-Reply-To: <20080716234933.GA85290@logik.internal.network> X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: do not strip, compile with debugging symbols X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 00:38:09 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 xorquewasp@googlemail.com wrote: | Hello. | | What's the correct way to ensure that ports are built with '-g' | and that binaries/libraries created are not stripped? I'm assuming | the first one involves setting CFLAGS in /etc/make.conf (admittedly, | it's apparently not supported but I'm not building world with this | setting anyway). | | The second, I'm not so sure about. I thought I'd heard of a NO_STRIP | setting but if it exists, it's not documented. I think the setting is spelled as 'WITH_DEBUG=yes' which will add '-g' and remove stripping. However, it still depends on the ported software whether they will strip, most times they will obey the settings (if not then it's a bug that should have fixed anyway). - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkh+lGYACgkQi+vbBBjt66C+BwCeMRzZaME1pV5b/G0PEkfmHFIY ttwAnRqb38Qgju365yitGRGAejfyj/zP =EfoP -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 00:57:16 2008 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 5A56A106566C for ; Thu, 17 Jul 2008 00:57:16 +0000 (UTC) (envelope-from xorquewasp@googlemail.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 D5ED78FC12 for ; Thu, 17 Jul 2008 00:57:15 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so2241188nfh.33 for ; Wed, 16 Jul 2008 17:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=e5el0neFDUbZgeQVU+HIIKQQl+66A7FxdsBf8tHW0zA=; b=fhEwYy9u+rX1NKyM2SJQajJ1BGXaPFHa6S4lC+HpdU+zyw6RqRVKThVhMWpNTtFja+ f6SbJ6JT0LlP7Wznq/87cDgXjl4WelSFTmVGoYJHCtCFa8KbRK9DphmWXKXRUriy4JKE 0GXxEHJZ44sM3HY2Ff0KZ4A7fn7Ob9vrPNjJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=Fn/i1m0g2iKqfz2Pju6paWvUQNSe6CRo+z/X0TVfyqv5rJC7UTI+9Zhg5zOzqEjrKr INiSslX74yJ6ihZJQ+eRyTGh8QMQkRx4ElZs3oLoERdC5ouyPT7x+suGoMpTj33SqXOT DiuuNA4LLnWIsoBhbcP36nuOagYEqtfrvBEsU= Received: by 10.210.115.15 with SMTP id n15mr589846ebc.81.1216256234536; Wed, 16 Jul 2008 17:57:14 -0700 (PDT) Received: from logik.internal.network ( [81.86.41.187]) by mx.google.com with ESMTPS id q9sm7446998gve.5.2008.07.16.17.57.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jul 2008 17:57:13 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id C038F5F36; Thu, 17 Jul 2008 00:55:48 +0000 (UTC) Date: Thu, 17 Jul 2008 01:55:48 +0100 From: xorquewasp@googlemail.com To: d@delphij.net Message-ID: <20080717005548.GA51632@logik.internal.network> References: <20080716234933.GA85290@logik.internal.network> <487E9466.5010701@delphij.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <487E9466.5010701@delphij.net> Cc: freebsd-hackers@freebsd.org Subject: Re: do not strip, compile with debugging symbols 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, 17 Jul 2008 00:57:16 -0000 On 20080716 17:37:58, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > xorquewasp@googlemail.com wrote: > | Hello. > | > | What's the correct way to ensure that ports are built with '-g' > | and that binaries/libraries created are not stripped? I'm assuming > | the first one involves setting CFLAGS in /etc/make.conf (admittedly, > | it's apparently not supported but I'm not building world with this > | setting anyway). > | > | The second, I'm not so sure about. I thought I'd heard of a NO_STRIP > | setting but if it exists, it's not documented. > > I think the setting is spelled as 'WITH_DEBUG=yes' which will add '-g' > and remove stripping. However, it still depends on the ported software > whether they will strip, most times they will obey the settings (if not > then it's a bug that should have fixed anyway). Hi. Yes, that does seem to work. The only problem is that it also disables any optimization flags (I was hoping to compile with -O2 -g as I don't need to do in-depth debugging, just have decent stack traces). I tried setting CFLAGS to '-O2' but WITH_DEBUG seems to override this, too. xw From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 01:06:45 2008 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 A7638106564A for ; Thu, 17 Jul 2008 01:06:45 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 448BC8FC08 for ; Thu, 17 Jul 2008 01:06:45 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 01DB728448 for ; Thu, 17 Jul 2008 09:06:44 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id B93A3EB6BF0; Thu, 17 Jul 2008 09:06:43 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id 4-SrbWGcF6rj; Thu, 17 Jul 2008 09:06:38 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id AEAAEEB0E56; Thu, 17 Jul 2008 09:06:36 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=aYT8c/AaWNSQV2S7ge+8e/byXT7Wgsd3+LuYQJWIgW+bbXXpc605mysgvZnpfX6+C XMvK6vbgcdIDPuhWabDdQ== Message-ID: <487E9B1A.4040809@delphij.net> Date: Wed, 16 Jul 2008 18:06:34 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: xorquewasp@googlemail.com References: <20080716234933.GA85290@logik.internal.network> <487E9466.5010701@delphij.net> <20080717005548.GA51632@logik.internal.network> In-Reply-To: <20080717005548.GA51632@logik.internal.network> X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, d@delphij.net Subject: Re: do not strip, compile with debugging symbols X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 01:06:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 xorquewasp@googlemail.com wrote: | On 20080716 17:37:58, Xin LI wrote: |> -----BEGIN PGP SIGNED MESSAGE----- |> Hash: SHA1 |> |> xorquewasp@googlemail.com wrote: |> | Hello. |> | |> | What's the correct way to ensure that ports are built with '-g' |> | and that binaries/libraries created are not stripped? I'm assuming |> | the first one involves setting CFLAGS in /etc/make.conf (admittedly, |> | it's apparently not supported but I'm not building world with this |> | setting anyway). |> | |> | The second, I'm not so sure about. I thought I'd heard of a NO_STRIP |> | setting but if it exists, it's not documented. |> |> I think the setting is spelled as 'WITH_DEBUG=yes' which will add '-g' |> and remove stripping. However, it still depends on the ported software |> whether they will strip, most times they will obey the settings (if not |> then it's a bug that should have fixed anyway). | | Hi. | | Yes, that does seem to work. The only problem is that it also disables | any optimization flags (I was hoping to compile with -O2 -g as I don't | need to do in-depth debugging, just have decent stack traces). | | I tried setting CFLAGS to '-O2' but WITH_DEBUG seems to override this, | too. Maybe you want DEBUG_FLAGS='-O2 -pipe -fno-strict-aliasing -g'? - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkh+mxoACgkQi+vbBBjt66B/fgCgrenfepYZBy4Hd5zLFCvXv7OF 6J4AnR6O9WqnIMegrp5INv1LdXavYjba =wyq3 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 01:11:40 2008 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 3D6D81065670 for ; Thu, 17 Jul 2008 01:11:40 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id B17868FC26 for ; Thu, 17 Jul 2008 01:11:39 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so2242307nfh.33 for ; Wed, 16 Jul 2008 18:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=6sXt/tQyfs7fu6MmaGw2uoTq4Xak1beuhnY7ezNtcDE=; b=ieMwt6eoqiL20YLhItrIz0w/Cnp7UsPB75PKguqgD521j/PVuyietPKfzNx5tCNpYy u9w3OIwcbyCrWKRuu0up9fWL5myGdxGdvYzfenE2bp5Y7tx8hhkHHKxRFnL64WvC1xr6 54ICarRMJaLsxN7njx8NIg5lF+7E2esxAlvog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=oMLOLcxY++2aFO/ZojYGrRE0y3nO2AXkokz5NZVia4iSVdnFniI43C3BkSbod8rx7r lk6d4QMzV+5YhVj6WBVP8mDh8bz1BovCsJRNxCHGN9R58XCPddRNsp5edpvg+Lr0Vkt6 yBc8t2T4wNaJn6T18qbvpYSD4cvOMdQ/yTpf0= Received: by 10.210.24.7 with SMTP id 7mr574321ebx.178.1216257098348; Wed, 16 Jul 2008 18:11:38 -0700 (PDT) Received: from logik.internal.network ( [81.86.41.187]) by mx.google.com with ESMTPS id u14sm7514424gvf.6.2008.07.16.18.11.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jul 2008 18:11:37 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 1DCBF5F36; Thu, 17 Jul 2008 01:10:13 +0000 (UTC) Date: Thu, 17 Jul 2008 02:10:13 +0100 From: xorquewasp@googlemail.com To: d@delphij.net Message-ID: <20080717011013.GB51632@logik.internal.network> References: <20080716234933.GA85290@logik.internal.network> <487E9466.5010701@delphij.net> <20080717005548.GA51632@logik.internal.network> <487E9B1A.4040809@delphij.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <487E9B1A.4040809@delphij.net> Cc: freebsd-hackers@freebsd.org Subject: Re: do not strip, compile with debugging symbols 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, 17 Jul 2008 01:11:40 -0000 On 20080716 18:06:34, Xin LI wrote: > > Maybe you want DEBUG_FLAGS='-O2 -pipe -fno-strict-aliasing -g'? > Ah! Yes, thank you very much. I had to remove the quotes, of course (for the benefit of anyone else reading this in future). xw From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 03:20:32 2008 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 A2C861065673 for ; Thu, 17 Jul 2008 03:20:32 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 282A58FC1D for ; Thu, 17 Jul 2008 03:20:31 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so2254197nfh.33 for ; Wed, 16 Jul 2008 20:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:mime-version:content-type:content-disposition; bh=oLph4zmoPrFSxcDvjchILmB65oPChAYcqlF3XmSbkp8=; b=vT3PaB9i1xeUBBt6J9sKEhStAb3Ynu+jutaY9eUPMaasGEYT696RXqkigakj2iSbfp cd3DRJm54jhtNU2Vz1ZollyOEuGzTacbVAaaPK+/NNXHgpdFtfuexsheGWlPwVna4nCM P1yCnv5ua6Mk4Beo9jRKkQekubdLARMbz5vsU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition; b=tpqVoFXX0J/KuEPDgvHuBzRf6TIcSAOBifpZ2b79oXcg13ww20rcNQPGM3OSkjn2+D e9TvyEcSyXcqXvVOMIJCdeegeZpj16VFOMgxAWQkOpWsKQVTh2ahMziM6Gi/qBvWPAg9 v0zWxVJFDBz+YFNKgOewmcRCpSkvpCjSFwQkk= Received: by 10.210.58.13 with SMTP id g13mr668115eba.144.1216264830616; Wed, 16 Jul 2008 20:20:30 -0700 (PDT) Received: from logik.internal.network ( [81.86.41.187]) by mx.google.com with ESMTPS id p10sm7693806gvf.7.2008.07.16.20.20.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jul 2008 20:20:29 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id DBBEE5F36; Thu, 17 Jul 2008 03:19:03 +0000 (UTC) Date: Thu, 17 Jul 2008 04:19:03 +0100 From: xorquewasp@googlemail.com To: Chris Palmer Message-ID: <20080717031903.GB98431@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: freebsd-hackers@freebsd.org Subject: Re: A new kind of security needed 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, 17 Jul 2008 03:20:32 -0000 > Is anyone else nervous trusting all his programs to have access to all > his files? Is there already a reasonable solution to this problem? I suppose it depends what you're after and how much work you're willing to put in. I can't define "reasonable" but certainly, with a bit of work somebody could release a package that automates everything I'm about to outline. I have a setup here using four or five jails built with sysutils/ezjail (so they're very lightweight - nullfs). All jails are bound to unrouteable IPs (127.1.0.*). Packets are forwarded using pf binat with a very paranoid ruleset. Jail 1 is 'untrusted' in the sense that it's used for programs that shouldn't have access to the host filesystem or the network. The principle is that of least privilege - if ANY program doesn't need network access, it's run in this jail. One single hole is opened to allow programs to connect to an X server over tcp/ip running on the host. This of course, opens a potential for snooping on keystrokes and other X clients but this is a risk I don't know how to mitigate at the moment. There are apparently patches for allowing an X server to run jailed but I'd rather wait until they're part of an official release (if ever). I don't enable shared memory for jails. Programs are installed into the 'untrusted' jail and invoked with a shell script that calls "sudo jexec env -i ... $prog" with a minimal environment ($XAUTHORITY, $DISPLAY, etc). An example would be: $ mistrust mplayer /tmp/test.avi Access to /dev/dsp* inside the jail is also added with devfs rules. I considered setting up a means of using passwordless access to sudo but abandoned the idea because I wasn't sure about safety. I transfer files in and out of the jail using rsync. Jail 2 is essentially a copy of the above but as a vnode-backed image jail to prevent a rampant program from filling up the filesystem (the image is fixed size). This jail is solely used for Firefox. The only connections allowed from this jail are outbound to the X server on the host and to a single port on Jail 3. Jail 3 is, again, an image jail copy of Jail 1. It runs a non-caching web proxy (privoxy) and is allowed to freely use the network, except for connecting to other jails or the host. The purpose of this jail is to basically be the gateway to the world for Jail 2. Jail 4 is just an area for building binary packages to distribute to other jails. This way, installation of software in each jail is simplified greatly. This jail is allowed to connect to the outside world without restriction (necessary for fetching of packages). I run portmaster to keep built binary packages up to date, jailaudit to determine when packages need updating in other jails and pkg_replace in each jail to actually update. -- To be blunt, the above is essentially band-aid for a lack of strong, granular, per-process access control to network interfaces and a lack of a flexible per-process dynamic view of the filesystem (plan9). It works well enough that I'm happy to use it, though. xw From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 03:30:52 2008 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 D5656106566B for ; Thu, 17 Jul 2008 03:30:52 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by mx1.freebsd.org (Postfix) with ESMTP id 5F3818FC17 for ; Thu, 17 Jul 2008 03:30:52 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ik-out-1112.google.com with SMTP id c30so3186682ika.3 for ; Wed, 16 Jul 2008 20:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to; bh=/9RuDQJ0Jp90fTL1bBnfr+mqcTjBIZvyh47Q/jG6GGw=; b=auaM3VhQIhv1IFJW+m4ctV2YOirk2fq8/uJM4zsKg4xSbxg4k/nLOwbXQcuvvS6jrv +5oyvVD7fatP7dWN0DzK0kHivqMeMeRt6V2Lk2UpdLkkndLXKS+tkDpfWIqWoQ9Qsojv E/UP3A3W0tXyHYQK0XqcwfVdre+4NVSA1SkVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=C3QMvYsU2uhqEfLjb3CvBQkgjnlW7q1+6RuubiMdigC7SclXwdKfeqW1/XeOHNrLD/ OvUcaOK4yA7Jnrd2P38b6hVe7l8apOFoiLIvGFZhqk+cCkYC/Kh+njzAr7WJq2fCsE1k Bvq83mjNmoy7wMSgEOsev+ZD/ndDLLYDLTmlk= Received: by 10.210.81.3 with SMTP id e3mr708155ebb.22.1216265450971; Wed, 16 Jul 2008 20:30:50 -0700 (PDT) Received: from logik.internal.network ( [81.86.41.187]) by mx.google.com with ESMTPS id u14sm7716896gvf.6.2008.07.16.20.30.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jul 2008 20:30:50 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id E599D5F36; Thu, 17 Jul 2008 03:29:24 +0000 (UTC) Date: Thu, 17 Jul 2008 04:29:24 +0100 From: xorquewasp@googlemail.com To: freebsd-hackers@freebsd.org Message-ID: <20080717032924.GA73476@logik.internal.network> References: <487EB013.9090706@noncombatant.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <487EB013.9090706@noncombatant.org> Subject: Re: A new kind of security needed 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, 17 Jul 2008 03:30:52 -0000 I apologise, I'm completely screwing up today. My reply to this thread was obviously supposed to go to security@. From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 04:10:31 2008 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 8CB95106564A for ; Thu, 17 Jul 2008 04:10:31 +0000 (UTC) (envelope-from frtzkatz@yahoo.com) Received: from web63001.mail.re1.yahoo.com (web63001.mail.re1.yahoo.com [69.147.96.212]) by mx1.freebsd.org (Postfix) with SMTP id 2F25E8FC16 for ; Thu, 17 Jul 2008 04:10:30 +0000 (UTC) (envelope-from frtzkatz@yahoo.com) Received: (qmail 85817 invoked by uid 60001); 17 Jul 2008 03:43:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=Ds+j+2MD2dulkcrBqtMicN9dT/wxPkCUEa73Uprv/L5SoSaRRoq4iYH6WlcLTnJS8AglXMlUu4w9XNySPYbphlGZHn0eX2Q9u1Tyuo8UfM1g35CbgDNJ3ArsVAwcTaUdp7+THFBncQQ6l/mfoyzA6hFESyMMgVTypC9/h3UCJoc=; Received: from [71.165.190.131] by web63001.mail.re1.yahoo.com via HTTP; Wed, 16 Jul 2008 20:43:50 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Wed, 16 Jul 2008 20:43:50 -0700 (PDT) From: Fritz Katz To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-ID: <107247.81348.qm@web63001.mail.re1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Free Hardware available: HD-5500 PCHDTV Card. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: frtzkatz@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 04:10:31 -0000 Hello FreeBSD-Hackers, I have 3 cards to be given away, $129 value. There is a catch -- you need t= o volunteer to port the card to FreeBSD and make your modifications publica= lly available. Join and contribute to an open source effort to enable Video= 4Linux drivers to run on BSD here: http://video4bsd.sourceforge.net/ You will need: - Access to NTSC/ATSC broadcast signals. (US, Canada, S.Korea, ..). - A FreeBSD development system - Also, a Linux development system with Video4Linux and full kernel source = for reference might be helpful. The HD-5500 Hi Definition Television PCI Card is an universal PCI 2.2 compl= iant card. The card receives NTSC, ATSC and Cable/QAM Signals and converts = them to digital streams which are transported across the PCI bus. Display a= nd MPEG2 decoding are done on the host computer in software and displayed o= n the computers monitor. The pcHDTV HD-5500 Hi Definition PCI card is based= on the 5th generation LG ATSC receiver chips and Conexant's CX23883 NTSC r= eceiver chip providing excellent HD and SD reception. - Open source drivers and player=20 - Cost effective ATSC/NTSC TV reception card=20 - All-software HDTV decoder=20 - Supports all 18 ATSC compliant digital formats=20 - Supports unencrypted QAM 64 and QAM 256 Cable signals=20 - Supports NTSC Analog Television=20 - Up to 4 cards supported in a single system for recording and=20 =A0=A0=A0 display of multiple programs.=20 - Low profile universal PCI card=20 - Latest LG 5th generation tuner for enhanced reception=20 - Digital Video Recording, Time Shifting and Playback=20 - Accelerated HDTV support with nVidia video cards.=20 - Accelerated IDCT and Motion Compensation with GeForce4 Mx cards=20 - Accelerated Motion Compensation with GeForce4 TI cards=20 - Selectable Weave or One Field de-interlacing for interlaced formats=20 - Command line support for station scanning=20 - Command line support for station signal strength=20 - Command line support for recording http://www.pchdtv.com/ ---------------------------------- =0A=0A=0A From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 06:56:51 2008 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 362131065671 for ; Thu, 17 Jul 2008 06:56:51 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id E95408FC0A for ; Thu, 17 Jul 2008 06:56:50 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 0B5C4520043 for ; Thu, 17 Jul 2008 08:29:13 +0200 (CEST) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id A44E0FD594 for ; Thu, 17 Jul 2008 08:29:12 +0200 (CEST) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-hackers@freebsd.org Date: Thu, 17 Jul 2008 08:29:54 +0200 User-Agent: KMail/1.6.2 References: <002d01c8e79e$200078d0$60016a70$@de> In-Reply-To: <002d01c8e79e$200078d0$60016a70$@de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200807170829.55210.marc.loerner@hob.de> Subject: Re: reading a file in kernelmode 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, 17 Jul 2008 06:56:51 -0000 Hello David! On Thursday 17 July 2008 01:46, David wrote: > Hello, > > > > I'm developing a FreeBSD kernel module and I'm searching for a good > solution to open/read/close a file. > > My goal is to generate a MD5-Hash of a given file (path). > > > > Open-Syscall seems to be improper. > > > > Any ideas/solutions/examples? > Look at file kern/kern_ktrace.c at the use of vn_open in function ktrace(td, uap) and VOP_WRITE in function ktr_writerequest(struct thread *td, struct ktr_request *req) I think reading is done quite analogue to writing in case above. HTH, Marc From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 07:06:28 2008 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 ECF20106566B for ; Thu, 17 Jul 2008 07:06:28 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 770298FC14 for ; Thu, 17 Jul 2008 07:06:27 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so4009879fgb.35 for ; Thu, 17 Jul 2008 00:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=PE2MjYvLgGszagO7dxgbij3ALBS/4SJ3YovBH9eVlvs=; b=PGHKCLsT4Me2yDZbiJ/7b1XtieR3bvgcbMo9Xk56nOpuyIWupDPrw1VqO9BnHZK2I5 veGsiFVj4DnS2yU1MfvDKOcPkaxMgY3alDRvyivY6ZdtOXL9pZnDZjPxKn/ePOQ79m0B cbR2K3Vb2G/4kHJyfnJnin+pwA7UKJt+j3Yo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ExSvKOzRzAaYykqqlDbqS86+6XQT7lEeg3YiPhC3Z8P6QxxcF21tYU0IjaSUs5gre/ h9l4WbusaOq6w8AOHDYd3/F5AeSWSTp/x2AHcvE39nK3WmpPmQwvSwrYxEFSstih2i5c uJ84sxICKN+XECOTUlw4ddpVsv9m5tEJFb0X8= Received: by 10.86.28.2 with SMTP id b2mr3437038fgb.20.1216278386786; Thu, 17 Jul 2008 00:06:26 -0700 (PDT) Received: by 10.86.3.17 with HTTP; Thu, 17 Jul 2008 00:06:26 -0700 (PDT) Message-ID: <1bd550a00807170006m2c5f0be5u24ebe34df74a38ac@mail.gmail.com> Date: Thu, 17 Jul 2008 09:06:26 +0200 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: "=?ISO-8859-1?Q?Marc_L=F6rner?=" In-Reply-To: <200807170829.55210.marc.loerner@hob.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <002d01c8e79e$200078d0$60016a70$@de> <200807170829.55210.marc.loerner@hob.de> Cc: freebsd-hackers@freebsd.org Subject: Re: reading a file in kernelmode 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, 17 Jul 2008 07:06:29 -0000 On 7/17/08, Marc L=F6rner wrote: > Hello David! > > On Thursday 17 July 2008 01:46, David wrote: > > Hello, > > > > > > > > I'm developing a FreeBSD kernel module and I'm searching for a good > > solution to open/read/close a file. > > > > My goal is to generate a MD5-Hash of a given file (path). > > > > > > > > Open-Syscall seems to be improper. > > > > > > > > Any ideas/solutions/examples? > > > > Look at file kern/kern_ktrace.c at the use of vn_open in function > ktrace(td, uap) and VOP_WRITE in function > ktr_writerequest(struct thread *td, struct ktr_request *req) > > I think reading is done quite analogue to writing in case above. Hi, I'm just curious, is it proper to read a file from kernel space? Is it something the kernel is supposed to do? Thanks in advance. > > HTH, > Marc > _______________________________________________ > 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 Jul 17 08:03:07 2008 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 C11E71065683 for ; Thu, 17 Jul 2008 08:03:07 +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 7911F8FC15 for ; Thu, 17 Jul 2008 08:03:07 +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 1KJOSA-000A05-0p for freebsd-hackers@freebsd.org; Thu, 17 Jul 2008 11:03:06 +0300 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: Thu, 17 Jul 2008 11:03:05 +0300 From: Danny Braniss Message-ID: Subject: UPDATE & backdating 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, 17 Jul 2008 08:03:07 -0000 I don't know if this is the usual case, but I was caught by surprice :-) --- /r+d/7.0/src/UPDATING 2008-02-28 17:28:19.000000000 +0200 +++ /r+d/releng_7/src/UPDATING 2008-07-14 09:07:13.000000000 +0300 @@ -285,6 +285,20 @@ This does not affect those who are using "/dev/dsp". 20061122: + geom(4)'s gmirror(8) class metadata structure has been + rev'd from v3 to v4. If you update across this point and + your metadata is converted for you, you will not be easily + able to downgrade since the /boot/kernel.old/geom_mirror.ko + kernel module will be unable to read the v4 metadata. You + can resolve this by doing from the loader(8) prompt: + + set vfs.root.mountfrom="ufs:/dev/XXX" + + where XXX is the root slice of one of the disks that composed + the mirror (i.e.: /dev/ad0s1a). You can then rebuild + the array the same way you built it originally. + +20061122: The following binaries have been disconnected from the build: mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs, mount_linprocfs, and mount_std. The functionality of these programs has been @@ -925,4 +939,4 @@ Contact Warner Losh if you have any questions about your use of this document. -$FreeBSD: src/UPDATING,v 1.507.2.5 2008/02/24 05:16:55 kensmith Exp $ +$FreeBSD: src/UPDATING,v 1.507.2.7 2008/07/13 18:11:50 remko Exp $ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 09:10:01 2008 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 451441065676 for ; Thu, 17 Jul 2008 09:10:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id CB6F08FC13 for ; Thu, 17 Jul 2008 09:10:00 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=k3p6oJmvu9X0K6jyJCoA:9 a=hh3F76V-iU_lNBvvaP8A:7 a=UNhsl1084hu-gAv3dABm9_A2PZcA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.4b) with ESMTPA id 1015852537; Thu, 17 Jul 2008 10:09:57 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Thu, 17 Jul 2008 10:11:34 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807171011.35988.hselasky@c2i.net> Cc: Jacky Oh Subject: Re: SYSINIT 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, 17 Jul 2008 09:10:01 -0000 On Wednesday 16 July 2008, Jacky Oh wrote: > Hello, > > I'm insvestigating about KLD's programming, and I cant find in my way wiht > the SYSINIT framework. My problem is that im from spanish, and the SYSINIT > concept is more complex for my as I understand in english. My question is, > anyone can explain to in a less complex form? please, I would be very > grateful, thankzz!! > > I belive that is a kernel trap for link modules and sub-systems, but i > don't sure. The best documentation about it is the charpter 5 of "FreeBSD > Architechture Handbook" Is the best doc but i need a small help..I'm > writing a KLD programming article for a spanish underground magazine. > _______________________________________________ > 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" Hi, Simply put. The sysinit macro expands to a static structure using the "section" attribute which means the data ends up in a separate section after linking. Then the data in the sysinit section is scanned, sorted and executed at boot time or when you load a module. Sysuninit works in a similar way. --HPS From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 09:20:30 2008 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 46E3F1065677 for ; Thu, 17 Jul 2008 09:20:30 +0000 (UTC) (envelope-from pranavpeshwe@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by mx1.freebsd.org (Postfix) with ESMTP id EC7CF8FC23 for ; Thu, 17 Jul 2008 09:20:29 +0000 (UTC) (envelope-from pranavpeshwe@gmail.com) Received: by wx-out-0506.google.com with SMTP id h27so2408212wxd.7 for ; Thu, 17 Jul 2008 02:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=GN7JSZGMJ2MsYMtG2PR/zUpxpzK1ulEVzma+YsEofWU=; b=nAYItQRRhXZBQLijxCCf161ZsFbDAwOzXuvLEe3G4O54ywKV8Id/qIThvPqhQDPlUI 1m17CMfCeyE9/9FpoZItTrkLns8NpCvSDaTb4J7GLbckDzGZi3Aai8M3XbHHYV3beZE3 h8U+s0PEGOE3CZZ2MdLL6/7X1QV85yKY6EmIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=nFB+at2I3Orn8dM9UVkdfyzDcp4H9WpJP0Lr4xBFeAiskpUouYqL1kyDx2FPC+ZPIV XrnQXvFFoBaB0SQkvTIMSzhzD2S10KnUw5OLM4pN5ZM5VbjEP8uk1zlF2RdGNWOqctFP bUEEzsSlXM4KtjcXPz8lIRLDnDQcJBH6VnH2c= Received: by 10.70.41.2 with SMTP id o2mr1363133wxo.0.1216284758870; Thu, 17 Jul 2008 01:52:38 -0700 (PDT) Received: by 10.70.23.20 with HTTP; Thu, 17 Jul 2008 01:52:38 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 14:22:38 +0530 From: "Pranav Peshwe" To: "Tapan Chaudhari" In-Reply-To: <482257ad0807160031k34980a19na9895f38f125d4e0@mail.gmail.com> MIME-Version: 1.0 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <200807151302.30415.doconnor@gsoft.com.au> <482257ad0807142138j1f7b7dd8nda7de865a4616fc0@mail.gmail.com> <200807151538.38285.doconnor@gsoft.com.au> <482257ad0807160031k34980a19na9895f38f125d4e0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 17 Jul 2008 09:20:30 -0000 On Wed, Jul 16, 2008 at 1:01 PM, Tapan Chaudhari wrote: > > I am planning to write a block level snapshot driver. > Hi Tapan, Did you check whether any other BSDs have done anything similar ? I'm not sure whether it would be directly helpful but, you might get some hints from their implementation. Just a thought... Best regards, Pranav From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 10:12:44 2008 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 849D3106566B; Thu, 17 Jul 2008 10:12:44 +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 0F98C8FC17; Thu, 17 Jul 2008 10:12:43 +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 1KJQTa-000Bek-E8; Thu, 17 Jul 2008 13:12:42 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Jeremy Chadwick In-reply-to: <20080703153329.GA58662@eos.sc1.parodius.com> References: <20080703153329.GA58662@eos.sc1.parodius.com> Comments: In-reply-to Jeremy Chadwick message dated "Thu, 03 Jul 2008 08:33:29 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 17 Jul 2008 13:12:42 +0300 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: Re: serial console speed 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, 17 Jul 2008 10:12:44 -0000 > On Thu, Jul 03, 2008 at 05:34:27PM +0300, Danny Braniss wrote: > > > On Thu, Jul 03, 2008 at 03:21:14PM +0300, Danny Braniss wrote: > > > > it seems that there is no way to change the speed/baudrate of the serial > > > > console, for example, by turning it off in /etc/ttys, and running > > > > tip(1) with different speeds has no effect, it always > > > > stays at the kernel configured speed. > > > > > > > > is this by design? > > > > > > Yes. > > > > why? > > > > to add some more 'issues', setting > > hint.sio.1.flags="0x10" > > does the redirection correctly but does not fix the speed to CONSPEED, and > > stays at 9600. (BTW, this used to work). > > The 9600 limitation is out-of-the-box. Despite what may seem logical, > in my experiences the console serial port speed on FreeBSD is "limited" > to a maximum of 9600bps unless you either use the -S flag in > /boot.config (e.g. -S115200), or loader.conf variables to adjust the > speed. > > Others will have to answer your remaining questions. > > > setting the serial speed means, > > compiling correctly btx, pxeboot, kernel, ilo. > > now it seems that any info in /boot.config or /boot/loader.conf is also > > ignored. > > This part is flat out incorrect. You no longer have to rebuild > anything, you can simply place -S115200 in /boot.config and it will > work. I know, because every single one of our production servers > (RELENG_6 through RELENG_7) use this. We **do not** rebuild boot > blocks. ok, need some explanation/rational: when booting via pxeboot, initialy, the BMX & libi386 have the serial port/speed hardcoded (for good reason), and as soon as posible it gets 'corrected' via the configuration files. things get complicated when the bios is uncooperative - e.g: Sunfire X2200/ilo. then, as if by magic, a bios upgrade solved most of the problems! - ofcource, the bios upgrade was triggered by another problem - why is PowerNow! not recognized :-( Oh, btw, you can change the serial speed of the console: sysctl machdep.conspeed=115200 which was the initial question :-). > > Please read this document for my findings. > > http://jdc.parodius.com/freebsd/pxeboot_serial_install.html > > -- > | 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 Thu Jul 17 14:25:17 2008 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 35D8C1065680; Thu, 17 Jul 2008 14:25:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id AC5178FC27; Thu, 17 Jul 2008 14:25:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m6HEOvFW032292; Thu, 17 Jul 2008 10:25:09 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Thu, 17 Jul 2008 09:19:49 -0400 User-Agent: KMail/1.9.7 References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <486F8C57.9050908@wubethiopia.com> <20080705161614.O19209@fledge.watson.org> In-Reply-To: <20080705161614.O19209@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807170919.49756.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 17 Jul 2008 10:25:10 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7736/Thu Jul 17 09:11:09 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Mike Makonnen , Lothar Braun , Robert Watson , freebsd-hackers@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years 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, 17 Jul 2008 14:25:17 -0000 On Saturday 05 July 2008 11:22:09 am Robert Watson wrote: > On Sat, 5 Jul 2008, Mike Makonnen wrote: > > > The installer can already install a basic FreeBSD system (including the > > ports collection) from CD, UFS, or DOS partition. I'm currently working on > > getting FTP/HTTP/NFS installation to work. Next on my list after that is > > setting Date and Time Zone. At that stage the installer will be more or less > > feature-complete, and I can start code cleanup, getting it to work on > > additional architectures, etc. I had initially intended to include package > > installation as one of the criteria for feature-completeness, but after > > reading through this thread I've decided not to use sysinstall's package > > installation code and instead write one from scratch once I'm happy with the > > rest of the installer. > > Sounds pretty much in line with what I was looking for. However, I think I > would like to see it be a bit more complete than sysinstall in the area of > geom partition labeling (concat/strip/raid/encryption), and perhaps also ZFS > support. I realize that adds complexity a fair amount, but one of the biggest > areas of feature lack in sysinstall today is that you are basically stuck with > the original BSD partition structure and UFS, whereas we expect increasing > numbers of users to deploy ZFS. We don't have boot support currently, but > being able to set up /data as a ZFS file system would be great. Today, people > have to do an initial install on, say, a small boot partition and then > relabel/deal with the rest of the disk, boot a live CD, or worse, discover > they have to repartition, which really fails to expose some of the excellent > ease-of-use, auto-configuration, etc, features that we otherwise have in this > area. I think the best route to that is to have a separate utility for managing disk partitioning. The installer can then use that utility, and sysadmins can also use it later after the system is installed. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 14:25:35 2008 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 49B7B1065683 for ; Thu, 17 Jul 2008 14:25:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C3E258FC1B for ; Thu, 17 Jul 2008 14:25:34 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m6HEOvFZ032292; Thu, 17 Jul 2008 10:25:28 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 17 Jul 2008 10:01:14 -0400 User-Agent: KMail/1.9.7 References: <20080710124658.GA10730@rebelion.Sisis.de> <200807101652.32039.fbsd.hackers@rachie.is-a-geek.net> In-Reply-To: <200807101652.32039.fbsd.hackers@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807171001.14552.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 17 Jul 2008 10:25:28 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7736/Thu Jul 17 09:11:09 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Mel , Matthias Apitz Subject: Re: error 1 lba 752976 while booting from USB key to install 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, 17 Jul 2008 14:25:35 -0000 On Thursday 10 July 2008 10:52:31 am Mel wrote: > On Thursday 10 July 2008 14:46:58 Matthias Apitz wrote: > > Hello, > > > > I've some server (a 2 years old HP NAT 1000s storage system) and > > I want to drop the installed W2k system and re-install it with > > FreeBSD 7.0R and later use it as a central backup-system with > > Bacula. > > > > The problem is that this server has no CD or DVD device, but can > > (theoretically) boot from external USB CD/DVD (which I don't have > > either); > > > > so I cam up with the idea to boot from that USB key I have used to > > install 7.0-REL on that eeePC, i.e. the USB key works fine in any > > laptop; on the HP NAT 1000s storage system it says: > > > > FreBSD/i386 > > Default: 0:ad(0,a)/boot/kernel/kernel > > boot: error 1 lba 752976 > > No /boot/kernel/kernel > > Let me ask a stupid question: why is it trying to access an ATA/ATAPI disk, > not an USB (scsi da(4)) disk. Can you boot via: > 0:da(0,a)/boot/kernel/kernel > > Or variants of those, see boot(8) for the syntax explanation. That stuff is all obsolete. For the boot code, all the disks look the same, they are BIOS devices 0x80, 0x81, etc. We just use 0x80 + unit for 'ad' and 'da' and 0 + unit for 'fd'. Before /boot/loader, the 'ad' vs 'da' used to matter as we used that to figure out which driver (and thus which cdev major) to use for / and passed that to the kernel. However, /boot/loader now reads /etc/fstab from / and passes the source of '/' from that as a string to the kernel, so none of the cdev major stuff is needed anymore (and it doesn't work either). The loader handles this better where disks are all called 'disk0', 'disk1', etc. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 14:25:40 2008 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 E16EE1065676 for ; Thu, 17 Jul 2008 14:25:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 89F7C8FC1C for ; Thu, 17 Jul 2008 14:25:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m6HEOvFa032292; Thu, 17 Jul 2008 10:25:34 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 17 Jul 2008 10:05:52 -0400 User-Agent: KMail/1.9.7 References: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> In-Reply-To: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807171005.53148.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 17 Jul 2008 10:25:34 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7736/Thu Jul 17 09:11:09 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Michael B Allen Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 17 Jul 2008 14:25:41 -0000 On Saturday 12 July 2008 07:11:26 pm Michael B Allen wrote: > Hi, > > Below is a semtimedop(2) implementation that I'm using for FreeBSD. I > was hoping someone could look it over and tell me if they think the > implementation is sound. > > The code seems to work ok but when stressing the FreeBSD build of my app > I have managed to provoke errors related to concurrency (usually when a > SIGALRM goes off). The Linux build works flawlessesly so I'm wondering > about this one critical function that is different. > > Do you think it would make any difference if I used > ITIMER_VIRTUAL / SIGVTALRM instead of ITIMER_REAL / SIGALRM? > > Or perhaps I should be using a different implementation entirely? What specific races are you seeing? The timer is firing too early, too late? -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 15:38:54 2008 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 BE5BA1065671 for ; Thu, 17 Jul 2008 15:38:54 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av7-2-sn3.vrr.skanova.net (av7-2-sn3.vrr.skanova.net [81.228.9.182]) by mx1.freebsd.org (Postfix) with ESMTP id 846818FC14 for ; Thu, 17 Jul 2008 15:38:54 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502) id AF1E637E9D; Thu, 17 Jul 2008 16:53:25 +0200 (CEST) Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 75B4637E7D; Thu, 17 Jul 2008 16:53:25 +0200 (CEST) Received: from [192.168.1.31] (90-230-141-139-no41.tbcn.telia.com [90.230.141.139]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 73AFF37E46; Thu, 17 Jul 2008 17:06:25 +0200 (CEST) Message-ID: <487F6067.5000908@passagen.se> Date: Thu, 17 Jul 2008 17:08:23 +0200 From: Roger Olofsson User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Karl Fischer References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD Best Practice 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, 17 Jul 2008 15:38:54 -0000 Karl Fischer skrev: > Hello > I'm a SysAdmin, I'm wondering whether this is the correct list to ask? > I'm looking for FreeBSD Best Practice information, (or a FreeBSD > Mailing List, I can join) > I want to make sure that all my servers comply to at least some widely > accepted standards, > so in the event of me getting hit by a bus or being abducted by aliens, > another person can take over from me. > > I have done a search through the mailing lists and this seems like the > list to ask. > > Thanks > Karl > Any article/book by Dru Lavigne is always a pleasure to read. Just Google for Dru. /R From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 16:29:02 2008 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 95D62106564A for ; Thu, 17 Jul 2008 16:29:02 +0000 (UTC) (envelope-from kmf@fischer.org.za) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 3D5968FC12 for ; Thu, 17 Jul 2008 16:29:02 +0000 (UTC) (envelope-from kmf@fischer.org.za) Received: by ug-out-1314.google.com with SMTP id q2so816223uge.37 for ; Thu, 17 Jul 2008 09:29:01 -0700 (PDT) Received: by 10.66.244.11 with SMTP id r11mr4050211ugh.47.1216312140865; Thu, 17 Jul 2008 09:29:00 -0700 (PDT) Received: by 10.66.243.4 with HTTP; Thu, 17 Jul 2008 09:29:00 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 18:29:00 +0200 From: "Karl Fischer" To: "Roger Olofsson" In-Reply-To: <487F6067.5000908@passagen.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <487F6067.5000908@passagen.se> Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD Best Practice 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, 17 Jul 2008 16:29:02 -0000 On Thu, Jul 17, 2008 at 5:08 PM, Roger Olofsson wrote: > Karl Fischer skrev: >> >> Hello >> I'm a SysAdmin, I'm wondering whether this is the correct list to ask? >> I'm looking for FreeBSD Best Practice information, (or a FreeBSD >> Mailing List, I can join) >> I want to make sure that all my servers comply to at least some widely >> accepted standards, >> so in the event of me getting hit by a bus or being abducted by aliens, >> another person can take over from me. >> >> I have done a search through the mailing lists and this seems like the >> list to ask. >> >> Thanks >> Karl >> > > Any article/book by Dru Lavigne is always a pleasure to read. Just Google > for Dru. > > /R > Dru rocks. :D I find her BSD Hacks quite useful. -- -------------------------------------------------- Karl Fischer |_|0|_| "Absence of evidence |_|_|0| is not evidence of absence" |0|0|0| Carl Sagan - http://fischer.org.za - -------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 16:30:19 2008 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 ED0BC1065682; Thu, 17 Jul 2008 16:30:19 +0000 (UTC) (envelope-from randy@psg.com) Received: from rip.psg.com (rip.psg.com [IPv6:2001:418:1::39]) by mx1.freebsd.org (Postfix) with ESMTP id C83D28FC28; Thu, 17 Jul 2008 16:30:19 +0000 (UTC) (envelope-from randy@psg.com) Received: from ip192.186.dsl-acs2.seawa0.iinet.com ([209.20.186.192] helo=rmac.psg.com) by rip.psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KJWN0-000Pyk-5T; Thu, 17 Jul 2008 16:30:18 +0000 Message-ID: <487F7399.6040805@psg.com> Date: Thu, 17 Jul 2008 09:30:17 -0700 From: Randy Bush User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: John Baldwin References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <486F8C57.9050908@wubethiopia.com> <20080705161614.O19209@fledge.watson.org> <200807170919.49756.jhb@freebsd.org> In-Reply-To: <200807170919.49756.jhb@freebsd.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 17 Jul 2008 16:37:15 +0000 Cc: Mike Makonnen , freebsd-current@freebsd.org, Robert Watson , Lothar Braun , freebsd-hackers@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years 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, 17 Jul 2008 16:30:20 -0000 > I think the best route to that is to have a separate utility for managing disk > partitioning. The installer can then use that utility, and sysadmins can > also use it later after the system is installed. i often invoke sysinstall on a running system to slice/partition/etc a new drive randy From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 17:42:34 2008 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 B75901065673 for ; Thu, 17 Jul 2008 17:42:34 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 4B8FC8FC19 for ; Thu, 17 Jul 2008 17:42:33 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so9144nfh.33 for ; Thu, 17 Jul 2008 10:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=nPWUtyA0sBGfAbkIGJTjmlSuL18lRr5FmhoumJnpQgk=; b=kL4JZUxxRRBiXa7hEcxdnQTyIRxkzYwb9ctLJpi8oO6dR2TvDrPxjCOatburdiC9P8 Rdprk1NkYNlmVB3eRutWXI9hzD2bhEZr7CcaRZn9HTdfmPFB63a5LL3KUveIueU0nHgN bT0Oyr9niWqo0T3yJKiyW5OoOJ02j4UKYnqiw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=t1/wahJMtu6t6hJHvhnBxNK7urQB1vdpbh2DIAHF0A0XU31GExMGseOaZX36YkGf1c 3O3D/PCDI5Yj8XHJnQZYuPPPi0UKJd82X7zqN61y9AKHsMRM28ydiWPIC1nH9z2pS0A9 Qjw/XRYO4Xcy7/NokiVplQ+ah8wLDuIT67AmY= Received: by 10.210.25.20 with SMTP id 20mr1366686eby.46.1216316551894; Thu, 17 Jul 2008 10:42:31 -0700 (PDT) Received: by 10.210.139.1 with HTTP; Thu, 17 Jul 2008 10:42:31 -0700 (PDT) Message-ID: <78c6bd860807171042o54627c78nfcc0c19717b75f1e@mail.gmail.com> Date: Thu, 17 Jul 2008 13:42:31 -0400 From: "Michael B Allen" To: "John Baldwin" In-Reply-To: <200807171005.53148.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> <200807171005.53148.jhb@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 17 Jul 2008 17:42:34 -0000 On Thu, Jul 17, 2008 at 10:05 AM, John Baldwin wrote: > On Saturday 12 July 2008 07:11:26 pm Michael B Allen wrote: >> Hi, >> >> Below is a semtimedop(2) implementation that I'm using for FreeBSD. I >> was hoping someone could look it over and tell me if they think the >> implementation is sound. >> >> The code seems to work ok but when stressing the FreeBSD build of my app >> I have managed to provoke errors related to concurrency (usually when a >> SIGALRM goes off). The Linux build works flawlessesly so I'm wondering >> about this one critical function that is different. >> >> Do you think it would make any difference if I used >> ITIMER_VIRTUAL / SIGVTALRM instead of ITIMER_REAL / SIGALRM? >> >> Or perhaps I should be using a different implementation entirely? > > What specific races are you seeing? The timer is firing too early, too late? It's very difficult to tell. I can only trigger the issue very occasionally running my torture test such that any diagnostic logging changes the results. And at this point I'm not sure my semtimedop implementation is responsible. I have not seen the issue since fixing the race pointed out by Mikko (although I have not tried very hard to provoke it). For now, I'm satisfied since I do not think the issue will be triggered in the wild. I hate to use signals for anything but as much as I try, there's just no other way to implement semtimedop within a single largely self-contained function. In the future I will likely use another process in the application that uses select(2) as an "event service" to post on semaphores after a certain time period. Unfortunately, right now, that service ultimately calls semtimedop so I'll save it for a rainy day. Although if you implemented semtimedop(2) into the FreeBSD API that would work too :-) Thanks, Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 18:56:31 2008 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 D37E7106564A; Thu, 17 Jul 2008 18:56:31 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) by mx1.freebsd.org (Postfix) with ESMTP id 681AB8FC12; Thu, 17 Jul 2008 18:56:31 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from [195.4.92.13] (helo=3.mx.freenet.de) by mout2.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #19) id 1KJYeU-0002o0-0k; Thu, 17 Jul 2008 20:56:30 +0200 Received: from m9017.m.pppool.de ([89.49.144.23]:55902 helo=peedub.jennejohn.org) by 3.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #12) id 1KJYeT-0002Te-NU; Thu, 17 Jul 2008 20:56:29 +0200 Date: Thu, 17 Jul 2008 20:56:28 +0200 From: Gary Jennejohn To: freebsd-current@freebsd.org Message-ID: <20080717205628.237ce4a4@peedub.jennejohn.org> In-Reply-To: <487F7399.6040805@psg.com> References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <486F8C57.9050908@wubethiopia.com> <20080705161614.O19209@fledge.watson.org> <200807170919.49756.jhb@freebsd.org> <487F7399.6040805@psg.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.10.14; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 18:56:31 -0000 On Thu, 17 Jul 2008 09:30:17 -0700 Randy Bush wrote: > > I think the best route to that is to have a separate utility for managing disk > > partitioning. The installer can then use that utility, and sysadmins can > > also use it later after the system is installed. > > i often invoke sysinstall on a running system to slice/partition/etc a > new drive > [radically trimmed Cc list] sade(8) is supposed to take the place of sysinstall for disk operations. --- Gary Jennejohn From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 19:33:22 2008 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 93E951065671 for ; Thu, 17 Jul 2008 19:33:22 +0000 (UTC) (envelope-from ravi.murty@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx1.freebsd.org (Postfix) with ESMTP id 564E08FC18 for ; Thu, 17 Jul 2008 19:33:22 +0000 (UTC) (envelope-from ravi.murty@intel.com) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 17 Jul 2008 12:30:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.31,204,1215414000"; d="scan'208,217";a="362499492" Received: from orsmsx335.amr.corp.intel.com (HELO orsmsx335.jf.intel.com) ([10.22.226.40]) by fmsmga002.fm.intel.com with ESMTP; 17 Jul 2008 12:30:26 -0700 Received: from orsmsx416.amr.corp.intel.com ([10.22.226.46]) by orsmsx335.jf.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 17 Jul 2008 12:33:09 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 17 Jul 2008 12:33:08 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: atomic_load_acq_int in ipi_nmi_handler() Thread-Index: AcjoQ/C/LoATJ5bJRnSugKbOzirB4w== From: "Murty, Ravi" To: X-OriginalArrivalTime: 17 Jul 2008 19:33:09.0233 (UTC) FILETIME=[F181D610:01C8E843] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: atomic_load_acq_int in ipi_nmi_handler() 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, 17 Jul 2008 19:33:22 -0000 Hello All, =20 Just a quick question: Why does this function (ipi_nmi_handler) execute a atomic_load_acq_int(&ipi_nmi_pending). Following this it calls atomic_clear_int to clear itself out of this mask. I can't think of why the CPU would reorder these instructions knowing there is a dependency here. =20 Also, since FreeBSD has masks (like ipi_nmi_pending), has there been any work on extending this beyond 64 CPUs? =20 Thanks Ravi =20 From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 19:56:31 2008 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 E6CEF106567B for ; Thu, 17 Jul 2008 19:56:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outx.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id 959358FC28 for ; Thu, 17 Jul 2008 19:56:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id B699D2472; Thu, 17 Jul 2008 12:56:31 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id C5CE22D6032; Thu, 17 Jul 2008 12:56:30 -0700 (PDT) Message-ID: <487FA33B.4010404@elischer.org> Date: Thu, 17 Jul 2008 12:53:31 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: "Murty, Ravi" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: atomic_load_acq_int in ipi_nmi_handler() 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, 17 Jul 2008 19:56:32 -0000 Murty, Ravi wrote: > Hello All, > > > > Just a quick question: Why does this function (ipi_nmi_handler) execute > a atomic_load_acq_int(&ipi_nmi_pending). Following this it calls > atomic_clear_int to clear itself out of this mask. I can't think of why > the CPU would reorder these instructions knowing there is a dependency > here. > > > > Also, since FreeBSD has masks (like ipi_nmi_pending), has there been any > work on extending this beyond 64 CPUs? Only in discussion. A quick survey of other OS's and their answers is probably in order. There are cpu bitmasks in use.. We are going to have to look at the whole NUMA thing soon too. (BTW it's only 32 on 32 bit machines I believe) > > > > Thanks > > Ravi > > > > _______________________________________________ > 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 Jul 18 00:18:03 2008 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 B0F1B106566C; Fri, 18 Jul 2008 00:18:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3990A8FC1F; Fri, 18 Jul 2008 00:18:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [IPv6:2001:470:1f11:75:2a0:d2ff:fe18:8b38]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m6I0HuYR038965; Thu, 17 Jul 2008 20:17:56 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Randy Bush Date: Thu, 17 Jul 2008 20:13:18 -0400 User-Agent: KMail/1.9.7 References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <200807170919.49756.jhb@freebsd.org> <487F7399.6040805@psg.com> In-Reply-To: <487F7399.6040805@psg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807172013.18535.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:2001:470:1f11:75::1]); Thu, 17 Jul 2008 20:17:57 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7742/Thu Jul 17 19:22:26 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Mike Makonnen , freebsd-current@freebsd.org, Robert Watson , Lothar Braun , freebsd-hackers@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years 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, 18 Jul 2008 00:18:03 -0000 On Thursday 17 July 2008 12:30:17 pm Randy Bush wrote: > > I think the best route to that is to have a separate utility for managing > > disk partitioning. The installer can then use that utility, and > > sysadmins can also use it later after the system is installed. > > i often invoke sysinstall on a running system to slice/partition/etc a > new drive Yes, I have found it nicer than raw bsdlabel in the past, but I think it should be a standalone tool (diskpart or some such) that manages that and that the installer should use that tool rather than the installer having a disk partitioning sub-personality. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 00:18:10 2008 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 0E977106567A for ; Fri, 18 Jul 2008 00:18:10 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8358FC14 for ; Fri, 18 Jul 2008 00:18:09 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [IPv6:2001:470:1f11:75:2a0:d2ff:fe18:8b38]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m6I0HuYS038965; Thu, 17 Jul 2008 20:18:03 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Michael B Allen" Date: Thu, 17 Jul 2008 20:15:11 -0400 User-Agent: KMail/1.9.7 References: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> <200807171005.53148.jhb@freebsd.org> <78c6bd860807171042o54627c78nfcc0c19717b75f1e@mail.gmail.com> In-Reply-To: <78c6bd860807171042o54627c78nfcc0c19717b75f1e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807172015.11460.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:2001:470:1f11:75::1]); Thu, 17 Jul 2008 20:18:03 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7742/Thu Jul 17 19:22:26 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 18 Jul 2008 00:18:10 -0000 On Thursday 17 July 2008 01:42:31 pm Michael B Allen wrote: > On Thu, Jul 17, 2008 at 10:05 AM, John Baldwin wrote: > > On Saturday 12 July 2008 07:11:26 pm Michael B Allen wrote: > >> Hi, > >> > >> Below is a semtimedop(2) implementation that I'm using for FreeBSD. I > >> was hoping someone could look it over and tell me if they think the > >> implementation is sound. > >> > >> The code seems to work ok but when stressing the FreeBSD build of my app > >> I have managed to provoke errors related to concurrency (usually when a > >> SIGALRM goes off). The Linux build works flawlessesly so I'm wondering > >> about this one critical function that is different. > >> > >> Do you think it would make any difference if I used > >> ITIMER_VIRTUAL / SIGVTALRM instead of ITIMER_REAL / SIGALRM? > >> > >> Or perhaps I should be using a different implementation entirely? > > > > What specific races are you seeing? The timer is firing too early, too > > late? > > It's very difficult to tell. I can only trigger the issue very > occasionally running my torture test such that any diagnostic logging > changes the results. > > And at this point I'm not sure my semtimedop implementation is > responsible. I have not seen the issue since fixing the race pointed > out by Mikko (although I have not tried very hard to provoke it). > > For now, I'm satisfied since I do not think the issue will be > triggered in the wild. I hate to use signals for anything but as much > as I try, there's just no other way to implement semtimedop within a > single largely self-contained function. In the future I will likely > use another process in the application that uses select(2) as an > "event service" to post on semaphores after a certain time period. > Unfortunately, right now, that service ultimately calls semtimedop so > I'll save it for a rainy day. > > Although if you implemented semtimedop(2) into the FreeBSD API that > would work too :-) POSIX semaphores (sem_open(3), sem_create(3), etc.) do have a sem_timedwait(3). However, POSIX semaphores have several bugs in 6.x and 7.x (they should work a lot better in 8). If you want I can give you a patch for 6.x or 7.x that backports the 8.x POSIX semaphores. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 01:25:52 2008 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 EA951106564A for ; Fri, 18 Jul 2008 01:25:52 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 363188FC08 for ; Fri, 18 Jul 2008 01:25:51 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-181-2.lns11.adl2.internode.on.net [121.45.181.2]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m6I1PjpA017510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 18 Jul 2008 10:55:45 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 18 Jul 2008 10:55:27 +0930 User-Agent: KMail/1.9.7 References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <200807151538.38285.doconnor@gsoft.com.au> <482257ad0807160031k34980a19na9895f38f125d4e0@mail.gmail.com> In-Reply-To: <482257ad0807160031k34980a19na9895f38f125d4e0@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2229487.Isn8Q43yRk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200807181055.41216.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Tapan Chaudhari Subject: Re: Can I change the device of the "/" mount point at boot time. 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, 18 Jul 2008 01:25:53 -0000 --nextPart2229487.Isn8Q43yRk Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 16 Jul 2008, Tapan Chaudhari wrote: > > My first question would be "Why do you want to do that?" > > I am planning to write a block level snapshot driver. OK. You might want to look at geom_journal I guess. > > I think you'd have a lower overhead and much less hassle writing a > > GEOM class and using that. > > This sounds good. I will try using GEOM first. But if I could achieve > interception, as I described earlier, I will go for that rather than > redirection. I think using GEOM is the "Right Way" in FreeBSD for this. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2229487.Isn8Q43yRk Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIf/EV5ZPcIHs/zowRAkh5AJ0VEbRza3nE4+0AIUtQgTGzUjQd+wCeK26M 2CNItAFjYkOZDABd2/uPqVw= =YcPl -----END PGP SIGNATURE----- --nextPart2229487.Isn8Q43yRk-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 01:54:57 2008 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 CD29A1065676 for ; Fri, 18 Jul 2008 01:54:57 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 40AA38FC12 for ; Fri, 18 Jul 2008 01:54:57 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so72482nfh.33 for ; Thu, 17 Jul 2008 18:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=EgJoYAm3WUC8b2WQfD5pDEo5hocPcYnoxau4Tn137u0=; b=AMDVgI5c7FqPn3F8UAizpzmzJVXNKORwU1H7INvUVNDoedizcsfkbp/f7rN6W0UwOO ZORp21nwoFxw45CVQMBvhArhp4N0Sq9twi2S74IwZLwVHI8x6/KYwlFD2wgJtF/WNKVo WYHiYFEtTuNznHemPFFgpz6XLT297vPgFiJi8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=AlVWCPgW3A98zu7kB+oKn0LMLO66E4ukpK0BoqUCZBlB+e9GNHufcSRoQzPHOzYzi/ Hg52QR0aH6OloWZjVi0VSusyrC+GXl2vjhxZzI4bAEP40Ypm0vKb+IDnh1wTSo4Phit3 gFZKGV3tqjGAsKOKq4afcoKu1DyuDVdbVrL1Q= Received: by 10.210.142.6 with SMTP id p6mr1723599ebd.102.1216346095898; Thu, 17 Jul 2008 18:54:55 -0700 (PDT) Received: by 10.210.139.1 with HTTP; Thu, 17 Jul 2008 18:54:55 -0700 (PDT) Message-ID: <78c6bd860807171854o6e566b2h6ee3b77008dc541f@mail.gmail.com> Date: Thu, 17 Jul 2008 21:54:55 -0400 From: "Michael B Allen" To: "John Baldwin" In-Reply-To: <200807172015.11460.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> <200807171005.53148.jhb@freebsd.org> <78c6bd860807171042o54627c78nfcc0c19717b75f1e@mail.gmail.com> <200807172015.11460.jhb@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 18 Jul 2008 01:54:57 -0000 On Thu, Jul 17, 2008 at 8:15 PM, John Baldwin wrote: > On Thursday 17 July 2008 01:42:31 pm Michael B Allen wrote: >> On Thu, Jul 17, 2008 at 10:05 AM, John Baldwin wrote: >> > On Saturday 12 July 2008 07:11:26 pm Michael B Allen wrote: >> >> Hi, >> >> >> >> Below is a semtimedop(2) implementation that I'm using for FreeBSD. I >> >> was hoping someone could look it over and tell me if they think the >> >> implementation is sound. >> >> >> >> The code seems to work ok but when stressing the FreeBSD build of my app >> >> I have managed to provoke errors related to concurrency (usually when a >> >> SIGALRM goes off). The Linux build works flawlessesly so I'm wondering >> >> about this one critical function that is different. >> >> >> >> Do you think it would make any difference if I used >> >> ITIMER_VIRTUAL / SIGVTALRM instead of ITIMER_REAL / SIGALRM? >> >> >> >> Or perhaps I should be using a different implementation entirely? >> > >> > What specific races are you seeing? The timer is firing too early, too >> > late? >> >> It's very difficult to tell. I can only trigger the issue very >> occasionally running my torture test such that any diagnostic logging >> changes the results. >> >> And at this point I'm not sure my semtimedop implementation is >> responsible. I have not seen the issue since fixing the race pointed >> out by Mikko (although I have not tried very hard to provoke it). >> >> For now, I'm satisfied since I do not think the issue will be >> triggered in the wild. I hate to use signals for anything but as much >> as I try, there's just no other way to implement semtimedop within a >> single largely self-contained function. In the future I will likely >> use another process in the application that uses select(2) as an >> "event service" to post on semaphores after a certain time period. >> Unfortunately, right now, that service ultimately calls semtimedop so >> I'll save it for a rainy day. >> >> Although if you implemented semtimedop(2) into the FreeBSD API that >> would work too :-) > > POSIX semaphores (sem_open(3), sem_create(3), etc.) do have a > sem_timedwait(3). However, POSIX semaphores have several bugs in 6.x and 7.x > (they should work a lot better in 8). If you want I can give you a patch for > 6.x or 7.x that backports the 8.x POSIX semaphores. I can't ask my customers to patch their systems. But I'll keep it in mind for the future. I don't recall why I chose System V semaphores originally. I think process-shared semantics in the POSIX implementations where not mature at the time. I would love to move away from System V semaphores. It's all too easy to leak them and trying to clean up on restart is dangerous. Mike From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 00:21:19 2008 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 0A8F21065671; Fri, 18 Jul 2008 00:21:19 +0000 (UTC) (envelope-from randy@psg.com) Received: from rip.psg.com (rip.psg.com [IPv6:2001:418:1::39]) by mx1.freebsd.org (Postfix) with ESMTP id CABEC8FC19; Fri, 18 Jul 2008 00:21:18 +0000 (UTC) (envelope-from randy@psg.com) Received: from ip192.186.dsl-acs2.seawa0.iinet.com ([209.20.186.192] helo=rmac.psg.com) by rip.psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KJdin-0001wf-Kj; Fri, 18 Jul 2008 00:21:17 +0000 Message-ID: <487FE1FC.7020600@psg.com> Date: Thu, 17 Jul 2008 17:21:16 -0700 From: Randy Bush User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: John Baldwin References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <200807170919.49756.jhb@freebsd.org> <487F7399.6040805@psg.com> <200807172013.18535.jhb@freebsd.org> In-Reply-To: <200807172013.18535.jhb@freebsd.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 18 Jul 2008 05:02:56 +0000 Cc: Mike Makonnen , freebsd-current@freebsd.org, Robert Watson , Lothar Braun , freebsd-hackers@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years 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, 18 Jul 2008 00:21:19 -0000 John Baldwin wrote: > On Thursday 17 July 2008 12:30:17 pm Randy Bush wrote: >>> I think the best route to that is to have a separate utility for managing >>> disk partitioning. The installer can then use that utility, and >>> sysadmins can also use it later after the system is installed. >> i often invoke sysinstall on a running system to slice/partition/etc a >> new drive > Yes, I have found it nicer than raw bsdlabel in the past, but I think it > should be a standalone tool (diskpart or some such) that manages that and > that the installer should use that tool rather than the installer having a > disk partitioning sub-personality. oh, i agree completely. my point was that i seem to invoke sysinstall when standalone would be more 'normal.' and then i was pointed to sade(8) :) . randy From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 09:46:21 2008 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 59ADF1065674; Fri, 18 Jul 2008 09:46:21 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id C06408FC14; Fri, 18 Jul 2008 09:46:20 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vincent-hoffmans-macbook-pro-15.local ([195.7.254.52]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m6I9ka8l065328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Jul 2008 10:46:38 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4880666A.6020501@unsane.co.uk> Date: Fri, 18 Jul 2008 10:46:18 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: gary.jennejohn@freenet.de References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <486F8C57.9050908@wubethiopia.com> <20080705161614.O19209@fledge.watson.org> <200807170919.49756.jhb@freebsd.org> <487F7399.6040805@psg.com> <20080717205628.237ce4a4@peedub.jennejohn.org> In-Reply-To: <20080717205628.237ce4a4@peedub.jennejohn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years 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, 18 Jul 2008 09:46:21 -0000 Gary Jennejohn wrote: > On Thu, 17 Jul 2008 09:30:17 -0700 > Randy Bush wrote: > > >>> I think the best route to that is to have a separate utility for managing disk >>> partitioning. The installer can then use that utility, and sysadmins can >>> also use it later after the system is installed. >>> >> i often invoke sysinstall on a running system to slice/partition/etc a >> new drive >> >> > > [radically trimmed Cc list] > > sade(8) is supposed to take the place of sysinstall for disk operations. > > Ahh thats nice to know, might be worth adding to the handbook, I used to use /usr/ports/sysutils/sfdisk but somethng in base beats it. Vince > --- > Gary Jennejohn > _______________________________________________ > 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 Fri Jul 18 15:58:58 2008 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 C847D106567B for ; Fri, 18 Jul 2008 15:58:58 +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 80FFA8FC14 for ; Fri, 18 Jul 2008 15:58:58 +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 190043F89B; Fri, 18 Jul 2008 17:58:57 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 0A5B2228C5; Fri, 18 Jul 2008 17:58:57 +0200 (CEST) Date: Fri, 18 Jul 2008 17:58:56 +0200 From: Jilles Tjoelker To: Michael B Allen Message-ID: <20080718155856.GA96280@stack.nl> References: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> X-Operating-System: FreeBSD 7.0-STABLE i386 User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-hackers Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 18 Jul 2008 15:58:58 -0000 On Sat, Jul 12, 2008 at 07:11:26PM -0400, Michael B Allen wrote: > Below is a semtimedop(2) implementation that I'm using for FreeBSD. I > was hoping someone could look it over and tell me if they think the > implementation is sound. > [snip semtimedop implementation that uses SIGALRM and relies on EINTR] > The code seems to work ok but when stressing the FreeBSD build of my app > I have managed to provoke errors related to concurrency (usually when a > SIGALRM goes off). The Linux build works flawlessesly so I'm wondering > about this one critical function that is different. In your implementation, the SIGALRM signal may happen before you even call semop(2). If so, most likely the semop(2) will hang arbitrarily long. A somewhat dirty fix is to put a nonzero value into it_interval. This will ensure that if a signal is missed another one will be generated quickly. You might be able to fix this using setjmp/longjmp, but this is neither pretty nor efficient. Another dirty fix is to try non-blocking semop(2) several times with sleeps in between. > Do you think it would make any difference if I used > ITIMER_VIRTUAL / SIGVTALRM instead of ITIMER_REAL / SIGALRM? This does not fix the inherent problem. Also, given your use of signals in the first place, your application must be single threaded. This means the ITIMER_VIRTUAL timer does not run while semop(2) is waiting. -- Jilles Tjoelker From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 16:27:08 2008 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 3663D106566B for ; Fri, 18 Jul 2008 16:27:08 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id E8C7F8FC19 for ; Fri, 18 Jul 2008 16:27:07 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m6IGR53v065229; Fri, 18 Jul 2008 11:27:06 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Fri, 18 Jul 2008 11:27:05 -0500 (CDT) From: "Sean C. Farley" To: Michael B Allen In-Reply-To: <78c6bd860807171854o6e566b2h6ee3b77008dc541f@mail.gmail.com> Message-ID: References: <78c6bd860807121611w4f6ab44brbebfffea9929682a@mail.gmail.com> <200807171005.53148.jhb@freebsd.org> <78c6bd860807171042o54627c78nfcc0c19717b75f1e@mail.gmail.com> <200807172015.11460.jhb@freebsd.org> <78c6bd860807171854o6e566b2h6ee3b77008dc541f@mail.gmail.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: freebsd-hackers@FreeBSD.org, John Baldwin Subject: Re: Pls sanity check my semtimedop(2) implementation 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, 18 Jul 2008 16:27:08 -0000 On Thu, 17 Jul 2008, Michael B Allen wrote: *snip* > But I'll keep it in mind for the future. I don't recall why I chose > System V semaphores originally. I think process-shared semantics in > the POSIX implementations where not mature at the time. I would love > to move away from System V semaphores. It's all too easy to leak them > and trying to clean up on restart is dangerous. It is my understanding that process-shared is not currently supported at least in 7. Does anyone know if there is any intention of this being eventually supported? I have needed this in the past but do not need it at the moment. It would be nice to have someday. Sean -- scf@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 22:58:17 2008 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 AC0BF1065671 for ; Fri, 18 Jul 2008 22:58:17 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 769BE8FC0C for ; Fri, 18 Jul 2008 22:58:17 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (27.6.192-77.rev.gaoland.net [77.192.6.27]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 3EE64633657 for ; Sat, 19 Jul 2008 00:55:49 +0200 (CEST) Received: from baby-jane-lamaiziere-net.local (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 1705E56BA65 for ; Sat, 19 Jul 2008 00:58:15 +0200 (CEST) Date: Sat, 19 Jul 2008 00:58:13 +0200 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: freebsd-hackers@freebsd.org Message-ID: <20080719005813.3a995c71@baby-jane-lamaiziere-net.local> Organization: /dave/nulle X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.3.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: crypto(9) and maxoplen 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, 18 Jul 2008 22:58:17 -0000 Hello, In the "opencrypto framework" the function crypto_register() has an argument 'maxoplen'. http://fxr.watson.org/fxr/source/opencrypto/crypto.c#L625 Does somebody know what was the goal of this parameter? It is not used by the framework. The man page of crypto(9) says : For each algorithm the driver supports, it must then call crypto_register(). The first two arguments are the driver and algorithm identifiers. The next two arguments specify the largest possible operator length (in bits, important for public key operations) and flags for this algorithm. I'm asking if it can help for this problem: the glxsb driver can perform AES-CBC algorithm only with 128 bits key and may be 'maxoplen' was intended for this case. Without something to specify the key's length, the driver is selected by the framework even with keys != 128 bits. So it fails when the session is opened. This prevents setkey/ipsec to work with key length != 128 bits if the driver is loaded. Thanks, regards. From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 19 05:50:50 2008 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 3D58D1065670 for ; Sat, 19 Jul 2008 05:50:50 +0000 (UTC) (envelope-from thierry.herbelot@laposte.net) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id B856D8FC12 for ; Sat, 19 Jul 2008 05:50:49 +0000 (UTC) (envelope-from thierry.herbelot@laposte.net) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by postfix1-g20.free.fr (Postfix) with ESMTP id F31D82867E93 for ; Sat, 19 Jul 2008 07:24:18 +0200 (CEST) Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id AC53E3EA0BC for ; Sat, 19 Jul 2008 07:24:16 +0200 (CEST) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp4-g19.free.fr (Postfix) with ESMTP id 66D2C3EA0AD for ; Sat, 19 Jul 2008 07:24:16 +0200 (CEST) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id m6J5OEfe011470 for ; Sat, 19 Jul 2008 07:24:15 +0200 (CEST) From: Thierry Herbelot To: freebsd-hackers@freebsd.org Date: Sat, 19 Jul 2008 07:23:46 +0200 User-Agent: KMail/1.9.7 X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807190723.47208.thierry.herbelot@laposte.net> Subject: NFS locking from a qemu machine ? 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, 19 Jul 2008 05:50:50 -0000 Hello, I'm trying to use NFS locking from an NFS client running in a qemu virtual PC to an NFS server running on the host machine, but with no success so far : configuration for the host PC (server) : operating system : FreeBSD 7.0-Stable % cat /etc/exports /shared/ 127.0.0.1 and in /etc/rc.conf : nfs_server_enable="YES" weak_mountd_authentication="YES" # Allow non-root mount requests to be served. rpcbind_enable="YES" # Run the portmapper service (YES/NO). rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server. rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server. configuration for the qemu machine (client) : operating system : FreeBSD 7.0-Stable in /etc/fstab : 10.0.2.2:/shared /shared nfs rw 0 0 in /etc/rc.conf : nfs_client_enable="YES" # This host is an NFS client (or NO). rpcbind_enable="YES" # Run the portmapper service (YES/NO). rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server. rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server. I'm using tools/regression/file/flock to check the correct file locking : $ ./flock ../../shared and the client machine seems locked the ethernet traffic between the client and the server when the client is blocked is the following : (the "tunnel" port is the one used by the lockmanager according to rpcinfo) 16:54:47.907919 IP (tos 0x0, ttl 64, id 48249, offset 0, flags [none], proto UDP (17), length 84) localhost.53807 > localhost.sunrpc: [udp sum ok] UDP, length 56 16:54:47.908030 IP (tos 0x0, ttl 64, id 48250, offset 0, flags [none], proto UDP (17), length 56) localhost.sunrpc > localhost.53807: [udp sum ok] UDP, length 28 16:54:47.909791 IP (tos 0x0, ttl 64, id 48251, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:54:47.909834 IP (tos 0x0, ttl 64, id 48252, offset 0, flags [none], proto UDP (17), length 92) localhost.790 > localhost.sunrpc: [udp sum ok] UDP, length 64 16:54:47.909932 IP (tos 0x0, ttl 64, id 48253, offset 0, flags [none], proto UDP (17), length 72) localhost.sunrpc > localhost.790: [udp sum ok] UDP, length 44 16:54:47.909956 IP (tos 0x0, ttl 64, id 48254, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:55:27.490768 IP (tos 0x0, ttl 64, id 48255, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:55:27.490814 IP (tos 0x0, ttl 64, id 48256, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:56:07.069067 IP (tos 0x0, ttl 64, id 48257, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:56:07.069110 IP (tos 0x0, ttl 64, id 48258, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:56:46.683998 IP (tos 0x0, ttl 64, id 48276, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:56:46.684042 IP (tos 0x0, ttl 64, id 48277, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:57:26.375646 IP (tos 0x0, ttl 64, id 48281, offset 0, flags [none], proto UDP (17), length 84) localhost.50653 > localhost.sunrpc: [udp sum ok] UDP, length 56 16:57:26.375758 IP (tos 0x0, ttl 64, id 48282, offset 0, flags [none], proto UDP (17), length 56) localhost.sunrpc > localhost.50653: [udp sum ok] UDP, length 28 16:57:26.376715 IP (tos 0x0, ttl 64, id 48283, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:57:26.376755 IP (tos 0x0, ttl 64, id 48284, offset 0, flags [none], proto UDP (17), length 92) localhost.790 > localhost.sunrpc: [udp sum ok] UDP, length 64 16:57:26.376851 IP (tos 0x0, ttl 64, id 48285, offset 0, flags [none], proto UDP (17), length 72) localhost.sunrpc > localhost.790: [udp sum ok] UDP, length 44 16:57:26.376874 IP (tos 0x0, ttl 64, id 48286, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:58:06.271603 IP (tos 0x0, ttl 64, id 48297, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:58:06.271647 IP (tos 0x0, ttl 64, id 48298, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:58:46.178361 IP (tos 0x0, ttl 64, id 48301, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:58:46.178409 IP (tos 0x0, ttl 64, id 48302, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:59:26.115517 IP (tos 0x0, ttl 64, id 48303, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:59:26.115563 IP (tos 0x0, ttl 64, id 48304, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 any idea about bad configuration ? thanks in advance TfH From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 19 11:06:53 2008 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 F2E7E106567B for ; Sat, 19 Jul 2008 11:06:53 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from aurynhome1sv1.zirakzigil.org (mail.zirakzigil.org [82.63.178.63]) by mx1.freebsd.org (Postfix) with SMTP id 1331A8FC08 for ; Sat, 19 Jul 2008 11:06:52 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: (qmail 75242 invoked by uid 98); 19 Jul 2008 10:40:11 -0000 Received: from 192.168.229.11 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 ( Clear:RC:1(192.168.229.11):. Processed in 0.039906 secs); 19 Jul 2008 10:40:11 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.229.11):. Processed in 0.039906 secs) Received: from unknown (HELO aurynhome1ws2.zirakzigil.org) (postmaster@zirakzigil.org@192.168.229.11) by 0 with SMTP; 19 Jul 2008 10:40:11 -0000 Message-ID: <4881C486.8040401@zirakzigil.org> Date: Sat, 19 Jul 2008 12:40:06 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.0 (X11/20070513) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: multi-ip jail patch on freebsd 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: Sat, 19 Jul 2008 11:06:54 -0000 Since the multi-ip jail feature isn't yet part of the base system (why???) I was searching the internet for a suitable patch to apply manually. I couldn't find any. The one I found didn't apply cleanly to a 7 system. Can any of you point me to a working multi-ip jail patch? Thanks in advance. From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 19 23:43:24 2008 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 7E00C106566B for ; Sat, 19 Jul 2008 23:43:24 +0000 (UTC) (envelope-from snb@moduli.net) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 2D7B88FC0C for ; Sat, 19 Jul 2008 23:43:23 +0000 (UTC) (envelope-from snb@moduli.net) Received: by nf-out-0910.google.com with SMTP id h3so354723nfh.33 for ; Sat, 19 Jul 2008 16:43:22 -0700 (PDT) Received: by 10.103.239.10 with SMTP id q10mr1360528mur.82.1216509283529; Sat, 19 Jul 2008 16:14:43 -0700 (PDT) Received: by 10.102.228.7 with HTTP; Sat, 19 Jul 2008 16:14:43 -0700 (PDT) Message-ID: Date: Sun, 20 Jul 2008 01:14:43 +0200 From: "Nick Barkas" Sender: snb@moduli.net To: "Rainer Duffner" In-Reply-To: <486CEEF1.9040702@ultra-secure.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <20080702235800.H47773@fledge.watson.org> <486C8700.5020100@lobraun.de> <486CEEF1.9040702@ultra-secure.de> X-Google-Sender-Auth: e3d1ffdf6705f082 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years 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, 19 Jul 2008 23:43:24 -0000 On Thu, Jul 3, 2008 at 5:23 PM, Rainer Duffner wrote: > Mass-installation via PXE-booting is a mess (how can you have to pack the > install.cfg file into the mfsroot diskimage???). I have done some work on a tool for rapidly imaging many FreeBSD systems and a set of packages using PXE booting: http://code.google.com/p/farbot/. Farbot uses sysinstall, so it does automatically do things like generating an install.cfg file and putting it into an mfsroot. But I'm definitely also looking forward to a new installer, and hoping it will be easy to control programmatically. Nick