From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 12 00:02:29 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 3CE941065686 for ; Sun, 12 Oct 2008 00:02:29 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id BE4DF8FC24 for ; Sun, 12 Oct 2008 00:02:28 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so198170uge.39 for ; Sat, 11 Oct 2008 17:02: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=csTijmYqzCIiOOeVd5EvdJ/yg2zZPneBPacgAsKkddM=; b=tkaSbV7hwUUGN/1Tw3ejcX7FLXTDAv3V9KZVxFn6UNBL8S+/r37eu474YZok4d/8ot 8fn5Op2DAU+dp/8l5Z5LFKYx9kQjt+ofAJmgXlTHSg3+H7NGPWfQniX6Ll2TN7TfWi1V gSpMk+LsLrwW+bhhg+1lG0ydvtkCHBpmmLovY= 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=MiGu9OdKRrwPtCg7W3Q0l+FmLPSCML+e6Uwu3NNz6E38xit6tDftm1MJ4g0dvBM6Iq 9d3xfzOP7B0bVeOyn1yGMVc01K/1OOkxziX4hfcpDDf96l+xQbmP/GAYtuDOeaJS+kwe ZHaKYH1i+j76I3ZPB7FOuThwJVqWvP9Fpc7Zc= Received: by 10.67.15.2 with SMTP id s2mr1515167ugi.38.1223768507380; Sat, 11 Oct 2008 16:41:47 -0700 (PDT) Received: by 10.67.123.15 with HTTP; Sat, 11 Oct 2008 16:41:47 -0700 (PDT) Message-ID: <7d6fde3d0810111641s673bfc0aiac7735f517b73dd9@mail.gmail.com> Date: Sat, 11 Oct 2008 16:41:47 -0700 From: "Garrett Cooper" To: "Peter Wemm" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: hackers@freebsd.org, "O. Hartmann" , current@freebsd.org Subject: Re: TIME WARP! Re: HEADS UP: GCC 4.2.0 is coming 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, 12 Oct 2008 00:02:29 -0000 On Wed, Oct 8, 2008 at 1:36 AM, Peter Wemm wrote: > On Wed, Oct 8, 2008 at 12:57 AM, O. Hartmann > wrote: >> Alexander Kabaev wrote: >>> >>> On Fri, 18 May 2007 19:20:07 -0400 >>> Alexander Kabaev wrote: >>> >>>> HEADS UP: I will start importing GCC 4.2.0 bits in about one hour and >>>> plan to finish in a couple of hours after that. >>>> >>>> The src/ tree will be utterly broken meanwhile. I'll send an 'all >>>> clear' message when done. >>> >>> Done. >>> >> >> Just for those who aren't on the cutting edge: why gcc 4.2.0 and not 4.2.1 >> as it is used in 7.X? >> >> Regards, >> O. > > Sorry about that. I accidently revived a bunch of stuck email > messages from our mailing list processing system. These messages from > 2007 came back to life somehow. > > (Hint: Mailman's 'unshunt' command doesn't give a usage message) Apparently you mastered what Robert Zemekis was trying to do back in 1985 XD. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 12 00:41: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 016CA106568A for ; Sun, 12 Oct 2008 00:41:11 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id C7ED68FC0A for ; Sun, 12 Oct 2008 00:41:10 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (c-67-188-126-36.hsd1.ca.comcast.net [67.188.126.36]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id m9C0goOo011165 for ; Sat, 11 Oct 2008 17:42:50 -0700 (PDT) Message-ID: <48F147A5.1040107@rawbw.com> Date: Sat, 11 Oct 2008 17:41:09 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.17 (X11/20081001) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Is it possible to recover from SEGV? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2008 00:41:11 -0000 Let's say I have signal(3) handler set. And I know exactly what instruction caused SEGV and why. Is there a way to access from signal handler CPU registers as they were before signal, modify some of them, clear the signal and continue from the instruction that caused SEGV initially? I see that if signal handler doesn't terminate the process signal is being generated again and again. I understand it the way that the faulty instruction is being rerun if signal handler didn't terminate the process. rusage.ru_nsignals is also being incremented every time signal handler is being called. Yuri PS: Of course I understand why SEGVs happen in general. I am trying to understand if it's possible to use SEGV beyond the way it's commonly used. From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 12 00:51: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 CE36B1065687 for ; Sun, 12 Oct 2008 00:51:45 +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 A41F48FC20 for ; Sun, 12 Oct 2008 00:51:45 +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 m9C0pj601087; Sat, 11 Oct 2008 17:51:45 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m9C0pjn11966; Sat, 11 Oct 2008 17:51:45 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Sat, 11 Oct 2008 17:51:44 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Yuri In-Reply-To: <48F147A5.1040107@rawbw.com> Message-ID: References: <48F147A5.1040107@rawbw.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Is it possible to recover from SEGV? 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, 12 Oct 2008 00:51:45 -0000 On Sat, 11 Oct 2008, Yuri wrote: > Let's say I have signal(3) handler set. > And I know exactly what instruction caused SEGV and why. > > Is there a way to access from signal handler CPU registers as they > were before signal, modify some of them, clear the signal and > continue from the instruction that caused SEGV initially? Absolutely. Declare your signal handler as void handler(int sig, int code, struct sigcontext *scp); You will need to cast the pointer passed to signal(3). struct sigcontext is defined in I believe. struct sigcontext contains the CPU registers as they were when the faulting instruction began to execute. You can modify them and then return from the signal handler. The program will resume the faulting instruction with the new registers. You can also alter the copy of the instruction pointer in the struct sigcontext if you want it to resume somewhere else. There is also a libsigsegv which looks like it wraps some of this process in a less machine-specific way. Out of curiosity, what are you looking to achieve with this? And what architecture are you on? -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 12 01:31: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 B48FD106568B for ; Sun, 12 Oct 2008 01:31:03 +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 579388FC08 for ; Sun, 12 Oct 2008 01:31:03 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 93918 invoked by uid 1001); 11 Oct 2008 21:28:31 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Sat, 11 Oct 2008 21:28:30 -0400 Date: Sat, 11 Oct 2008 21:28:29 -0400 To: Jeremy Chadwick Message-ID: <20081011212829.57b889d7@bhuda.mired.org> In-Reply-To: <20081011112431.GA60924@icarus.home.lan> References: <20081010023428.87556dt18ejyzf48@mail.ispro.net> <20081009200641.60d0b236@bhuda.mired.org> <48EF5052.2000707@ispro.net> <20081010144111.GA34609@icarus.home.lan> <20081010112952.52b8209b@bhuda.mired.org> <20081010154249.GA35859@icarus.home.lan> <20081010122228.355c2c3e@bhuda.mired.org> <20081011104409.GA58698@icarus.home.lan> <20081011112431.GA60924@icarus.home.lan> Organization: Meyer Consulting X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC 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, Mike Meyer Subject: Re: continuous backup solution for FreeBSD 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, 12 Oct 2008 01:31:03 -0000 On Sat, 11 Oct 2008 04:24:31 -0700 Jeremy Chadwick wrote: > > I'm asking, because I want to deploy some zfs fileservers soon, and so > > far the solution is either PXE boot, or keep one disk UFS (or boot off a USB) > > Today's /(root+usr) is somewhere between .5 to 1Gb(kernel+debug+src), > > and is readonly, so having 1 disk UFS seems to be a pitty. > > Hold on a minute. "One disk" has nothing to do with the filesystem. > You asked if FreeBSD could boot off of a specific filesystem, and I > answered that -- I didn't state anything about disk counts. Now you're > changing the focus. :-) > > I'm pretty sure FreeBSD can boot off of gmirror setups (see above, > boot2/loader should work off of gmirror), which means >1 disk. You > do not have to gmirror the entire disk, you can gmirror just a slice > (AFAIK). > > I think (hope?) you can use the "remaining" (e.g. non-UFS/non-gmirror) > part of the 2nd disk for ZFS as well, otherwise the space would go > to waste. The "Root on ZFS configuration" FreeBSD ZFS Wiki page > seems to imply you can. You mean like this: bhuda% gmirror status Name Status Components mirror/boot COMPLETE ad0s1a ad1s1a bhuda% zpool status pool: internal state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM internal ONLINE 0 0 0 mirror ONLINE 0 0 0 ad0s1d ONLINE 0 0 0 ad1s1d ONLINE 0 0 0 errors: No known data errors Yes, I don't get the benefits of having /boot on a zfs partition, but I do get the benefits of having it on a mirror: automatic duplication, reads from either device, and I can use either device stand-alone if I break the mirror. Note that FreeBSD booting from a gmirror'ed partition/disk can't boot from the gmirror device - boot doesn't understand gmirror. It can, however, boot from any of the devices participating in the mirror. The mirror device appears after the kernel is loaded. Given that I have to have a separate boot partition, having swap partitions on the drives is a win compared to swapping to a zvol. I'm going to investigate putting /boot on an SSD of some kind so that ZFS can have the entire disk. 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 Oct 12 01:34: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 DBC24106568C for ; Sun, 12 Oct 2008 01:34:23 +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 6EBDF8FC0C for ; Sun, 12 Oct 2008 01:34:23 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 94024 invoked by uid 1001); 11 Oct 2008 21:31:51 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Sat, 11 Oct 2008 21:31:50 -0400 Date: Sat, 11 Oct 2008 21:31:49 -0400 To: "Freddie Cash" Message-ID: <20081011213149.19385b8d@bhuda.mired.org> In-Reply-To: References: <200810111810.m9BIAGPw059975@apollo.backplane.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC 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: ZFS boot 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, 12 Oct 2008 01:34:23 -0000 On Sat, 11 Oct 2008 20:37:10 +0000 "Freddie Cash" wrote: > > Most linux dists don't bother with multiple partitions any more. > > They just have '/' and maybe a small boot partition, and that's it. > > Heh, that's more proof of the difficulties inherent with old-school > disk partitioning, compared to pooled storage setups, than an > endorsement of using a single partition/filesystem. :) I think it's more likely that, given you know absolutely nothing about what the system is going to be used for, you don't know enough to set up the partitions intelligently, so one partitions makes as much sense as anything else. That's one of the best thing about pooled storage: you can create new file systems for new usages without having to repartition your disk subsystem. 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 Oct 12 07:44: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 132C4106568B; Sun, 12 Oct 2008 07:44:21 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (unknown [IPv6:2002:50b1:e8f2:1::143]) by mx1.freebsd.org (Postfix) with ESMTP id C18F68FC19; Sun, 12 Oct 2008 07:44:20 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from [IPv6:2001:470:909f:1:21e:52ff:fe73:8011] (unknown [IPv6:2001:470:909f:1:21e:52ff:fe73:8011]) by itchy.rabson.org (Postfix) with ESMTP id 131B23FAD; Sun, 12 Oct 2008 08:44:19 +0100 (BST) Message-Id: From: Doug Rabson To: Danny Braniss In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sun, 12 Oct 2008 08:44:18 +0100 References: X-Mailer: Apple Mail (2.929.2) Cc: freebsd-hackers@freebsd.org, Jeremy Chadwick , Mike Meyer Subject: Re: ZFS boot 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, 12 Oct 2008 07:44:21 -0000 On 11 Oct 2008, at 14:28, Danny Braniss wrote: > > > To Doug: > > ZFS boot is coming. > great! any time estimate?, just curious, no preasure :-) Its part of pjd's current big ZFS patch which brings us more or less up-to-date with Solaris. I'm not the best person to ask when that will be ready but I would expect to see it in current later this year. I hope to have some time soon to work on some outstanding issues with the boot code, so I may be able to add raidz and raidz2 support before its committed to current. From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 12 08:43: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 2F0FB1065688 for ; Sun, 12 Oct 2008 08:43:38 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id 119258FC0A for ; Sun, 12 Oct 2008 08:43:37 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id RkjW1a0010EPchoA3kjdN4; Sun, 12 Oct 2008 08:43:37 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.emeryville.ca.mail.comcast.net with comcast id Rkjc1a0062P6wsM8MkjcNK; Sun, 12 Oct 2008 08:43:37 +0000 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=eL-bSH8qi-lIiaZTkJsA:9 a=ZG7prpRk9s827enNUn2ru2NZ9X0A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 580FCC9419; Sun, 12 Oct 2008 01:43:36 -0700 (PDT) Date: Sun, 12 Oct 2008 01:43:36 -0700 From: Jeremy Chadwick To: Nate Eldredge Message-ID: <20081012084336.GA84786@icarus.home.lan> References: <200810112330.53214.ken@mthelicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, Pegasus Mc Cleaft Subject: Re: ZFS boot 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, 12 Oct 2008 08:43:38 -0000 On Sat, Oct 11, 2008 at 04:21:55PM -0700, Nate Eldredge wrote: > On Sat, 11 Oct 2008, Pegasus Mc Cleaft wrote: > >>> FWIW, my system is amd64 with 1 G of memory, which the page implies is >>> insufficient. Is it really? >> >> This may be purely subjective, as I have never bench marked the speeds, but >> when I was first testing zfs on a i386 machine with 1gig ram, I thought the >> performance was mediocre. However, when I loaded the system on a quad core - >> core2 with 8 gigs ram, I was quite impressed. I put localized changes in my >> /boot/loader.conf to give the kernel more breathing room and disabled the >> prefetch for zfs. >> >> #more loader.conf >> vm.kmem_size_max="1073741824" >> vm.kmem_size="1073741824" >> vfs.zfs.prefetch_disable=1 > > I was somewhat confused by the suggestions on the wiki. Do the kmem_size > sysctls affect the allocation of *memory* or of *address space*? The Wiki is somewhat vague and doesn't give you all the knowledge you need. The kmem_* sysctls do not define pre-allocated amounts. They define the amount of memory which can be used by the kernel for allocation. I strongly advocate tuning two other sysctls, which can help greatly in ensuring no system lock-ups and no kmem exhaustion panics: vfs.zfs.arc_min vfs.zfs.arc_max The following values are what I use, but others have reported better performance with arc_max set to 128M: vfs.zfs.arc_min="16M" vfs.zfs.arc_max="64M" > It seems a bit much to reserve 1 G of memory solely for the use of the > kernel, expecially in my case when that's all I have :) But on amd64, > it's welcome to have terabytes of address space if it will help. ZFS is a memory hog, period. That's just the nature of the beast. You probably should not be using it on a system with 1GB. I'll remind you that memory right now is *incredibly* cheap; you can get 4GB of brand-name lifetime-warranty RAM for around US$40-50. Secondly, with regards to amd64: RELENG_6 and RELENG_7 amd64 cannot handle more than 2GB of kmem. Yes, you read that correct; it's not a typo. It's an implementation issue which cannot be easily solved on those releases. CURRENT can address up to 512GB. I've fully documented this on my Wiki, see section Kernel. http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues -- | 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 Oct 12 09:48: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 7123A106568F for ; Sun, 12 Oct 2008 09:48:11 +0000 (UTC) (envelope-from romain@blogreen.org) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id ED53A8FC16 for ; Sun, 12 Oct 2008 09:48:10 +0000 (UTC) (envelope-from romain@blogreen.org) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by postfix1-g20.free.fr (Postfix) with ESMTP id 2F4722C80381 for ; Sun, 12 Oct 2008 11:29:40 +0200 (CEST) Received: from smtp6-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp6-g19.free.fr (Postfix) with ESMTP id 6CDE5172A5 for ; Sun, 12 Oct 2008 11:29:38 +0200 (CEST) Received: from marvin.blogreen.org (marvin.blogreen.org [82.247.213.140]) by smtp6-g19.free.fr (Postfix) with ESMTP id 50F3017252 for ; Sun, 12 Oct 2008 11:29:38 +0200 (CEST) Received: by marvin.blogreen.org (Postfix, from userid 1001) id B7CDD5E622; Sun, 12 Oct 2008 11:29:37 +0200 (CEST) Date: Sun, 12 Oct 2008 11:29:37 +0200 From: Romain =?iso-8859-1?Q?Tarti=E8re?= To: freebsd-hackers@freebsd.org Message-ID: <20081012092937.GA53444@marvin.blogreen.org> Mail-Followup-To: freebsd-hackers@freebsd.org References: <48F147A5.1040107@rawbw.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <48F147A5.1040107@rawbw.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key: http://romain.blogreen.org/pubkey.asc Subject: Re: Is it possible to recover from SEGV? 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, 12 Oct 2008 09:48:11 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Yuri, On Sat, Oct 11, 2008 at 05:41:09PM -0700, Yuri wrote: > Is there a way to access from signal handler CPU registers as they > were before signal, modify some of them, clear the signal and > continue from the instruction that caused SEGV initially? Maybe you can have a look to the development version of the Enlightenment window manager [1]. It catches segfaults and displayed a window to ask the user what to do (continue, abort). I experienced a few crashes where this helpful window was triggered a dozen times, I asked the window manager to continue and could save my work before everything crashed. First moves in the svn repository [2] (basically grep SEGV): | ./src/bin/e_exec.c:456: else if (cfdata->event.exit_signal =3D=3D SIGSEGV) | ./src/bin/e_desklock.c:689: sigaction(SIGSEGV, &action, NULL); | ./src/bin/e_object.c:153: sigaction(SIGSEGV, &act, &oact); | ./src/bin/e_object.c:158: sigaction(SIGSEGV, &oact, NULL); | ./src/bin/e_object.c:168: sigaction(SIGSEGV, &oact, NULL); | ./src/bin/e_signals.c:28: e_alert_show("This is very bad. Enlightenment= SEGV'd.\n" | ./src/bin/e_signals.c:48: e_alert_show("This is very bad. Enlightenment= SEGV'd.\n" | ./src/bin/e_main.c:99: sigaction(SIGSEGV, &action, NULL); | ./src/bin/e_main.c:322:// FIXME: SEGV's on shutdown if fm2 windows up - d= isable for now. Hope that helps! Romain References: 1. http://enlightenment.org/ 2. http://svn.enlightenment.org/svn/e/trunk/e/ --=20 Romain Tarti=E8re http://romain.blogreen.org/ pgp: 8DAB A124 0DA4 7024 F82A E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjxw4EACgkQ2OmjP/9W/0OTsACdGIzyfRR9vWqAO66XUb1eFTxq RYYAn2VQ1tZ5Zy/pZHmRq53MB1TRLr2J =kzze -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 12 12:47: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 E7B391065688 for ; Sun, 12 Oct 2008 12:47:28 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 758FB8FC0C for ; Sun, 12 Oct 2008 12:47:28 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m9CCM5ia093155 for ; Sun, 12 Oct 2008 14:22:06 +0200 (CEST) X-Ids: 164 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id D21958A1D3 for ; Sun, 12 Oct 2008 14:22:04 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id BF69110A; Sun, 12 Oct 2008 14:22:04 +0200 (CEST) Date: Sun, 12 Oct 2008 14:22:04 +0200 From: Michel Talon To: freebsd-hackers@freebsd.org Message-ID: <20081012122204.GA85909@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (shiva.jussieu.fr [134.157.0.164]); Sun, 12 Oct 2008 14:22:06 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93.3/8414/Sun Oct 12 05:30:50 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail2.jussieu.fr with ID 48F1CFF1.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 48F1CFF1.000/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 48F1CFF1.000 on jchkmail2.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.051 -> S=0.051 X-j-chkmail-Status: Ham X-Mailman-Approved-At: Sun, 12 Oct 2008 13:40:30 +0000 Subject: Re: ZFS boot 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, 12 Oct 2008 12:47:29 -0000 > > It seems a bit much to reserve 1 G of memory solely for the use of the > > kernel, expecially in my case when that's all I have :) But on amd64, > > it's welcome to have terabytes of address space if it will help. > > ZFS is a memory hog, period. That's just the nature of the beast. > You probably should not be using it on a system with 1GB. I'll remind > you that memory right now is *incredibly* cheap; you can get 4GB of > brand-name lifetime-warranty RAM for around US$40-50. I am running FreeBSD-7 with the following: m.kmem_size="512M" vm.kmem_size_max="512M" vfs.zfs.arc_max="256M" vfs.zfs.arc_min="32M" vfs.zfs.prefetch_disable="1" on a i386 machine with 1 Gig memory (now upgraded to 1.5 Gig) and i have not experienced, up to now, any lockup problem. Apparently the kernel effectively uses around 500M memory, indeed. Performance seems reasonable to me, not worse than with UFS. -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 13 16:03: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 88CAA10656C0 for ; Mon, 13 Oct 2008 16:03:21 +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 BE9038FC0C for ; Mon, 13 Oct 2008 16:03:20 +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 m9DG2cwB011912; Mon, 13 Oct 2008 12:03:08 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 13 Oct 2008 10:51:06 -0400 User-Agent: KMail/1.9.7 References: <53fa490b0810071947j23fc0f72n5360b6f174ddc96d@mail.gmail.com> <20081008174956.GA98121@nexus.in-nomine.org> <86zlleq397.fsf@ds4.des.no> In-Reply-To: <86zlleq397.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810131051.07174.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Mon, 13 Oct 2008 12:03:11 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8417/Mon Oct 13 03:34:29 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=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: Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= , ushasri tummala , Jeroen Ruigrok van der Werven Subject: Re: What is the time between 2 mi_switches in freebsd. 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, 13 Oct 2008 16:03:21 -0000 On Wednesday 08 October 2008 03:46:12 pm Dag-Erling Sm=C3=B8rgrav wrote: > Jeroen Ruigrok van der Werven writes: > > -On [20081008 19:15], ushasri tummala (tummala.ushasri@gmail.com) wrote: > > > I just want to know how its(time between 2 mi_switch()) calculated > > > and in which variable is it stored in the code.(FreeBSD 5.2 release) > > > This is not addressed in text book. > > What Dag-Erling meant to say, and if I recall correctly, a switch() is > > highly dependent on your hardware. So the time taken for a specific > > machine can be vastly different from another machine. >=20 > No, no, no. >=20 > Assuming the question is really "what is the time between two task > switches", >=20 > A task switch can happen for one of many reasons: >=20 > - first, and simplest, the current task has used up its quantum; >=20 > - the current task is waiting for an external event (I/O, a mutex, a > timeout, etc.) >=20 > - the current task has terminated; >=20 > - something happened to make a higher-priority task runnable; >=20 > - ... >=20 > The closest you can get to a hard answer is if you consider only the > first of the above, in which case the answer is 1/hz second, where "hz" > is literally a kernel variable named hz. Its default value is 1,000 on > amd64, i386, ia64 and sparc64, and 100 on all other platforms. Actually, hz isn't the quantum. sched_tick() is called 'hz' times per seco= nd,=20 but the scheduler is free to implement its own quantum. The default quantu= m=20 for 4BSD is actually hz / 10 for example: static int sched_quantum; /* Roundrobin scheduling quantum in ticks. */ #define SCHED_QUANTUM (hz / 10) /* Default sched quantum */ I'm not sure what ULE's quantum is or how it is computed. =2D-=20 John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 14 18: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 9A828106568F for ; Tue, 14 Oct 2008 18:32:49 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.freebsd.org (Postfix) with ESMTP id 568388FC22 for ; Tue, 14 Oct 2008 18:32:49 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: by wx-out-0506.google.com with SMTP id s17so743659wxc.7 for ; Tue, 14 Oct 2008 11:32: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=13QCvtcRogfouWGSAwvd1pX78VTfTVdeOcbwlMy+tls=; b=VEAf+rLg//RIcI2I8WmA/yb8GWElVk1cC/4ziujAS1TjTFO+GG9KybFjfCzKEwWiQI zW4ITTt21cB5v/UccBGijFqElwj/lQfqVMR4zwG++8VqI03drKW3AuJzDk8AxzCM0dai ykuko00Rm1p0tfmu4YwbvmbghBMaB3M9Dz4j4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=GCEgYzzzoNgwKUnzo6OEbnTX+vKWOs9gaf9aE7tMRWXAEyj4ohwm7zo0G/jErJP2c8 IX6fkj001kcYDkPzddau1MH/MWnyJwSKRjOGUmXlbtZ41byQBuUfZaVS+l7FoAf5s5Xb YmC7L1kFEImrNyj5FgsBhwZ1ZjurNHvMgbaQk= Received: by 10.103.119.19 with SMTP id w19mr4710593mum.129.1224009167353; Tue, 14 Oct 2008 11:32:47 -0700 (PDT) Received: by 10.103.141.5 with HTTP; Tue, 14 Oct 2008 11:32:47 -0700 (PDT) Message-ID: Date: Wed, 15 Oct 2008 00:02:47 +0530 From: Srinivas 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: [Doubt] Can a PCI device communicate with another PCI or other device? 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, 14 Oct 2008 18:32:49 -0000 Hello, I have a small doubt. Suppose I have a PCI card with a general purpose CPU on it. Could it be able to communicate with another PCI device or ISA device(lets say IDE hard disk)? Thanks, Srinivas From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 14 19:39: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 474DC1065687 for ; Tue, 14 Oct 2008 19:39:43 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0E74C8FC1B for ; Tue, 14 Oct 2008 19:39:42 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id m9EJdeDm039846 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Tue, 14 Oct 2008 19:39:41 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: freebsd-hackers@freebsd.org Date: Tue, 14 Oct 2008 20:39:39 +0100 User-Agent: KMail/1.10.1 (FreeBSD/7.1-PRERELEASE; KDE/4.1.1; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810142039.39287.ken@mthelicon.com> Subject: Re: [Doubt] Can a PCI device communicate with another PCI or other device? 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, 14 Oct 2008 19:39:43 -0000 On Tuesday 14 October 2008 19:32:47 Srinivas wrote: > Hello, > > I have a small doubt. > > Suppose I have a PCI card with a general purpose CPU on it. Could it be > able to communicate with another PCI device or ISA device(lets say IDE ha= rd > disk)? Hi Srinivas,=20 Others may have a different opinion on this, and I am curious to see there= =20 input to this question as well. I tried doing something like this years ago= =20 with the Blackfin processor, but I found it to be not a good idea. While I= =20 could DMA transfer memory from the DSP into the physical memory of another= =20 device (In my case, the HD controller) I couldn't take control of IRQ=B4s. = Other=20 potential problems arose that turned me off to the whole idea (Data=20 concurrency between the DSP->HD and the host->HD). Even if you got past the= se=20 problems you would still face having to deal with any number of filing syst= ems=20 formats.=20 I found it much easier to make a device driver and service/daemon on the h= ost=20 machine that proxi-requested things for the DSP board and burped it into ra= m=20 that the DSP could then grab and process (or dump to disk from, in the othe= r=20 direction). While the speed may not be brilliant, it made things a lot easi= er=20 for me to manage on a software level.=20 In later revisions, I re-spun the PCB so it had an IDE controller local to= =20 the DSP and stuck an PLX-Tech PCI to PCI bridge between the host and the DS= P=20 so I could manage 2 small memory windows between the two (One for API=20 commands, and the other data) with a single IRQ back to the host. This allo= wed=20 me to have a high-speed IDE port local to the DSP where it was needed, and = a=20 slower link back to the host CPU for pulling video files, etc.=20 Hope this helps, Peg From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 00:47:47 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 D4F321065686 for ; Wed, 15 Oct 2008 00:47:47 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by mx1.freebsd.org (Postfix) with ESMTP id 8C46D8FC2D for ; Wed, 15 Oct 2008 00:47:47 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: by gxk9 with SMTP id 9so5222204gxk.19 for ; Tue, 14 Oct 2008 17:47: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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=pHtBwmHXHqr8Apj7DyG9L9Un/xE37P7mAdp3SMNRcOE=; b=SxMqsgPNX/HfXxHRrFr0RhfWB6j1+WHKk8WL3hjE3T3vrG4z3m/SaIMdJEYn/JRzbC VU1dfIH6tcv0H72ZJqHbUtZkPQLIbATlQdSLAKLc7twzxLUHLRD9DsSv1e39/3vpt28q Hp1Rjt9Nid6t39cSQZbSUegkHohVndIlMdt7o= 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=aHQrTZDVna9CK9GwqOYRIFDgzY4RtypnlqEPqNuIdKPVD+dhdbiH83ctnLbEaSfHoY H3pfyJhU79mJm5HPporHL1Xnp4KJF5VLrkh7yXDRLXQgVbJzNab+YUIZPl7GxHis5pJT CvgkSKCk0yPAJ3nMNDPRzFlluxIsSHWBUFfNg= Received: by 10.151.41.21 with SMTP id t21mr750673ybj.223.1224031666805; Tue, 14 Oct 2008 17:47:46 -0700 (PDT) Received: by 10.150.191.21 with HTTP; Tue, 14 Oct 2008 17:47:46 -0700 (PDT) Message-ID: <290865fd0810141747l39b80e2ao329c8212061a67c1@mail.gmail.com> Date: Tue, 14 Oct 2008 17:47:46 -0700 From: "alan yang" 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: tracing pf code 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, 15 Oct 2008 00:47:47 -0000 hello, for pf port on freebsd, i would like to trace the packet flow, looking at from ether_input -> etiher_demux -> ip_input -> tcp_input where / how pf handles / process the packet. can people shed some lights where to start. really appreciate. From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 01:02: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 DBAA3106568B for ; Wed, 15 Oct 2008 01:02:06 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.freebsd.org (Postfix) with ESMTP id 69E298FC16 for ; Wed, 15 Oct 2008 01:02:06 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-035-178.pools.arcor-ip.net [88.66.35.178]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1Kpum50C1j-0000nk; Wed, 15 Oct 2008 03:02:05 +0200 Received: (qmail 6889 invoked from network); 15 Oct 2008 01:02:04 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by laiers.local with SMTP; 15 Oct 2008 01:02:04 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Wed, 15 Oct 2008 03:02:03 +0200 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <290865fd0810141747l39b80e2ao329c8212061a67c1@mail.gmail.com> In-Reply-To: <290865fd0810141747l39b80e2ao329c8212061a67c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810150302.03949.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18x20wndIRi/+iCaxr2pwRxwWCOO2N722BGCmc EfobJo0yTFRHI9ce0wT2HL0iKyxCYPdTKD+WgU8/w99QK8ySTo VTkA6cx77CW7yLAMSR+8Q== Cc: alan yang , freebsd-questions@freebsd.org Subject: Re: tracing pf code 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, 15 Oct 2008 01:02:06 -0000 On Wednesday 15 October 2008 02:47:46 alan yang wrote: > hello, > > for pf port on freebsd, i would like to trace the packet flow, looking > at from ether_input -> etiher_demux -> ip_input -> tcp_input where / > how pf handles / process the packet. > > can people shed some lights where to start. really appreciate. ps hooks into the pfil(9) hook point in ip[6]_{in,out}put(). Look for calls to "pfil_run_hooks" in the code. From there the call proceeds to the hook functions defined in pf_ioctl.c pf_check_{in,out}[6]. The processing inside pf is best understood by looking at the following chart: http://homepage.mac.com/quension/pf/flow.png Is this the information you are looking for? -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 02:41:39 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 CCBAC1065686 for ; Wed, 15 Oct 2008 02:41:39 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 7FE708FC14 for ; Wed, 15 Oct 2008 02:41:39 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so603207ywe.13 for ; Tue, 14 Oct 2008 19:41:38 -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=5EqdjOsZVNqrHQuGGCs+2nupF8MLtxWnfXPaI2gOLUM=; b=kduOWOuu/il2wmvydLBQQ9fBJ56fj3GfrwqHtulL6nm1dsfKJ2nLsLi+HBzbMzemlj +fSa9NQ8AKDGayurp8+qGPmt5k8le/ZZxaH/G8HEb0So3r8qcBSbRIlaD7I3ihfcbjtU j5Xij+/51yeGwxl+MS0Sr9pLsbVGSSqb/0IKg= 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=r5+IJI1VFVMQ45RX4qPyeZ5CusPvfrEoaCCaBSwgNm6l+PGKRl4l3cVa/HSBB42UmP 3helkBTxm8B9dVQDTGqgWOkWQAOqKo3qhsSVb7xdA9bTfQAt7VX72dUA+42jIB75JwaR ooidcigp7UVA8fluWrbDb+JG2E8x3VQmfTek8= Received: by 10.150.134.21 with SMTP id h21mr927685ybd.181.1224038498711; Tue, 14 Oct 2008 19:41:38 -0700 (PDT) Received: by 10.150.191.21 with HTTP; Tue, 14 Oct 2008 19:41:38 -0700 (PDT) Message-ID: <290865fd0810141941l7c63a8e6l1c9c4839518c9ac8@mail.gmail.com> Date: Tue, 14 Oct 2008 19:41:38 -0700 From: "alan yang" To: "Max Laier" In-Reply-To: <200810150302.03949.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <290865fd0810141747l39b80e2ao329c8212061a67c1@mail.gmail.com> <200810150302.03949.max@love2party.net> Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: tracing pf code 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, 15 Oct 2008 02:41:39 -0000 yes, exact. thanks a lot! On Tue, Oct 14, 2008 at 6:02 PM, Max Laier wrote: > On Wednesday 15 October 2008 02:47:46 alan yang wrote: >> hello, >> >> for pf port on freebsd, i would like to trace the packet flow, looking >> at from ether_input -> etiher_demux -> ip_input -> tcp_input where / >> how pf handles / process the packet. >> >> can people shed some lights where to start. really appreciate. > > ps hooks into the pfil(9) hook point in ip[6]_{in,out}put(). Look for calls > to "pfil_run_hooks" in the code. From there the call proceeds to the hook > functions defined in pf_ioctl.c pf_check_{in,out}[6]. > > The processing inside pf is best understood by looking at the following chart: > http://homepage.mac.com/quension/pf/flow.png > > Is this the information you are looking for? > > -- > /"\ Best regards, | mlaier@freebsd.org > \ / Max Laier | ICQ #67774661 > X http://pf4freebsd.love2party.net/ | mlaier@EFnet > / \ ASCII Ribbon Campaign | Against HTML Mail and News > From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 13:07:53 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 AD2681065688 for ; Wed, 15 Oct 2008 13:07:53 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from sideburn.lancs.ac.uk (sideburn.lancs.ac.uk [148.88.17.22]) by mx1.freebsd.org (Postfix) with ESMTP id 72BF78FC26 for ; Wed, 15 Oct 2008 13:07:53 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from mail02.lancs.ac.uk ([148.88.1.54]) by sideburn.lancs.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Kq5lp-00062C-AN for hackers@freebsd.org; Wed, 15 Oct 2008 13:46:33 +0100 Received: from ina044000004.lancs.ac.uk ([148.88.224.46]) by mail02.lancs.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Kq5lo-0006HI-Tz for hackers@freebsd.org; Wed, 15 Oct 2008 13:46:32 +0100 From: Matthew Jakeman Organization: Lancaster University To: hackers@freebsd.org Date: Wed, 15 Oct 2008 13:43:28 +0100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810151343.28136.m.jakeman@lancaster.ac.uk> Cc: Subject: Call function on sysctl value change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m.jakeman@lancaster.ac.uk List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 13:07:53 -0000 Hi all, I was wondering if it is possible to call a function when a sysctl value is changed. I have added a few sysctl int variables to the kernel and for some of these i only want certain values to be acceptable as input depending on some conditions. I would like to be able to call a function if possible, to validate the value entered via the sysctl command. Thanks in advance Matt From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 13:41: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 E8DB91065687 for ; Wed, 15 Oct 2008 13:41:28 +0000 (UTC) (envelope-from notif+AIVFOp2uwduQR0krW5Ouop6uOfmsuPOHGYpwgqvqcwusrgrI7g68gt6wl3wbwYddTgnAuh6HuYmsxdTdUxtXo86HfJKwI9F@bounce.linkedin.com) Received: from mail12-a-ab.linkedin.com (mail12-a-ab.linkedin.com [208.111.172.106]) by mx1.freebsd.org (Postfix) with ESMTP id CFEE68FC13 for ; Wed, 15 Oct 2008 13:41:28 +0000 (UTC) (envelope-from notif+AIVFOp2uwduQR0krW5Ouop6uOfmsuPOHGYpwgqvqcwusrgrI7g68gt6wl3wbwYddTgnAuh6HuYmsxdTdUxtXo86HfJKwI9F@bounce.linkedin.com) DomainKey-Signature: s=prod; d=linkedin.com; c=nofws; q=dns; h=Sender:Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; b=W3/7cB5AaOfK8ZwNjooN4P77wbp81Y0vg9bf2vSOTpMiLEjOlT0aHrWE yI018/fKyjvf1+5EFlywmIvcq4aSW8wSrFikvzPZLWwtWMHXU5gj88pqA HAIaZydA8xWgr0t; Sender: messages-noreply@bounce.linkedin.com Received: from esv4-com11.prod.linkedin.com (HELO esv4-com11.prod) ([172.17.34.162]) by mail12-a-ab.linkedin.com with ESMTP; 15 Oct 2008 13:13:07 +0000 Date: Wed, 15 Oct 2008 06:13:07 -0700 (PDT) From: =?UTF-8?Q?Ot=C3=A1vio_Fernandes?= To: FreeBSD Hackers Message-ID: <1062810545.2134127.1224076387167.JavaMail.app@esv4-com11.prod> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Invitation to connect on LinkedIn 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, 15 Oct 2008 13:41:29 -0000 LinkedIn ------------ =20 FreeBSD, I'd like to add you to my professional network on LinkedIn. - Ot=C3=A1vio Learn more: https://www.linkedin.com/e/isd/380376003/wEFbdMkx/ ------------------------------------------ What is LinkedIn and why should you join? http://learn.linkedin.com/what-is-linkedin/ =20 ------ (c) 2008, LinkedIn Corporation From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 14:03:05 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 01D751065687 for ; Wed, 15 Oct 2008 14:03:05 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B7F478FC0C for ; Wed, 15 Oct 2008 14:03:04 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id F15326D443; Wed, 15 Oct 2008 14:03:03 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id E1094844BA; Wed, 15 Oct 2008 16:03:03 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: m.jakeman@lancaster.ac.uk References: <200810151343.28136.m.jakeman@lancaster.ac.uk> Date: Wed, 15 Oct 2008 16:03:03 +0200 In-Reply-To: <200810151343.28136.m.jakeman@lancaster.ac.uk> (Matthew Jakeman's message of "Wed, 15 Oct 2008 13:43:28 +0100") Message-ID: <8663nu0xd4.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: Call function on sysctl value change 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, 15 Oct 2008 14:03:05 -0000 Matthew Jakeman writes: > I was wondering if it is possible to call a function when a sysctl value = is=20 > changed. grep -r SYSCTL_ADD_PROC /usr/src/sys DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 14:03:46 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 420161065689 for ; Wed, 15 Oct 2008 14:03:46 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 017BB8FC21 for ; Wed, 15 Oct 2008 14:03:45 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 3B2CD6D445; Wed, 15 Oct 2008 14:03:45 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 2AA06844BA; Wed, 15 Oct 2008 16:03:45 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: m.jakeman@lancaster.ac.uk References: <200810151343.28136.m.jakeman@lancaster.ac.uk> <8663nu0xd4.fsf@ds4.des.no> Date: Wed, 15 Oct 2008 16:03:45 +0200 In-Reply-To: <8663nu0xd4.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Wed, 15 Oct 2008 16:03:03 +0200") Message-ID: <861vyi0xby.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: Call function on sysctl value change 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, 15 Oct 2008 14:03:46 -0000 Dag-Erling Sm=C3=B8rgrav writes: > Matthew Jakeman writes: > > I was wondering if it is possible to call a function when a sysctl valu= e is=20 > > changed. > grep -r SYSCTL_ADD_PROC /usr/src/sys even better: 'man SYSCTL_ADD_PROC' will answer all your questions. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 14:17: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 A553F1065694 for ; Wed, 15 Oct 2008 14:17: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 24F898FC26 for ; Wed, 15 Oct 2008 14:17: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.3/8.14.3) with ESMTP id m9FEHUS8037918; Wed, 15 Oct 2008 16:17:31 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id m9FEHUEn037917; Wed, 15 Oct 2008 16:17:30 +0200 (CEST) (envelope-from olli) Date: Wed, 15 Oct 2008 16:17:30 +0200 (CEST) Message-Id: <200810151417.m9FEHUEn037917@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, m.jakeman@lancaster.ac.uk In-Reply-To: <200810151343.28136.m.jakeman@lancaster.ac.uk> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (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]); Wed, 15 Oct 2008 16:17:31 +0200 (CEST) Cc: Subject: Re: Call function on sysctl value change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, m.jakeman@lancaster.ac.uk List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 14:17:33 -0000 Matthew Jakeman wrote: > I was wondering if it is possible to call a function when a sysctl value is > changed. I have added a few sysctl int variables to the kernel and for some > of these i only want certain values to be acceptable as input depending on > some conditions. I would like to be able to call a function if possible, to > validate the value entered via the sysctl command. Yes, you can do this with a "PROC" type sysctl. For example, look at sysctl_hlt_cpus() in sys/i386/i386/mp_machdep.c. 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 "Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard?" -- Sid on userfriendly.org by Illiad, 2007-06-20 From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 14:32: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 9D0A4106568A for ; Wed, 15 Oct 2008 14:32:57 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from pigwidgeon.lancs.ac.uk (pigwidgeon.lancs.ac.uk [148.88.0.67]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB0F8FC2C for ; Wed, 15 Oct 2008 14:32:57 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from mail02.lancs.ac.uk ([148.88.1.54]) by pigwidgeon.lancs.ac.uk with esmtp (Exim 4.60) (envelope-from ) id 1Kq77L-0004W1-2B for freebsd-hackers@freebsd.org; Wed, 15 Oct 2008 15:12:51 +0100 Received: from ina044000004.lancs.ac.uk ([148.88.224.46]) by mail02.lancs.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Kq77K-0005AH-LH for freebsd-hackers@freebsd.org; Wed, 15 Oct 2008 15:12:50 +0100 From: Matthew Jakeman Organization: Lancaster University To: freebsd-hackers@freebsd.org Date: Wed, 15 Oct 2008 15:09:45 +0100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <200810151343.28136.m.jakeman@lancaster.ac.uk> <8663nu0xd4.fsf@ds4.des.no> <861vyi0xby.fsf@ds4.des.no> In-Reply-To: <861vyi0xby.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810151509.45363.m.jakeman@lancaster.ac.uk> Subject: Re: Call function on sysctl value change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m.jakeman@lancaster.ac.uk List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 14:32:57 -0000 On Wednesday 15 October 2008, Dag-Erling Sm=C3=B8rgrav wrote: > Dag-Erling Sm=C3=B8rgrav writes: > > Matthew Jakeman writes: > > > I was wondering if it is possible to call a function when a sysctl > > > value is changed. > > > > grep -r SYSCTL_ADD_PROC /usr/src/sys > > even better: 'man SYSCTL_ADD_PROC' will answer all your questions. > > DES Thanks for that. It looks like just the job. Now exactly sure how I missed = it=20 in the first place but thanks... From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 05:29: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 41DFB1065695 for ; Thu, 16 Oct 2008 05:29:49 +0000 (UTC) (envelope-from que_deseja@hotmail.com) Received: from blu0-omc2-s10.blu0.hotmail.com (blu0-omc2-s10.blu0.hotmail.com [65.55.111.85]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5228FC1A for ; Thu, 16 Oct 2008 05:29:48 +0000 (UTC) (envelope-from que_deseja@hotmail.com) Received: from BLU126-W38 ([65.55.111.71]) by blu0-omc2-s10.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 15 Oct 2008 22:17:47 -0700 Message-ID: X-Originating-IP: [98.192.204.41] From: Desmond Chapman To: Date: Thu, 16 Oct 2008 05:17:47 +0000 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 16 Oct 2008 05:17:47.0853 (UTC) FILETIME=[872BF7D0:01C92F4E] Subject: need help with vbox 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, 16 Oct 2008 05:29:49 -0000 It's dependent upon kbuild. Since the developers have no intention of fixin= g the issue=2C I would like a tutorial on converting the kmk file to a norm= al Makefile. _________________________________________________________________ See how Windows connects the people=2C information=2C and fun that are part= of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/= From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 09:11:41 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 8C5021065686 for ; Thu, 16 Oct 2008 09:11:41 +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 3C71F8FC1A for ; Thu, 16 Oct 2008 09:11:40 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KqOtL-00026W-BQ for freebsd-hackers@freebsd.org; Thu, 16 Oct 2008 09:11:35 +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 ; Thu, 16 Oct 2008 09:11:35 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2008 09:11:35 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 16 Oct 2008 11:11:37 +0200 Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF061B330359B9933AF1150A0" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: need help with vbox 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, 16 Oct 2008 09:11:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF061B330359B9933AF1150A0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Desmond Chapman wrote: > It's dependent upon kbuild. Since the developers have no intention of f= ixing the issue, I would like a tutorial on converting the kmk file to a = normal Makefile. What is kmk? Google only shows it's used with VirtualBox and nowhere else. If it's something the authors of VirtualBox created, you'll have to ask them. --------------enigF061B330359B9933AF1150A0 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) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI9wVJldnAQVacBcgRAqOqAKDu7q6tiKyw1fvmhIsfEmn02maaIwCg6ZvU gn9bOJQKFvAXV2cjxpC11NA= =40Fd -----END PGP SIGNATURE----- --------------enigF061B330359B9933AF1150A0-- From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 09:27: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 32C9410656A2; Thu, 16 Oct 2008 09:27:45 +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 C47C58FC13; Thu, 16 Oct 2008 09:27:44 +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 3B84B30126; Thu, 16 Oct 2008 10:27:42 +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 [IPv6:2a01:348:10f:0:80b0:f5c9:af35:868f] (unknown [IPv6:2a01:348:10f:0:80b0:f5c9:af35:868f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTP; Thu, 16 Oct 2008 10:27:42 +0100 (BST) Message-ID: <48F70904.8000702@cran.org.uk> Date: Thu, 16 Oct 2008 10:27:32 +0100 From: Bruce Cran User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Ivan Voras References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: need help with vbox 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, 16 Oct 2008 09:27:45 -0000 Ivan Voras wrote: > Desmond Chapman wrote: > >> It's dependent upon kbuild. Since the developers have no intention of fixing the issue, I would like a tutorial on converting the kmk file to a normal Makefile. >> > > What is kmk? Google only shows it's used with VirtualBox and nowhere > else. If it's something the authors of VirtualBox created, you'll have > to ask them. > Apparently it's the tool used to build kbuild (http://svn.netlabs.org/kbuild/wiki/kmk, http://kbuild.sourceforge.net/) projects. It seems it's what the Linux kernel build system uses. -- Bruce From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 09:32: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 2B091106568B for ; Thu, 16 Oct 2008 09:32:51 +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 D5A3C8FC1B for ; Thu, 16 Oct 2008 09:32:50 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KqPDt-0002yD-CQ for freebsd-hackers@freebsd.org; Thu, 16 Oct 2008 09:32:49 +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 ; Thu, 16 Oct 2008 09:32:49 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2008 09:32:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 16 Oct 2008 11:32:48 +0200 Lines: 50 Message-ID: References: <48F70904.8000702@cran.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCE8805F0A56B74ECD6324679" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <48F70904.8000702@cran.org.uk> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: need help with vbox 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, 16 Oct 2008 09:32:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCE8805F0A56B74ECD6324679 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bruce Cran wrote: > Ivan Voras wrote: >> Desmond Chapman wrote: >> =20 >>> It's dependent upon kbuild. Since the developers have no intention of= >>> fixing the issue, I would like a tutorial on converting the kmk file >>> to a normal Makefile. >>> =20 >> >> What is kmk? Google only shows it's used with VirtualBox and nowhere >> else. If it's something the authors of VirtualBox created, you'll have= >> to ask them. >> =20 >=20 > Apparently it's the tool used to build kbuild > (http://svn.netlabs.org/kbuild/wiki/kmk, http://kbuild.sourceforge.net/= ) > projects. It seems it's what the Linux kernel build system uses. Well, this seems to sum it up: """ Why not use vanilla GNU make? There are several reasons: =2E.. # Finally, because we can. :-) """ --------------enigCE8805F0A56B74ECD6324679 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) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI9wpAldnAQVacBcgRAjY+AJ9++bYWu/Qd6vC7DdRAZojoImb/7ACePL9c r/hu+A0r+9sl4ktKqxAZYUA= =U2sT -----END PGP SIGNATURE----- --------------enigCE8805F0A56B74ECD6324679-- From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 13:47: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 19AB8106568A for ; Thu, 16 Oct 2008 13:47:19 +0000 (UTC) (envelope-from que_deseja@hotmail.com) Received: from blu0-omc3-s3.blu0.hotmail.com (blu0-omc3-s3.blu0.hotmail.com [65.55.116.78]) by mx1.freebsd.org (Postfix) with ESMTP id D6B478FC1A for ; Thu, 16 Oct 2008 13:47:18 +0000 (UTC) (envelope-from que_deseja@hotmail.com) Received: from BLU126-W4 ([65.55.116.73]) by blu0-omc3-s3.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 16 Oct 2008 06:47:18 -0700 Message-ID: X-Originating-IP: [98.192.204.41] From: Desmond Chapman To: Ivan Voras Date: Thu, 16 Oct 2008 13:47:18 +0000 Importance: Normal In-Reply-To: References: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 16 Oct 2008 13:47:18.0180 (UTC) FILETIME=[B481AE40:01C92F95] Cc: freebsd-hackers@freebsd.org Subject: RE: need help with vbox 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, 16 Oct 2008 13:47:19 -0000 ---------------------------------------- > To: freebsd-hackers@freebsd.org > From: ivoras@freebsd.org > Date: Thu=2C 16 Oct 2008 11:11:37 +0200 > Subject: Re: need help with vbox >=20 > Desmond Chapman wrote: >> It's dependent upon kbuild. Since the developers have no intention of fi= xing the issue=2C I would like a tutorial on converting the kmk file to a n= ormal Makefile. >=20 > What is kmk? Google only shows it's used with VirtualBox and nowhere > else. If it's something the authors of VirtualBox created=2C you'll have > to ask them. >=20 That's the problem. I started maintaining the kBuild port which is also par= t of virtualbox and makes the kmk type files. Since kBuild is marked as bro= ken=2C and for good reason.=20 Anyway=2C thanks for the response.=20 _________________________________________________________________ Want to read Hotmail messages in Outlook? The Wordsmiths show you how. http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cn= s!20EE04FBC541789!167.entry?ocid=3DTXT_TAGLM_WL_hotmail_092008= From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 13:54:42 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 501DE1065686 for ; Thu, 16 Oct 2008 13:54:42 +0000 (UTC) (envelope-from que_deseja@hotmail.com) Received: from blu0-omc3-s22.blu0.hotmail.com (blu0-omc3-s22.blu0.hotmail.com [65.55.116.97]) by mx1.freebsd.org (Postfix) with ESMTP id 16D6E8FC0C for ; Thu, 16 Oct 2008 13:54:41 +0000 (UTC) (envelope-from que_deseja@hotmail.com) Received: from BLU126-W35 ([65.55.116.74]) by blu0-omc3-s22.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 16 Oct 2008 06:54:41 -0700 Message-ID: X-Originating-IP: [98.192.204.41] From: Desmond Chapman To: Ivan Voras Date: Thu, 16 Oct 2008 13:54:41 +0000 Importance: Normal In-Reply-To: References: <48F70904.8000702@cran.org.uk> Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 16 Oct 2008 13:54:41.0633 (UTC) FILETIME=[BCD33D10:01C92F96] Cc: freebsd-hackers@freebsd.org Subject: RE: need help with vbox 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, 16 Oct 2008 13:54:42 -0000 Gentleman=2C I agree with both of you. Thanks for everything. ---------------------------------------- > To: freebsd-hackers@freebsd.org > From: ivoras@freebsd.org > Date: Thu=2C 16 Oct 2008 11:32:48 +0200 > Subject: Re: need help with vbox >=20 > Bruce Cran wrote: >> Ivan Voras wrote: >>> Desmond Chapman wrote: >>> =20 >>>> It's dependent upon kbuild. Since the developers have no intention of >>>> fixing the issue=2C I would like a tutorial on converting the kmk file >>>> to a normal Makefile. >>>> =20 >>> >>> What is kmk? Google only shows it's used with VirtualBox and nowhere >>> else. If it's something the authors of VirtualBox created=2C you'll hav= e >>> to ask them. >>> =20 >>=20 >> Apparently it's the tool used to build kbuild >> (http://svn.netlabs.org/kbuild/wiki/kmk=2C http://kbuild.sourceforge.net= /) >> projects. It seems it's what the Linux kernel build system uses. >=20 > Well=2C this seems to sum it up: >=20 > """ > Why not use vanilla GNU make? There are several reasons: > ... > # Finally=2C because we can. :-) > """ >=20 _________________________________________________________________ When your life is on the go=97take your life with you. http://clk.atdmt.com/MRT/go/115298558/direct/01/= From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 14:43: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 6608B106569E for ; Thu, 16 Oct 2008 14:43:08 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by mx1.freebsd.org (Postfix) with ESMTP id 1C0EB8FC14 for ; Thu, 16 Oct 2008 14:43:07 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: by gxk9 with SMTP id 9so7307160gxk.19 for ; Thu, 16 Oct 2008 07:43:07 -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=3C6L0wTBBjf0dErhf9B5QBMsGQdc+cHTvUzl439/myU=; b=KL7F76iyzBrzD64WbIhIEm4cPvvMaRPe5Kn8QYke2X7f6gzWmDYDKVLaHzG1y+X7cp 6e6mmrbY+ZKKXQRKWgymUqapuMyoq9ip89lSRBU4lAwf4TXwB4AAb4QM7z9lAn4/tHvi z3s04ONKTBUZPbgx3B62C6mGEXzSsFgX3lC7I= 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=m+SKSop8JEgcUS8hmj0VhV1AhsBzWrFzofj7+jDhLhq2wA/hFeBR3+H71tnSzTDa5f O5s1ZiTXA3Ewl9d3Lx/DeGpO+Jc0wfQQWEu2SFwN2ZXAfk/XeAViaDsXduBZqEPWq1dC FJUtJZPXynA0c3+TutuLmHvv0Q7ZPH+Lbp6LM= Received: by 10.103.46.9 with SMTP id y9mr1439480muj.107.1224168185909; Thu, 16 Oct 2008 07:43:05 -0700 (PDT) Received: by 10.103.141.5 with HTTP; Thu, 16 Oct 2008 07:43:05 -0700 (PDT) Message-ID: Date: Thu, 16 Oct 2008 20:13:05 +0530 From: Srinivas To: freebsd-drivers@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: [Info required] PC Architecture 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, 16 Oct 2008 14:43:08 -0000 Hello, I have a theoretical understanding of the PC architecture and the details but have no idea of how things go under the hood(for a real computer). I think it would be very useful for me(as well as beginners) to know how things work real-time. Even though it is not a correct mailing list, I am posting this because you guys are the real hackers and know a lot about how things work inside. I would like to know about the following. Plz add anything which you think will be helpful for the beginners. 1. Schematic diagrams of motherboards 2. How a bios detects various kinds of buses 3. How bios and os detects the different devices present in the system and what are their capabilities 4. How interrupts are routed inside 5. Groups where we can communicate related information I searched a lot in the internet but I am not able to find a good place or info that gives the detailed information. Thanks, Srinivas From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 14:48: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 C8764106568E for ; Thu, 16 Oct 2008 14:48:17 +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 7DECF8FC26 for ; Thu, 16 Oct 2008 14:48:16 +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 CAC1AFDD2; Thu, 16 Oct 2008 16:48:14 +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 yk8NRTEEm0E1; Thu, 16 Oct 2008 16:48:13 +0200 (CEST) Received: by nexus.in-nomine.org (Postfix, from userid 1000) id AE307FDD1; Thu, 16 Oct 2008 16:48:13 +0200 (CEST) Date: Thu, 16 Oct 2008 16:48:13 +0200 From: Jeroen Ruigrok van der Werven To: Srinivas Message-ID: <20081016144813.GY98121@nexus.in-nomine.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organisation: Ninth Circle Enterprises User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: [Info required] PC Architecture 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, 16 Oct 2008 14:48:17 -0000 -On [20081016 16:43], Srinivas (mboxindia@gmail.com) wrote: >I have a theoretical understanding of the PC architecture and the >details but have no idea of how things go under the hood(for a real >computer). http://www.amazon.com/dp/0123706068/ - Computer Organization and Design: The Hardware/Software Interface by Patterson and Hennessy http://www.amazon.com/dp/0131485210/ - Structured Computer Organization by Tanenbaum That should answer most, if not all, of your questions on that subject. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Seek not death in the error of your life: and pull not upon yourselves destruction with the works of your hands... From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 15:11:41 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 3300A106568E for ; Thu, 16 Oct 2008 15:11:41 +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 9824D8FC1B for ; Thu, 16 Oct 2008 15:11:40 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KqUVm-0000Ar-5S for freebsd-hackers@freebsd.org; Thu, 16 Oct 2008 15:11:38 +0000 Received: from 78-1-198-189.adsl.net.t-com.hr ([78.1.198.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2008 15:11:38 +0000 Received: from ivoras by 78-1-198-189.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2008 15:11:38 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 16 Oct 2008 17:11:06 +0200 Lines: 80 Message-ID: References: <48F70904.8000702@cran.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig65A92686CEEA2C5401BABFD1" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-198-189.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: need help with vbox 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, 16 Oct 2008 15:11:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig65A92686CEEA2C5401BABFD1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Desmond Chapman wrote: > Gentleman, I agree with both of you. > Thanks for everything. Sorry if it seemed terse - I wasn't trying to discourage you. Translating from one Makefile type into another is similar to translating from one programming language to another - you need someone who knows both languages very well. I don't know how many people know both kmk and FreeBSD make well enough to help you (for that matter, both systems have people dedicated to makefiles since they can be very complex, so the majority of developers don't know the full magic behind the makefiles). Since you probably can't use much of the Linux source for your FreeBSD kernel module (you'll probably have to do most of it from scratch), you'd do much better to abandon kmk and write your FreeBSD makefiles with FreeBSD make. You'll have to write new makefiles anyway. On the other hand (I'm not a makefile expert), browsing through http://svn.netlabs.org/kbuild/wiki/kmk it looks like most "new" features are present in FreeBSD's make, though in a different form (and were probably implemented ages ago so they just went ahead and reinvented the wheel again). For example: # Explicit multi-target rules, i.e. explicit make rules that output more than one file. make(1): "Dependency lines consist of one or more targets, an operator...= " # Prepend assignment operator I think you can do this with regular variable expansion. # The special .NOTPARALLEL goal has been extended... The .NOTPARALLEL goal exists, but it looks like it's not "extended". Anyway it doesn't matter. # It has some extra predefined variables: You'll have to simulate those with regular variables. # It has a few new builtin functions... FreeBSD's make doesn't have many builtin functions but arithmetic operations work by default (".if $a < 10"). There are no binary operators. Some string functions are present as operators (like "O - Order every word in the variable alphabetically"). You can simulate many functions and operators by invoking shell scripts. # A bunch of builtin utilities which will be invoked without spawning new process or shell. Most of these are taken from BSD. (cp, echo, cat, append...) Though it says they came from BSD, I can't find anything about builtin utilities in make(1). Just use regular shell utilities. --------------enig65A92686CEEA2C5401BABFD1 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj3WY8ACgkQldnAQVacBciHJgCeMOoE3sZvwSLmb4eQ+Q6ffN42 i5sAn3m+nKYNGHaWhaaWOgO/ioc6a5+4 =QxY2 -----END PGP SIGNATURE----- --------------enig65A92686CEEA2C5401BABFD1-- From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 15:45: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 8797A106568B for ; Thu, 16 Oct 2008 15:45:18 +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 066468FC3A for ; Thu, 16 Oct 2008 15:45:17 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KqV2L-0001fa-3V for freebsd-hackers@freebsd.org; Thu, 16 Oct 2008 15:45:17 +0000 Received: from 78-1-198-189.adsl.net.t-com.hr ([78.1.198.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2008 15:45:17 +0000 Received: from ivoras by 78-1-198-189.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2008 15:45:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 16 Oct 2008 17:44:55 +0200 Lines: 100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2AA7051B38EF11878696AC4B" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-198-189.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: [Info required] PC Architecture 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, 16 Oct 2008 15:45:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2AA7051B38EF11878696AC4B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Srinivas wrote: > Hello, >=20 > I have a theoretical understanding of the PC architecture and the > details but have no idea of how things go under the hood(for a real > computer). I think it would be very useful for me(as well as > beginners) to know how things work real-time. Even though it is not a > correct mailing list, I am posting this because you guys are the real > hackers and know a lot about how things work inside. As Jeroen said, to get any kind of useful knowledge (e.g. something you can do real work with) you should read the books on the topics. These topics are, from one side, very complex, and from the other, very useless unless you're going to program device drivers and low level kernel facilities. They are rarely (if ever) needed even for hard-core sysadmin work and even most embedded work. If you just want a birds-eye overview, I'll try to say something about the topics (and wait for laughter from the really knowledgeable people :) ). > I would like to know about the following. Plz add anything which you > think will be helpful for the beginners. > 1. Schematic diagrams of motherboards This won't help you in any way except if you need to design motherboards, in which case you need a multi-year education. Any high level overview will be equally good, but the story usually goes "You have this thing called the CPU, right, and you have these other things called memory, the north bridge, the south bridge, the PCI slots. They are all connected with various buses (and I mean really various). The north bridge has the memory controller and some control of the low-level CPU functions. The south bridge has the PCI controller and various other integrated controllers like IDE, COM, sometimes sound, network & graphics". Install "dmidecode" from ports/sysutils and if you're lucky enough to have a good motherboard, you'll see what's connected to what (and how many volts are used by it). > 2. How a bios detects various kinds of buses It usually asks the bus controllers what they know. It knows about the low-level bus controllers from its own embedded data. The BIOS, of course, knows how to communicate with the devices it contacts directly, because it's created for the purpose of supporting them. Note that the "BIOS" is just a software program, executed on the CPU as any other, when the machine boots. Once a modern operating system is loaded, everything is done by its device drivers and the BIOS is almost never accessed after that. > 3. How bios and os detects the different devices present in the system > and what are their capabilities It asks every device found on a bus, found by a bus controller, what is it and what it does. There are really few capabilities that the devices themselves have to say about themselves at this point - most of it is low level stuff like electrical capabilities, what connectors and interrupts they have. Even though devices have broad "groups" of functionalities (like "Ethernet controller") they can report back, the OS and the BIOS cannot really do anything with them - this is where drivers come along. When a new device is found, internal tables are searched to discover if there's a driver that can handle the device (devices are identified by numbers; run "pciconf -lv" for examples). If there is, the driver is left to do with the device as it sees fit. > 4. How interrupts are routed inside Some of the chips or parts of the north bridge chipset are "interrupt controllers", which are programmed by the BIOS and the OS to map device interrupts (i.e. "pci bus X, device Y, function Z") to CPU/software interrupts (like "irq 18"). These interrupts are then handled by specific drivers (run "vmstat -i" for a table which interrupts are used by what driver). > 5. Groups where we can communicate related information I don't know any. Device driver writers or hardware designers would be my best guess. This particular group is read by FreeBSD developers, which are mostly software developers - you'll probably want to seek direct answers someplace that's specialized for the topics. --------------enig2AA7051B38EF11878696AC4B 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj3YXgACgkQldnAQVacBcgL9ACg9sWHQimS1AkDUizQET6XXpA+ kqMAoIn7F+PU+sGnRSyo9Q326fA0DBfS =NKGS -----END PGP SIGNATURE----- --------------enig2AA7051B38EF11878696AC4B-- From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 15:51:46 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 AFF431065689 for ; Thu, 16 Oct 2008 15:51:46 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao106.cox.net (eastrmmtao106.cox.net [68.230.240.48]) by mx1.freebsd.org (Postfix) with ESMTP id 39E248FC2C for ; Thu, 16 Oct 2008 15:51:46 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081016150508.UKKV23768.eastrmmtao105.cox.net@eastrmimpo02.cox.net>; Thu, 16 Oct 2008 11:05:08 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo02.cox.net with bizsmtp id TT581a0014dCcn002T587k; Thu, 16 Oct 2008 11:05:08 -0400 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=8-OEHsVFlL1l9QFwqVUA:9 a=DkZ8peKw2ceR23-oXt8A:7 a=j43LIwU1deZoPfPAsBL-Uvqy--QA:4 a=EfJqPEOeqlMA:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Thu, 16 Oct 2008 15:05:11 -0000 To: "Desmond Chapman" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.60 (Linux) Cc: freebsd-hackers@freebsd.org Subject: Re: need help with vbox 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, 16 Oct 2008 15:51:46 -0000 On Thu, 16 Oct 2008 05:17:47 -0000, Desmond Chapman wrote: > > It's dependent upon kbuild. Since the developers have no intention of > fixing the issue, I would like a tutorial on converting the kmk file to > a normal Makefile. I think you are barking at the wrong tree. :-) I don't think the issue is in kBuild. It looks like an issue is in devel/kbuild/Makefile in the do-install target part. http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.6.20080731104323/kBuild-0.1.3.log ---------------------------------------- (cd ${WRKSRC}/out/freebsd.${MACHINE_ARCH}/release${PREFIX}/bin && ${COPYTREE_BIN} \* ${PREFIX}/bin) ---------------------------------------- ---------------------------------------- # make -V COPYTREE_BIN /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -R root:wheel $1 && /usr/bin/find $1 -type d -exec chmod 755 {} \; && /usr/bin/find $1 -type f -exec chmod 555 {} \;' -- ---------------------------------------- So.. See that $1, it is ${PREFIX}/bin. It's a bug. The COPYTREE_BIN can't have ${PREFIX}/bin. I suggest you to not use COPYTREE_BIN, so do the different method should solve kbuild ports problem. I personal haven't use COPYTREE_* before, so possible misuse COPYTREE_BIN or just can't have ${PREFIX}/bin (uncheck in bsd.port.mk/document). BTW: Add CC'ing to freebsd-ports@ to make its search useful. Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 16:36:49 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 706BE106568C for ; Thu, 16 Oct 2008 16:36:49 +0000 (UTC) (envelope-from reallost1@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.188]) by mx1.freebsd.org (Postfix) with ESMTP id 041B88FC28 for ; Thu, 16 Oct 2008 16:36:48 +0000 (UTC) (envelope-from reallost1@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so44716gve.39 for ; Thu, 16 Oct 2008 09:36:47 -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:reply-to :sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; bh=/qY6jfUk8Bom9XuGXTcLO1/QJ1bWFiHYxjCsaZ0Gj8Q=; b=saX8KYhar/ivBjLPYgFdUgLrpiNO2DxzsFXX7qU/y0Cet9GZWPzfzdBY3CvJ6GqinZ ZppUFhzlIc4nsqPeTfgJ8J+9QHcolk4dvWC0iOw+p2X6AEiXKCj/KdaiqH02oLVwGKwV IQoHmfg/4EHNdLKBjnCdg3qBLJRLmlJL8ocYE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:mime-version :content-type:content-transfer-encoding:content-disposition :x-google-sender-auth; b=Tj6wTWLpgLqBPTZ4eJDXjarJd819nQFtrW4kvH5leFopd+CH9qKGfB3W+h/SuNeuoF gM1Ep5jU0Tau6joeFXE2DbWGmC5f6Y9g6U/P9kRCGrybrUjitTzGZIRUXCE3k1ofiEYA CpKpwGbT/x6P0mOtGB3EqB2N8l0PbxLnW4hIo= Received: by 10.86.100.19 with SMTP id x19mr2824524fgb.70.1224173634673; Thu, 16 Oct 2008 09:13:54 -0700 (PDT) Received: by 10.86.58.7 with HTTP; Thu, 16 Oct 2008 09:13:54 -0700 (PDT) Message-ID: <8f6775e00810160913y1f30e936ic9c514547ef0827@mail.gmail.com> Date: Thu, 16 Oct 2008 11:13:54 -0500 From: "Chris Coleman" Sender: reallost1@gmail.com To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 35492119af98a9dc Cc: Subject: smbfs hang X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chrisc@vmunix.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2008 16:36:49 -0000 I'm doing a large transfer from an SMB mounted drive, about 2TB of files. After about 250G, it hanging. Of course any process that tries to access that drive hangs as well. Is there anyway to get those processes killed off and remount the drive without rebooting? I haven't had much luck so far. They don't seem to want to die. -- Chris Coleman -- http://songnumbers.com From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 17:17:31 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 0E652106568F for ; Thu, 16 Oct 2008 17:17:31 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.191]) by mx1.freebsd.org (Postfix) with ESMTP id 8D5F68FC1C for ; Thu, 16 Oct 2008 17:17:30 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so56704gve.39 for ; Thu, 16 Oct 2008 10:17: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:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=TwBsf8YS8r+lZaleovpWYlOTqX51TJiNQmS5Ef1bh5Q=; b=HrtecdAZ6tsIggshfY4Vjs7LE30Rm9kJxuupNza9rceUl+N5ISAVeRAJ4p8xH+YR4i NO779BF03AkOIEWjQJaaJaOSkTR+XSjQLb63r8DrGQ2oY4oYf/I1UE8bpc9NM5WnobR2 v340ItAL18CC8GYIhNPufQgplI9fkZZTw9idQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=PUrykDyE5vW+lheRoKrpoZzi23/I2mmTStiYFRdhVR+RuweZFXa7EljOzmJzsChtHo 4c5SYJ5g1E/FfvYC8KorsNzhOyTq9u0LiEpfaTW3Y1ij7tjNxnFh2RMaV9GfJDxHpi/E yCn6DRRn8gBlTRPIUnxmj2B84bxJUabXJiQzs= Received: by 10.103.173.5 with SMTP id a5mr1528875mup.117.1224175644442; Thu, 16 Oct 2008 09:47:24 -0700 (PDT) Received: by 10.103.239.14 with HTTP; Thu, 16 Oct 2008 09:47:24 -0700 (PDT) Message-ID: <3bbf2fe10810160947y23fa19d3td51b37c9823147a0@mail.gmail.com> Date: Thu, 16 Oct 2008 18:47:24 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: chrisc@vmunix.com In-Reply-To: <8f6775e00810160913y1f30e936ic9c514547ef0827@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8f6775e00810160913y1f30e936ic9c514547ef0827@mail.gmail.com> X-Google-Sender-Auth: 175a6cbe3eda7713 Cc: hackers@freebsd.org Subject: Re: smbfs hang 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, 16 Oct 2008 17:17:31 -0000 2008/10/16, Chris Coleman : > I'm doing a large transfer from an SMB mounted drive, about 2TB of > files. After about 250G, it hanging. Of course any process that > tries to access that drive hangs as well. > > Is there anyway to get those processes killed off and remount the > drive without rebooting? I haven't had much luck so far. They don't > seem to want to die. Hello Chris, are you equipped with a debugging kernel? Are you interested in helping fixing this bug? Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 18:30: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 C837F1065687 for ; Thu, 16 Oct 2008 18:30:02 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.185]) by mx1.freebsd.org (Postfix) with ESMTP id C82CE8FC19 for ; Thu, 16 Oct 2008 18:30:01 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so77203gve.39 for ; Thu, 16 Oct 2008 11:30:00 -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 :content-transfer-encoding:content-disposition:references; bh=/rOuEwqq/0TLMxhC/ZfRg5liMNGwBm5nBOvFeCtpx98=; b=wOxFS/p9AqOSZXCtiY7ZThUlKUOibneV+Kyy2oikhQeCOucnfaycBFem5slkB4RJmK gGLO131qYyJVpjQ66szabw7tIvXocg/V+a6BZ3nTmSC++uuyqmbJsu1nXWpvgdvN6lLw kG/5wI052BMOUyH/8FGm08YCMoxIP736Y74Zc= 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:content-transfer-encoding:content-disposition :references; b=AqK0K8e/6xT/qN1yYT5ETLqFkTdjpQyY/wJSrfYV5yJGJn7cmHv3Vq31gMMAtPKf05 GA+WezI4OJVpvh2lcECoMd7sqOutiY0PSgsdQCSmZP+KNIb0Ll0er/QuFvYmyVAK2SSU epNYiRjWSnYzxgHV93TIDOYf2W6xBeJ2Zc6cA= Received: by 10.103.222.12 with SMTP id z12mr1601310muq.95.1224181800267; Thu, 16 Oct 2008 11:30:00 -0700 (PDT) Received: by 10.103.141.5 with HTTP; Thu, 16 Oct 2008 11:30:00 -0700 (PDT) Message-ID: Date: Fri, 17 Oct 2008 00:00:00 +0530 From: Srinivas To: "Eduardo Morras" , "Pegasus Mc Cleaft" , freebsd-hackers@freebsd.org In-Reply-To: <20081015160522.04A824FEE1E@xroff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081015160522.04A824FEE1E@xroff.net> Cc: Subject: Re: [Doubt] Can a PCI device communicate with another PCI or other device? 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, 16 Oct 2008 18:30:02 -0000 I think a PCI device can communicate with another PCI device directly without the intervention of the CPU. Excerpt from "PCI Express System Architecture" ... PCI Transaction Model - Peer-to-Peer A Peer-to-peer transaction shown as Transaction 3 in Figure 1-5 on page 20 is the direct transfer of data between two PCI devices. A master that wishes to initiate a transaction, arbitrates, wins ownership of the bus and starts a transaction. A target PCI device that recognizes the address claims the bus cycle. For a write bus cycle, data is moved from master to target. For a read bus cycle, data is moved from target to master. .... --S On Wed, Oct 15, 2008 at 9:35 PM, Eduardo Morras wrote: > At 20:32 14/10/2008, you wrote: >> >> Hello, >> >> I have a small doubt. >> >> Suppose I have a PCI card with a general purpose CPU on it. Could it be >> able >> to communicate with another PCI device or ISA device(lets say IDE hard >> disk)? > > You can't do it directly. You must pass through the OS driver that controls > your card. You pass to your driver the data and it send data to other > driver, hard disk, etc.. Note that in some OSs your driver can't pass that > info from one driver to another and need an app that binds your driver with > the other driver. > > >> Thanks, >> Srinivas >> _______________________________________________ >> 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 Oct 16 23:14:50 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 30A761065688 for ; Thu, 16 Oct 2008 23:14:50 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.freebsd.org (Postfix) with ESMTP id E0E2C8FC1D for ; Thu, 16 Oct 2008 23:14:49 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.14.2/8.14.2) with ESMTP id m9GMmoXp007401 for ; Thu, 16 Oct 2008 15:48:50 -0700 (PDT) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.14.2/8.14.2/Submit) id m9GMmocw007400 for hackers@freebsd.org; Thu, 16 Oct 2008 15:48:50 -0700 (PDT) (envelope-from steve) Message-Id: <200810162248.m9GMmocw007400@wattres.watt.com> X-Newsgroups: local.freebsd-hackers In-Reply-To: From: steve@Watt.COM (Steve Watt) References: <20081015160522.04A824FEE1E@xroff.net> Organization: Watt Consultants, San Jose, CA, USA Date: Thu, 16 Oct 2008 15:48:50 -0700 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: hackers@freebsd.org X-Archived: 1224197330.816381587@wattres.Watt.COM X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wattres.watt.com [127.0.0.1]); Thu, 16 Oct 2008 15:48:50 -0700 (PDT) Cc: Subject: Re: [Doubt] Can a PCI device communicate with another PCI or other 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, 16 Oct 2008 23:14:50 -0000 In mboxindia@gmail.com wrote: >I think a PCI device can communicate with another PCI device directly >without the intervention of the CPU. Absolutely. Happens a fair amount in embedded networking systems (among others). The host is responsible for enumeration and resource assignment, but once that's complete, any device on the bus can see all others. Whether that's useful depends rather heavily on the devices on the bus, obviously. TANSTAAFL applies, though, in that multiple initiators must be careful not to step on each others' accesses. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices... From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 23:27: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 1E8491065688 for ; Thu, 16 Oct 2008 23:27:53 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 01B5D8FC17 for ; Thu, 16 Oct 2008 23:27:52 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 12980 invoked from network); 16 Oct 2008 23:27:52 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 16 Oct 2008 23:27:52 -0000 Message-ID: <48F7CD5E.8000905@telenix.org> Date: Thu, 16 Oct 2008 19:25:18 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: FreeBSD-Hackers X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: indicating a debug image 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, 16 Oct 2008 23:27:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was wondering, for FreeBSD images, is there a symbol that one could look for, to indicate if image had debug symbols? I know you could destroy that by just stripping, I just wanted to know if there is any way to definitely tell, short of firing up gdb and looking for info. Thanks -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj3zV4ACgkQz62J6PPcoOn7FQCfSmBRRDLHJE71x/86IF+ELGKi beEAoJLb/2SpNhg9YGmaioGkSCcySVlw =4AbD -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 00:23: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 57DC81065696 for ; Fri, 17 Oct 2008 00:23:48 +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 393C28FC18 for ; Fri, 17 Oct 2008 00:23:48 +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 m9H0Nl607108; Thu, 16 Oct 2008 17:23:48 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m9H0NlJ09271; Thu, 16 Oct 2008 17:23:47 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Thu, 16 Oct 2008 17:23:47 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Chuck Robey In-Reply-To: <48F7CD5E.8000905@telenix.org> Message-ID: References: <48F7CD5E.8000905@telenix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD-Hackers Subject: Re: indicating a debug image 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, 17 Oct 2008 00:23:48 -0000 On Thu, 16 Oct 2008, Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I was wondering, for FreeBSD images, is there a symbol that one could look for, > to indicate if image had debug symbols? I know you could destroy that by just > stripping, I just wanted to know if there is any way to definitely tell, short > of firing up gdb and looking for info. There's really three possibilities: 1. Image has no symbols 2. Image has only non-debug symbols (e.g. global functions and variables) 3. Image has debug symbols (e.g. line numbers, local variables) strip(1) or gcc -s produces #1. gcc without -g produces #2. gcc -g produces #3. You can distinguish #1 because 'nm image' will give no output. nm and objdump don't appear able to distinguish #2 and #3, but readelf -w will give a bunch of output for #3 and none for #2. Does that help? -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 05:53:09 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 74E11106568A for ; Fri, 17 Oct 2008 05:53:09 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 49FAF8FC16 for ; Fri, 17 Oct 2008 05:53:09 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so331097rvf.43 for ; Thu, 16 Oct 2008 22:53:08 -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:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=6RnqvqWovC50R6pJx7A5eg9OBIaoz6pC1NU0vmk3tLw=; b=wGDaaJJ6yR2UN8GOhYwbkTZG/VWKKHXE0ar7sv91/RNJ+ud4o9/pBFlZoBCVKGj2yT x4/mEr8roNy9nHFSQOlEhVetpx+9n45VIQnI3XUbqZonV8upOux37kI1Q6uJaUjhMpOe Ae/kDpnnaW72s0kB6iwxGLgpredgEo/aKzq/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=X0Zbl2Y9WFBtbSb0kT9I9HsuOqPpQVWRzsRLniy0MedxZycfNPtOyJcvOLt1BInZoE rxRUTtEpq7Czcsyz3txXfy5uR3Y+odvbYHNjjtLUkB4q3Hv+rJIpnKhkC7YgO5GMZ2Qj Ijy3vqKUcAYAzAhRu9SVVSgoQCbo0N6zta+g4= Received: by 10.140.147.5 with SMTP id u5mr2230807rvd.166.1224221081773; Thu, 16 Oct 2008 22:24:41 -0700 (PDT) Received: by 10.141.101.21 with HTTP; Thu, 16 Oct 2008 22:24:41 -0700 (PDT) Message-ID: <3c1674c90810162224s4d56ffdcnf6c461d1e28e2384@mail.gmail.com> Date: Thu, 16 Oct 2008 22:24:41 -0700 From: "Kip Macy" Sender: mat.macy@gmail.com To: hackers@freebsd.org, "FreeBSD Current" , virtualization@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: cbdd38e2de43a413 Cc: Subject: new mailing list for xen 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, 17 Oct 2008 05:53:09 -0000 I've been getting a lot of recurring questions about the status of Xen support in FreeBSD and Xen configuration issues - the answers to which are changing frequently enough that simply adding a FAQ wouldn't make sense. I expect that initially the mailing list will be the "Dailykip", consisting of regular updates about enhancements combined with a steady influx of bug reports and configuration questions. If you're planning on testing out FreeBSD on Xen, please subscribe to freebsd-xen. Cheers, Kip From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 10:26: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 73B251065692 for ; Fri, 17 Oct 2008 10:26:21 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-5.mail.uk.tiscali.com (mk-outboundfilter-5.mail.uk.tiscali.com [212.74.114.1]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA198FC14 for ; Fri, 17 Oct 2008 10:26:20 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 94604060/mk-outboundfilter-5.mail.uk.tiscali.com/PIPEX/$PIPEX-INTERNET-ACCEPTED/None/80.192.58.245 X-SBRS: None X-RemoteIP: 80.192.58.245 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlgBAFv+90hQwDr1/2dsb2JhbAAIwQGDbA X-IronPort-AV: E=Sophos;i="4.33,430,1220223600"; d="scan'208";a="94604060" X-IP-Direction: OUT Received: from 80-192-58-245.cable.ubr05.edin.blueyonder.co.uk (HELO [192.168.23.2]) ([80.192.58.245]) by smtp.pipex.tiscali.co.uk with ESMTP; 17 Oct 2008 10:56:42 +0100 Message-ID: <48F8615A.5070103@dial.pipex.com> Date: Fri, 17 Oct 2008 10:56:42 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.8.1.16) Gecko/20080811 SeaMonkey/1.1.11 MIME-Version: 1.0 To: chrisc@vmunix.com, hackers@freebsd.org References: <8f6775e00810160913y1f30e936ic9c514547ef0827@mail.gmail.com> In-Reply-To: <8f6775e00810160913y1f30e936ic9c514547ef0827@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: smbfs hang 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, 17 Oct 2008 10:26:21 -0000 Chris Coleman wrote: > I'm doing a large transfer from an SMB mounted drive, about 2TB of > files. After about 250G, it hanging. Of course any process that > tries to access that drive hangs as well. > > Is there anyway to get those processes killed off and remount the > drive without rebooting? I haven't had much luck so far. They don't > seem to want to die. > > I'm pretty sure that your answer is going to be "no". Most of my experience with SMBFS comes in the opposite direction - trying to write large files to an SMB-mounted filesystem and that was so problematic that we switched to NFS. That's a bit more work to set up, but well worth it, imho. See http://technet.microsoft.com/en-us/library/bb463212.aspx So far, fingers cross and touch wood, with Windows virus checking turned off on the remote drive, writing large files has been problem free and tests reading those files have had no problems either. Only talking in the 40Gb range though. hth, --Alex PS The problems we experienced didn't include wedging, iirc. Files would fail to rename, but if you waited 30 seconds and looked for your target file, it would, hey presto, have appeared. But writes also timed out, taking, in this case, a backup job with it. From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 10:03:05 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 24073106568A for ; Fri, 17 Oct 2008 10:03:05 +0000 (UTC) (envelope-from ip@doom.ctinet.ru) Received: from hosting.ctinet.ru (hosting.ctinet.ru [213.159.69.2]) by mx1.freebsd.org (Postfix) with ESMTP id 87B4C8FC1B for ; Fri, 17 Oct 2008 10:03:04 +0000 (UTC) (envelope-from ip@doom.ctinet.ru) Received: from doom.ctinet.ru (doom.ctinet.ru [213.159.64.57]) (authenticated bits=0) by hosting.ctinet.ru (8.14.2/8.14.2) with ESMTP id m9H9mKlx007651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 17 Oct 2008 13:48:21 +0400 (MSD) (envelope-from ip@doom.ctinet.ru) Received: from doom.ctinet.ru (localhost [127.0.0.1]) by doom.ctinet.ru (8.14.3/8.14.3) with ESMTP id m9H9mKAZ002033 for ; Fri, 17 Oct 2008 13:48:20 +0400 (MSD) (envelope-from ip@doom.ctinet.ru) Received: (from ip@localhost) by doom.ctinet.ru (8.14.3/8.14.3/Submit) id m9H9mKrK002032 for hackers@freebsd.org; Fri, 17 Oct 2008 13:48:20 +0400 (MSD) (envelope-from ip) Date: Fri, 17 Oct 2008 13:48:20 +0400 From: Igor Pokrovsky To: hackers@freebsd.org Message-ID: <20081017094820.GA2013@doom.ctinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Fri, 17 Oct 2008 11:22:43 +0000 Cc: Subject: lock test from sh script 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, 17 Oct 2008 10:03:05 -0000 Hi all! I need to check if file is locked or not (with flock) from a shell script. I remember there was something but cannot recall what exactly. And if possible I do not want to write my own test utility even it is several lines in length) Thanks, -ip From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 11:56:55 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 D9BFB1065689 for ; Fri, 17 Oct 2008 11:56:55 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9C5D58FC14 for ; Fri, 17 Oct 2008 11:56:55 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 9493E6D434; Fri, 17 Oct 2008 11:56:54 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 7540384492; Fri, 17 Oct 2008 13:56:54 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Igor Pokrovsky References: <20081017094820.GA2013@doom.ctinet.ru> Date: Fri, 17 Oct 2008 13:56:54 +0200 In-Reply-To: <20081017094820.GA2013@doom.ctinet.ru> (Igor Pokrovsky's message of "Fri, 17 Oct 2008 13:48:20 +0400") Message-ID: <86abd35ta1.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: lock test from sh script 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, 17 Oct 2008 11:56:56 -0000 Igor Pokrovsky writes: > I need to check if file is locked or not (with flock) from a shell > script. I remember there was something but cannot recall what exactly. > And if possible I do not want to write my own test utility even it > is several lines in length) lockf -t0 true DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 11:53: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 BB0901065688 for ; Fri, 17 Oct 2008 11:53:21 +0000 (UTC) (envelope-from pdegoeje@service2media.com) Received: from mx.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb7:b8fe]) by mx1.freebsd.org (Postfix) with ESMTP id 375508FC2D for ; Fri, 17 Oct 2008 11:53:20 +0000 (UTC) (envelope-from pdegoeje@service2media.com) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id m9HBqls8012669; Fri, 17 Oct 2008 13:52:47 +0200 From: Pieter de Goeje To: freebsd-hackers@freebsd.org Date: Fri, 17 Oct 2008 13:52:46 +0200 User-Agent: KMail/1.9.10 References: <20081017094820.GA2013@doom.ctinet.ru> In-Reply-To: <20081017094820.GA2013@doom.ctinet.ru> Organization: Service2Media MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810171352.46688.pdegoeje@service2media.com> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pdegoeje@service2media.com X-Spam-Status: No X-Mailman-Approved-At: Fri, 17 Oct 2008 11:57:56 +0000 Cc: Igor Pokrovsky Subject: Re: lock test from sh script 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, 17 Oct 2008 11:53:21 -0000 On Friday 17 October 2008, Igor Pokrovsky wrote: > Hi all! > > I need to check if file is locked or not (with flock) from a shell > script. I remember there was something but cannot recall what exactly. > And if possible I do not want to write my own test utility even it > is several lines in length) > > Thanks, > -ip Perhaps you mean lockf(3) ? -- Pieter de Goeje From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 12:16: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 36D591065689; Fri, 17 Oct 2008 12:16:33 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by mx1.freebsd.org (Postfix) with ESMTP id 71A878FC15; Fri, 17 Oct 2008 12:16:32 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqwEAM8S9kh5LWPz/2dsb2JhbACBcsA0gWs X-IronPort-AV: E=Sophos;i="4.33,431,1220193000"; d="asc'?scan'208";a="212957678" Received: from ppp121-45-99-243.lns10.adl6.internode.on.net (HELO midget.dons.net.au) ([121.45.99.243]) by ipmail01.adl6.internode.on.net with ESMTP; 17 Oct 2008 22:31:12 +1030 Received: from inchoate.dons.net.au (Inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.14.3/8.14.2) with ESMTP id m9HC10ar000116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Oct 2008 22:31:05 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 17 Oct 2008 22:30:52 +1030 User-Agent: KMail/1.9.9 References: <20081017094820.GA2013@doom.ctinet.ru> In-Reply-To: <20081017094820.GA2013@doom.ctinet.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1851669.YiSBqXmGtp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810172231.05324.doconnor@gsoft.com.au> X-Spam-Score: -1.906 () BAYES_00,SPF_FAIL X-Scanned-By: MIMEDefang 2.64 on 10.0.2.7 Cc: Igor Pokrovsky , hackers@freebsd.org Subject: Re: lock test from sh script 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, 17 Oct 2008 12:16:33 -0000 --nextPart1851669.YiSBqXmGtp Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 17 October 2008 20:18:20 Igor Pokrovsky wrote: > I need to check if file is locked or not (with flock) from a shell > script. I remember there was something but cannot recall what exactly. > And if possible I do not want to write my own test utility even it > is several lines in length) lockf -s -t 0 /path/to/file /bin/echo -n if [ $? -eq 75 ]; then echo file is locked exit fi =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 --nextPart1851669.YiSBqXmGtp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBI+H6B5ZPcIHs/zowRAplmAJ4wFmcoTD+EY8tvcaOW+xlAghlO8QCeOrKQ T71e4q3JQ/vcsvlFo/mcXaU= =HxGK -----END PGP SIGNATURE----- --nextPart1851669.YiSBqXmGtp-- From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 12:16:33 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 36D591065689; Fri, 17 Oct 2008 12:16:33 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by mx1.freebsd.org (Postfix) with ESMTP id 71A878FC15; Fri, 17 Oct 2008 12:16:32 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqwEAM8S9kh5LWPz/2dsb2JhbACBcsA0gWs X-IronPort-AV: E=Sophos;i="4.33,431,1220193000"; d="asc'?scan'208";a="212957678" Received: from ppp121-45-99-243.lns10.adl6.internode.on.net (HELO midget.dons.net.au) ([121.45.99.243]) by ipmail01.adl6.internode.on.net with ESMTP; 17 Oct 2008 22:31:12 +1030 Received: from inchoate.dons.net.au (Inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.14.3/8.14.2) with ESMTP id m9HC10ar000116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Oct 2008 22:31:05 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 17 Oct 2008 22:30:52 +1030 User-Agent: KMail/1.9.9 References: <20081017094820.GA2013@doom.ctinet.ru> In-Reply-To: <20081017094820.GA2013@doom.ctinet.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1851669.YiSBqXmGtp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810172231.05324.doconnor@gsoft.com.au> X-Spam-Score: -1.906 () BAYES_00,SPF_FAIL X-Scanned-By: MIMEDefang 2.64 on 10.0.2.7 Cc: Igor Pokrovsky , hackers@freebsd.org Subject: Re: lock test from sh script 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, 17 Oct 2008 12:16:33 -0000 --nextPart1851669.YiSBqXmGtp Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 17 October 2008 20:18:20 Igor Pokrovsky wrote: > I need to check if file is locked or not (with flock) from a shell > script. I remember there was something but cannot recall what exactly. > And if possible I do not want to write my own test utility even it > is several lines in length) lockf -s -t 0 /path/to/file /bin/echo -n if [ $? -eq 75 ]; then echo file is locked exit fi =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 --nextPart1851669.YiSBqXmGtp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBI+H6B5ZPcIHs/zowRAplmAJ4wFmcoTD+EY8tvcaOW+xlAghlO8QCeOrKQ T71e4q3JQ/vcsvlFo/mcXaU= =HxGK -----END PGP SIGNATURE----- --nextPart1851669.YiSBqXmGtp-- From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 17:56: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 98865106568E for ; Fri, 17 Oct 2008 17:56:53 +0000 (UTC) (envelope-from daniel@dgnetwork.com.br) Received: from mail.mastercabo.com.br (mail.mastercabo.com.br [200.179.179.14]) by mx1.freebsd.org (Postfix) with SMTP id BF6228FC1C for ; Fri, 17 Oct 2008 17:56:52 +0000 (UTC) (envelope-from daniel@dgnetwork.com.br) Received: (qmail 38515 invoked by uid 1008); 17 Oct 2008 17:56:28 -0000 Received: from unknown (HELO ?192.168.0.169?) (200.251.26.17) by mail.mastercabo.com.br with SMTP; 17 Oct 2008 17:56:28 -0000 Message-ID: <48F8D1C3.1080607@dgnetwork.com.br> Date: Fri, 17 Oct 2008 14:56:19 -0300 From: =?ISO-8859-1?Q?Daniel_Dias_Gon=E7alves?= User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: FreeBSD and ISCSI, Strange Problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: daniel@dgnetwork.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 17:56:53 -0000 Thanks Danny, The patch work fine, but i have new problem: Have two servers 7.0R with iscsi-2.1. They are mounted the same directory way iSCSI. When I create an archive inside of this directory in the server A, the server B don't show the archive, if in the server B to unmount and mount the directory again, the archive created in the server A appears It. Where it is the problem? The storage is Dell MD3000i. Thanks, Daniel Danny Braniss escreveu: >> the problem is probably that iscsi is deadlocked, so fetch >> ftp://ftp/users/danny/freebsd/iscsi-2.1.tar.gzs;/ftp/;/&.cs.huji.ac.il; >> > ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.1.tar.gz > > >> Danny, >> >> You typed the ftp wrong. >> >> hi Daniel, >> > > oh well, it was before coffee :-) > > >> Obrigado, thanks !! =) >> >> Daniel >> >> >> > > > _______________________________________________ > 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 Oct 17 20:43: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 403281065690 for ; Fri, 17 Oct 2008 20:43:03 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA518FC08 for ; Fri, 17 Oct 2008 20:43:02 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so139055uge.39 for ; Fri, 17 Oct 2008 13:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=HxGemZtW0Nr2Ee5Wr8v8e697XjPK7Y2tE7JxT8Xryn8=; b=HI+h8lp8eDhB0E60Ck2hHQUIcVP9R6bvTUZUVkgSBA9gOj9Fm3L5T37a+yW+NHH0p2 W1Gk89VJ75lHlTcgOuI2hEYOHUGDrlzHpge5kKKHoifIj6RR5QL1SSeFajiYTxUtjzQU BVKOP1uJvpqOO3FrCzBOQqDP8Wq1EhGr6Xbcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=s+VIrwH+lZHkugVTVxRCZTfwZhdm8JGgqwNmWMerVjj35GmBQpT0F9diaarQXF6siI HnfUBU0KjvyeM1DZL2l6c0XiDdUrIspYG+jSLHnIcrIZK1X3iXzVDEKBTWN8ilnh/LfE d459BvxJy5ogpmxSa/O+lrEPN6JKrCabrAT+M= Received: by 10.67.19.17 with SMTP id w17mr397897ugi.3.1224274885515; Fri, 17 Oct 2008 13:21:25 -0700 (PDT) Received: from ?192.168.0.2? ([77.241.32.21]) by mx.google.com with ESMTPS id o30sm1066505ugd.44.2008.10.17.13.21.24 (version=SSLv3 cipher=RC4-MD5); Fri, 17 Oct 2008 13:21:24 -0700 (PDT) From: Oleg To: freebsd-hackers@freebsd.org, freebsd-question@freebsd.org Date: Sat, 18 Oct 2008 00:21:28 +0400 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810180021.28327.subbsd@gmail.com> Cc: Subject: how determine all possible drivers for my system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: subbsd@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 20:43:03 -0000 Hello maillist of my favorite Wortstation&Server OS May i asking: how i can determine all drivers of existing devices, but who is not present in GENERIC kernel. For definition of all devices useful to me I have written the following a little stupid script: ---------- #!/bin/sh MODLIST=`find /boot/kernel -type f -name *.ko -print` LOGFILE="/var/tmp/kldlog.txt" # ignore for kldload module IGNORE_MODLIST="/boot/kernel/kernel.ko /boot/kernel/tom.ko /boot/kernel/iw_cxgb.ko" # (comment: tom.ko and iw_cwbg.ko after loading make "kernel panic" on my system) REPORTS="/var/tmp/reports.txt" FINAL_FILTER="(already exist)|(File exist)|(Unsupported file type)|\ (already present)|(failed to register)|(Exec format error)|\ (symbol [aA-zZ]++ undefin)|(Weak symbols not supported)|\ (already registered)|(unable to register)" # not know another easy way for fopen("/dev/klog") /etc/rc.d/syslogd stop echo "kern.* ${LOGFILE}" > /var/tmp/syslogd.conf syslogd -f /var/tmp/syslogd.conf # truncate -s0 ${LOGFILE} for MOD in ${MODLIST}; do ignore=0 for IGNORE_MOD in $IGNORE_MODLIST; do if [ "${IGNORE_MOD}" = "${MOD}" ]; then ignore=1 fi done if [ $ignore -eq 1 ]; then echo "Skipping ${MOD}..." >> ${LOGFILE} else echo "Try Loading ${MOD}..." >> ${LOGFILE} sync; kldload ${MOD} >> ${LOGFILE} 2>&1 fi done /etc/rc.d/syslogd start egrep -Eiv "\"${FINAL_FILTER}\"" ${LOGFILE} |tee ${REPORTS} --------- Result working off that scripts is the file reports.txt: { Oct 17 23:51:11 kernel: acpi_aiboost0: on acpi0 Oct 17 23:51:11 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:12 kernel: acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x48 0x00 0x01 Oct 17 23:51:12 kernel: cd0 at ata3 bus 0 target 0 lun 0 Oct 17 23:51:12 kernel: cd0: Removable CD-ROM SCSI-0 device Oct 17 23:51:12 kernel: cd0: 3.300MB/s transfers Oct 17 23:51:12 kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present Oct 17 23:51:12 kernel: cryptosoft0: on motherboard Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD dtrace.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD dtmalloc.ko: depends on dtrace - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD dtrace.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD profile.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD dtraceall.ko: depends on profile - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD profile.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD dtraceall.ko: depends on profile - not available Oct 17 23:51:13 kernel: KLD dtrace_test.ko: depends on dtraceall - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD profile.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD dtrace.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD prototype.ko: depends on dtrace - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD dtrace.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD sdt.ko: depends on dtrace - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD dtrace.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD systrace.ko: depends on dtrace - not available Oct 17 23:51:13 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:13 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:13 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:13 kernel: KLD dtrace.ko: depends on cyclic - not available Oct 17 23:51:13 kernel: KLD fbt.ko: depends on dtrace - not available Oct 17 23:51:13 kernel: KLD if_en.ko: depends on utopia - not available Oct 17 23:51:13 kernel: KLD if_fatm.ko: depends on utopia - not available Oct 17 23:51:15 kernel: KLD if_hatm.ko: depends on atm - not available Oct 17 23:51:15 kernel: module_register_init: MOD_LOAD (hwpmc, 0xffffffff804f2440, 0xffffffff80fffce0) error 78 Oct 17 23:51:15 kernel: ichsmb0: port 0x2900-0x293f,0x2d00-0x2d3f,0x2e00-0x2e3f irq 21 at device 10.1 on pci0 Oct 17 23:51:15 kernel: ichsmb0: [ITHREAD] Oct 17 23:51:15 kernel: smbus0: on ichsmb0 Oct 17 23:51:16 kernel: smb0: on smbus0 Oct 17 23:51:16 kernel: ichwd module loaded Oct 17 23:51:16 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:16 kernel: nfe1f0: Ethernet address: 00:22:15:20:66:1b Oct 17 23:51:16 kernel: nfe1f1: Ethernet address: 00:22:15:20:66:1b Oct 17 23:51:16 kernel: nfe1f2: Ethernet address: 00:22:15:20:66:1b Oct 17 23:51:16 kernel: nfe1f3: Ethernet address: 00:22:15:20:66:1b Oct 17 23:51:16 kernel: nfe0f0: Ethernet address: 00:22:15:20:63:bc Oct 17 23:51:16 kernel: nfe0f1: Ethernet address: 00:22:15:20:63:bc Oct 17 23:51:16 kernel: nfe0f2: Ethernet address: 00:22:15:20:63:bc Oct 17 23:51:16 kernel: nfe0f3: Ethernet address: 00:22:15:20:63:bc Oct 17 23:51:16 kernel: IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled Oct 17 23:51:16 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:17 kernel: module_register_init: MOD_LOAD (ipw_bss_fw, 0xffffffff810a7000, 0) error 1 Oct 17 23:51:17 kernel: module_register_init: MOD_LOAD (ipw_ibss_fw, 0xffffffff810db000, 0) error 1 Oct 17 23:51:17 kernel: module_register_init: MOD_LOAD (ipw_monitor_fw, 0xffffffff8110d000, 0) error 1 Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: registered firmware set Oct 17 23:51:17 kernel: unable to register firmware 'isp_1040' Oct 17 23:51:17 kernel: unable to register firmware 'isp_1040_it' Oct 17 23:51:17 kernel: unable to register firmware 'isp_1080' Oct 17 23:51:17 kernel: unable to register firmware 'isp_1080_it' Oct 17 23:51:17 kernel: unable to register firmware 'isp_12160' Oct 17 23:51:17 kernel: unable to register firmware 'isp_12160_it' Oct 17 23:51:17 kernel: unable to register firmware 'isp_2100' Oct 17 23:51:17 kernel: unable to register firmware 'isp_2200' Oct 17 23:51:17 kernel: unable to register firmware 'isp_2300' Oct 17 23:51:17 kernel: unable to register firmware 'isp_2322' Oct 17 23:51:17 kernel: unable to register firmware 'isp_2400' Oct 17 23:51:17 kernel: module_register_init: MOD_LOAD (iwnfw_fw, 0xffffffff812d4000, 0) error 1 Oct 17 23:51:17 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:18 kernel: KLD mac_biba.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_bsdextended.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_ifoff.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_lomac.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_mls.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_none.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_partition.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_portacl.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_seeotheruids.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_stub.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD mac_test.ko: depends on kernel_mac_support - not available Oct 17 23:51:18 kernel: KLD if_malo.ko: depends on malofw_fw - not available Oct 17 23:51:18 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:19 kernel: WARNING: attempt to net_add_domain(bluetooth) after domainfinalize() Oct 17 23:51:19 kernel: WARNING: attempt to net_add_domain(netgraph) after domainfinalize() Oct 17 23:51:20 kernel: This module (opensolaris) contains code covered by the Oct 17 23:51:20 kernel: Common Development and Distribution License (CDDL) Oct 17 23:51:20 kernel: see http://opensolaris.org/os/licensing/opensolaris_license/ Oct 17 23:51:20 kernel: KLD if_patm.ko: depends on atm - not available Oct 17 23:51:20 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:21 kernel: netsmb_dev: loaded Oct 17 23:51:21 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:22 last message repeated 2 times Oct 17 23:51:22 kernel: hdac0: mem 0xf9ef0000-0xf9ef3fff irq 21 at device 15.1 on pci0 Oct 17 23:51:22 kernel: hdac0: Oct 17 23:51:22 kernel: hdac0: [ITHREAD] Oct 17 23:51:22 kernel: hdac0: Oct 17 23:51:22 kernel: pcm0: on hdac0 Oct 17 23:51:22 kernel: pcm1: on hdac0 Oct 17 23:51:22 kernel: pcm2: on hdac0 Oct 17 23:51:24 kernel: ppc0: cannot reserve I/O port range Oct 17 23:51:24 last message repeated 2 times Oct 17 23:51:25 kernel: dragon_saver: the console does not support M_VGA_CG320 Oct 17 23:51:25 kernel: module_register_init: MOD_LOAD (dragon_saver, 0xffffffff81637140, 0) error 19 Oct 17 23:51:25 kernel: fire_saver: the console does not support M_VGA_CG320 Oct 17 23:51:25 kernel: module_register_init: MOD_LOAD (fire_saver, 0xffffffff81639000, 0) error 19 Oct 17 23:51:25 kernel: logo_saver: the console does not support M_VGA_CG320 Oct 17 23:51:25 kernel: module_register_init: MOD_LOAD (logo_saver, 0xffffffff8163b010, 0) error 19 Oct 17 23:51:25 kernel: rain_saver: the console does not support M_VGA_CG320 Oct 17 23:51:25 kernel: module_register_init: MOD_LOAD (rain_saver, 0xffffffff8163e010, 0) error 19 Oct 17 23:51:25 kernel: warp_saver: the console does not support M_VGA_CG320 Oct 17 23:51:25 kernel: module_register_init: MOD_LOAD (warp_saver, 0xffffffff81641270, 0) error 19 Oct 17 23:51:26 kernel: KLD if_upgt.ko: depends on upgtfw_fw - not available Oct 17 23:51:26 kernel: wlan: mac acl policy registered } from which I get following useful and working devices for generate my custom kernels: -- device ichwd device smb device smbus device ichsmb device cd device acpi_aiboost device crypto device cryptodev -- My question: what the "official" FreeBSD-way for the approach similar operations? From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 21:37: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 8F3BF106568C for ; Fri, 17 Oct 2008 21:37:34 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 52CF28FC1E for ; Fri, 17 Oct 2008 21:37:34 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id m9HLbXJo003455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 17 Oct 2008 16:37:33 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id m9HLATZ3043190; Fri, 17 Oct 2008 16:10:29 -0500 (CDT) (envelope-from dan) Date: Fri, 17 Oct 2008 16:10:29 -0500 From: Dan Nelson To: Daniel Dias =?utf-8?Q?Gon=C3=A7alves?= Message-ID: <20081017211028.GK99270@dan.emsphone.com> References: <48F8D1C3.1080607@dgnetwork.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48F8D1C3.1080607@dgnetwork.com.br> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: FreeBSD and ISCSI, Strange 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: Fri, 17 Oct 2008 21:37:34 -0000 In the last episode (Oct 17), Daniel Dias Gonçalves said: > Thanks Danny, > > The patch work fine, but i have new problem: > > Have two servers 7.0R with iscsi-2.1. > They are mounted the same directory way iSCSI. When I create an archive > inside of this directory in the server A, the server B don't show the > archive, if in the server B to unmount and mount the directory again, > the archive created in the server A appears It. > > Where it is the problem? You can't mount the same UFS filesystem on two servers at once. You'll end up with a horribly-corrupted filesystem, since neither one is aware of changes the other makes. You would need a shared-storage cluster filessytem to be able to do that (or mount the volume read-only on both servers). Mount the filesystem on one server only, then access it via NFS from the other. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 22:16:40 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 C77F31065687 for ; Fri, 17 Oct 2008 22:16:40 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.freebsd.org (Postfix) with ESMTP id A47038FC1E for ; Fri, 17 Oct 2008 22:16:40 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 624D31A0007D2 for ; Fri, 17 Oct 2008 14:50:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at smtp.sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k0x1AikzrPEo for ; Fri, 17 Oct 2008 14:50:58 -0700 (PDT) Received: from coal (unknown [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 299FF1A0007D1 for ; Fri, 17 Oct 2008 14:50:58 -0700 (PDT) Resent-From: Freddie Cash Resent-To: hackers@freebsd.org Resent-Date: Fri, 17 Oct 2008 14:50:58 -0700 Resent-Message-ID: <200810171450.58066.fjwcash@gmail.com> From: Freddie Cash To: subbsd@gmail.com Date: Fri, 17 Oct 2008 14:50:42 -0700 User-Agent: KMail/1.9.9 References: <200810180021.28327.subbsd@gmail.com> In-Reply-To: <200810180021.28327.subbsd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810171450.43590.fjwcash@gmail.com> X-Length: 1483 X-UID: 89100 Cc: Subject: Re: how determine all possible drivers for my system 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, 17 Oct 2008 22:16:40 -0000 On October 17, 2008 01:21 pm Oleg wrote: > Hello maillist of my favorite Wortstation&Server OS > > May i asking: how i can determine all drivers of existing devices, but > who is not present in GENERIC kernel. > My question: what the "official" FreeBSD-way for the approach similar > operations? I tend to use a more trial-and-error method. Basically, it's run "pciconf -vl" to get a listing of all hardware in the system, and then do searches in man pages, NOTES, and google to find what drivers to test for each device listed as "noneX@" (where X is a number). Most of the time, you can guess what the driver will be called based on the type off device listed in pciconf. -- Freddie Cash fjwcash@gmail.com From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 01:07:20 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 51AA91065687; Sat, 18 Oct 2008 01:07:20 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 3F6908FC12; Sat, 18 Oct 2008 01:07:20 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 2B8591A3C36; Fri, 17 Oct 2008 17:49:00 -0700 (PDT) Date: Fri, 17 Oct 2008 17:49:00 -0700 From: Alfred Perlstein To: Jeroen Ruigrok van der Werven Message-ID: <20081018004900.GB5651@elvis.mu.org> References: <20081016144813.GY98121@nexus.in-nomine.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081016144813.GY98121@nexus.in-nomine.org> User-Agent: Mutt/1.4.2.3i Cc: Srinivas , freebsd-drivers@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: [Info required] PC Architecture 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, 18 Oct 2008 01:07:20 -0000 * Jeroen Ruigrok van der Werven [081016 08:06] wrote: > -On [20081016 16:43], Srinivas (mboxindia@gmail.com) wrote: > >I have a theoretical understanding of the PC architecture and the > >details but have no idea of how things go under the hood(for a real > >computer). > > http://www.amazon.com/dp/0123706068/ - Computer Organization and Design: The > Hardware/Software Interface by Patterson and Hennessy > > http://www.amazon.com/dp/0131485210/ - Structured Computer Organization by > Tanenbaum > > That should answer most, if not all, of your questions on that subject. I also REALLY like: The 8088 Project Book http://www.amazon.com/8088-Project-Book-Robert-Grossblatt/dp/0830631712 Although this isn't a real PC, it will give a nice start in case more technical stuff it too much too soon. From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 18:18: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 DEACB106568F for ; Sat, 18 Oct 2008 18:18:17 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.freebsd.org (Postfix) with ESMTP id 6DD748FC08 for ; Sat, 18 Oct 2008 18:18:17 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-023-129.pools.arcor-ip.net [88.66.23.129]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1KrGNT0mf8-00013v; Sat, 18 Oct 2008 20:18:15 +0200 Received: (qmail 68792 invoked from network); 18 Oct 2008 18:18:14 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by laiers.local with SMTP; 18 Oct 2008 18:18:14 -0000 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Sat, 18 Oct 2008 20:18:13 +0200 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <200810181655.m9IGtxWk089117@freefall.freebsd.org> <48FA1756.1080708@freebsd.org> In-Reply-To: <48FA1756.1080708@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810182018.13757.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+CZ06YiM+EzKx8kSzH/8V/X6n1FeVuV1jpqww 8VjgDyMilU3enY/v3cWUued6/HAF4cNYevYZe9CZte1GRXTPdC er8WdJC+2l0LzcjCWDw9A== Cc: freebsd-hackers@freebsd.org Subject: Re: conf/128030: [request] Isn't it time to enable IPsec in GENERIC? 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, 18 Oct 2008 18:18:17 -0000 On Saturday 18 October 2008 19:05:26 Sam Leffler wrote: > gavin@freebsd.org wrote: > > Synopsis: [request] Isn't it time to enable IPsec in GENERIC? > > > > Responsible-Changed-From-To: freebsd-bugs->freebsd-net > > Responsible-Changed-By: gavin > > Responsible-Changed-When: Sat Oct 18 16:55:14 UTC 2008 > > Responsible-Changed-Why: > > Over to maintainer(s) for consideration > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=128030 > > Last I checked IPSEC added noticeable overhead. Before anyone does this > you need to measure the cost of having it enabled but not used. It should be possible to turn IPSEC into a module - maybe only loadable on boot to avoid locking issues. This would reduce the overhead to a handful of function pointer checks that should not impact performance (thanks to modern branch prediction and cache sizes). This would have to be measured as well, of course. Maybe this should go to the project page? It's a good junior kernel hacker project, I believe. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 20:43: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 D9344106568B for ; Sat, 18 Oct 2008 20:43:43 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id AC2C48FC08 for ; Sat, 18 Oct 2008 20:43:43 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m9IKPNWE060744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 18 Oct 2008 13:25:23 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48FA4633.9090500@freebsd.org> Date: Sat, 18 Oct 2008 13:25:23 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Max Laier References: <200810181655.m9IGtxWk089117@freefall.freebsd.org> <48FA1756.1080708@freebsd.org> <200810182018.13757.max@love2party.net> In-Reply-To: <200810182018.13757.max@love2party.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: conf/128030: [request] Isn't it time to enable IPsec in GENERIC? 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, 18 Oct 2008 20:43:43 -0000 Max Laier wrote: > On Saturday 18 October 2008 19:05:26 Sam Leffler wrote: > >> gavin@freebsd.org wrote: >> >>> Synopsis: [request] Isn't it time to enable IPsec in GENERIC? >>> >>> Responsible-Changed-From-To: freebsd-bugs->freebsd-net >>> Responsible-Changed-By: gavin >>> Responsible-Changed-When: Sat Oct 18 16:55:14 UTC 2008 >>> Responsible-Changed-Why: >>> Over to maintainer(s) for consideration >>> >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=128030 >>> >> Last I checked IPSEC added noticeable overhead. Before anyone does this >> you need to measure the cost of having it enabled but not used. >> > > It should be possible to turn IPSEC into a module - maybe only loadable on > boot to avoid locking issues. This would reduce the overhead to a handful of > function pointer checks that should not impact performance (thanks to modern > branch prediction and cache sizes). This would have to be measured as well, > of course. Maybe this should go to the project page? It's a good junior > kernel hacker project, I believe. > > I believe the most important issue are the SADB checks in the tx path. It used to be possible to do them cheaply by checking a single ptr value but now it's much more expensive. My memory is hazy as it's been a while. Sam From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 21:17: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 9E242106568C for ; Sat, 18 Oct 2008 21:17:19 +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 23B128FC16 for ; Sat, 18 Oct 2008 21:17:18 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KrJAi-0002mO-Ke for freebsd-hackers@freebsd.org; Sat, 18 Oct 2008 21:17:16 +0000 Received: from 89-172-60-70.adsl.net.t-com.hr ([89.172.60.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Oct 2008 21:17:16 +0000 Received: from ivoras by 89-172-60-70.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Oct 2008 21:17:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sat, 18 Oct 2008 23:16:44 +0200 Lines: 62 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB92BE62FD97B29136A533951" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-60-70.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) X-Enigmail-Version: 0.95.7 Sender: news Subject: Pipes, cat buffer size 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, 18 Oct 2008 21:17:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB92BE62FD97B29136A533951 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I'm working on a program that's intended to be used as a "filter", as in "something | myprogram > file". I'm trying it with cat and I'm seeing my read()s return small blocks, 64 kB in size. I suppose this is because cat writes in 64 kB blocks. So: a) Is there a way to programatically, per-process, set the pipe buffer size? The program in question is a compressor and it's particularly inefficient when given small blocks and I'm wondering if the system can buffer enough data for it. b) Is there any objection to the following patch to cat: Index: cat.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- cat.c (revision 184033) +++ cat.c (working copy) @@ -247,7 +247,16 @@ if (buf =3D=3D NULL) { if (fstat(wfd, &sbuf)) err(1, "%s", filename); - bsize =3D MAX(sbuf.st_blksize, 1024); + if (S_ISREG(sbuf.st_mode)) { + /* If there's plenty of RAM, use a 1 MB + * copy buffer, else use a 128 kB buffer */ + if (sysconf(_SC_PHYS_PAGES) > 32768) + bsize =3D 1*1024*1024; + else + bsize =3D 128*1024; + } else + bsize =3D MAX(sbuf.st_blksize, + (blksize_t)sysconf(_SC_PAGESIZE))= ; if ((buf =3D malloc(bsize)) =3D=3D NULL) err(1, "buffer"); } ? --------------enigB92BE62FD97B29136A533951 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj6UkMACgkQldnAQVacBcimNQCfQKS3VLR5jRkGzBU8AuojtE6J cHUAnilJd7PunT9jB7qjdn6j7OiE282f =kCTP -----END PGP SIGNATURE----- --------------enigB92BE62FD97B29136A533951-- From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 21:35: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 6B3B6106568D for ; Sat, 18 Oct 2008 21:35:08 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3B28FC15 for ; Sat, 18 Oct 2008 21:35:07 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id m9ILZ6BH064611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 18 Oct 2008 16:35:06 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id m9ILZ2CB064609; Sat, 18 Oct 2008 16:35:02 -0500 (CDT) (envelope-from dan) Date: Sat, 18 Oct 2008 16:35:02 -0500 From: Dan Nelson To: Ivan Voras Message-ID: <20081018213502.GL99270@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Pipes, cat buffer size 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, 18 Oct 2008 21:35:08 -0000 In the last episode (Oct 18), Ivan Voras said: > I'm working on a program that's intended to be used as a "filter", as > in "something | myprogram > file". I'm trying it with cat and I'm > seeing my read()s return small blocks, 64 kB in size. I suppose this > is because cat writes in 64 kB blocks. So: > > a) Is there a way to programatically, per-process, set the pipe buffer > size? The program in question is a compressor and it's particularly > inefficient when given small blocks and I'm wondering if the system can > buffer enough data for it. Why not keep reading until you reach your desired compression block size? Bzip2's default blocksize is 900k, for example. > b) Is there any objection to the following patch to cat: It might be simpler to just use "dd if=myfile obs=1m" instead of patching cat. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 22:05: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 18B96106568C for ; Sat, 18 Oct 2008 22:05:23 +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 907E18FC22 for ; Sat, 18 Oct 2008 22:05:22 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KrJvE-0004Wr-Vz for freebsd-hackers@freebsd.org; Sat, 18 Oct 2008 22:05:21 +0000 Received: from 89-172-60-70.adsl.net.t-com.hr ([89.172.60.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Oct 2008 22:05:20 +0000 Received: from ivoras by 89-172-60-70.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Oct 2008 22:05:20 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sun, 19 Oct 2008 00:04:51 +0200 Lines: 53 Message-ID: References: <20081018213502.GL99270@dan.emsphone.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0322905A6EC536F1489FB784" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-60-70.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <20081018213502.GL99270@dan.emsphone.com> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: Pipes, cat buffer size 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, 18 Oct 2008 22:05:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0322905A6EC536F1489FB784 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan Nelson wrote: > In the last episode (Oct 18), Ivan Voras said: >> I'm working on a program that's intended to be used as a "filter", as >> in "something | myprogram > file". I'm trying it with cat and I'm >> seeing my read()s return small blocks, 64 kB in size. I suppose this >> is because cat writes in 64 kB blocks. So: >> >> a) Is there a way to programatically, per-process, set the pipe buffer= >> size? The program in question is a compressor and it's particularly >> inefficient when given small blocks and I'm wondering if the system ca= n >> buffer enough data for it. >=20 > Why not keep reading until you reach your desired compression block > size? Bzip2's default blocksize is 900k, for example. Of course. But that's not the point :) From what I see (didn't look at the code), Linux for example does some kind of internal buffering that decouples how the reader and the writer interact. I think that with FreeBSD's current behaviour the writer could write 1-byte buffers and the reader will be forced to read each byte individually. I don't know if there's some ulterior reason for this. >> b) Is there any objection to the following patch to cat: >=20 > It might be simpler to just use "dd if=3Dmyfile obs=3D1m" instead of > patching cat. I believe patching cat to bring its block size into the century of the fruitbat has its own benefits. --------------enig0322905A6EC536F1489FB784 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj6XYkACgkQldnAQVacBchVhACeLs1vVbYU6sYy/6yKGAyvEAV7 WFwAn2rzKZxmt1rRJIjJcMI9KHFQoVaT =ncjE -----END PGP SIGNATURE----- --------------enig0322905A6EC536F1489FB784-- From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 23:12: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 B62A9106568F for ; Sat, 18 Oct 2008 23:12:04 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 7901E8FC0A for ; Sat, 18 Oct 2008 23:12:04 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id m9INC38w020985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 18 Oct 2008 18:12:03 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id m9INC28o020984; Sat, 18 Oct 2008 18:12:02 -0500 (CDT) (envelope-from dan) Date: Sat, 18 Oct 2008 18:12:02 -0500 From: Dan Nelson To: Ivan Voras Message-ID: <20081018231201.GM99270@dan.emsphone.com> References: <20081018213502.GL99270@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Pipes, cat buffer size 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, 18 Oct 2008 23:12:04 -0000 In the last episode (Oct 19), Ivan Voras said: > Dan Nelson wrote: > > In the last episode (Oct 18), Ivan Voras said: > >> I'm working on a program that's intended to be used as a "filter", > >> as in "something | myprogram > file". I'm trying it with cat and > >> I'm seeing my read()s return small blocks, 64 kB in size. I > >> suppose this is because cat writes in 64 kB blocks. So: > >> > >> a) Is there a way to programatically, per-process, set the pipe buffer > >> size? The program in question is a compressor and it's particularly > >> inefficient when given small blocks and I'm wondering if the system can > >> buffer enough data for it. > > > > Why not keep reading until you reach your desired compression block > > size? Bzip2's default blocksize is 900k, for example. > > Of course. But that's not the point :) From what I see (didn't look at > the code), Linux for example does some kind of internal buffering that > decouples how the reader and the writer interact. I think that with > FreeBSD's current behaviour the writer could write 1-byte buffers and > the reader will be forced to read each byte individually. I don't know > if there's some ulterior reason for this. No; take a look at /sys/kern/sys_pipe.c . Depending on how much data is in the pipe, it switches between async in-kernel buffering (<8192 bytes), and direct page wiring between sender and receiver (basically zero-copy). > >> b) Is there any objection to the following patch to cat: > > > > It might be simpler to just use "dd if=myfile obs=1m" instead of > > patching cat. > > I believe patching cat to bring its block size into the century of the > fruitbat has its own benefits. -- Dan Nelson dnelson@allantgroup.com