Re: TET and other testing framework for FreeBSD

2008-07-22 Thread Garrett Cooper
On Tue, Jul 22, 2008 at 2:10 AM, Alexander Leidinger [EMAIL PROTECTED] wrote: Quoting Garrett Cooper [EMAIL PROTECTED] (from Mon, 21 Jul 2008 23:43:11 -0700): Hi Joseph (and hackers), I'm contacting Joseph primarily because I saw his name listed under the TET page (http

Re: Bug in calcru in he 6.2 and 6.3 kernels

2008-07-20 Thread Garrett Cooper
On Sun, Jul 20, 2008 at 7:13 AM, Kris Kennaway [EMAIL PROTECTED] wrote: Murty, Ravi wrote: Jeremy, thanks. I look forward to switching to ULE in 7.0 and realize that it is a completely new scheduler (I spent some time yesterday looking at it) -- which is my porting effort is much harder than

Re: SCHED_4BSD bad interactivity on 7.0 vs 6.3

2008-07-13 Thread Garrett Cooper
On Sun, Jul 13, 2008 at 12:47 AM, Eugene Grosbein [EMAIL PROTECTED] wrote: On Sun, Jul 13, 2008 at 03:11:23AM +0200, Kris Kennaway wrote: It seems like there has been a regression in interactivity from 6.3-RELEASE to 7.0-RELEASE when using the SCHED_4BSD scheduler. After upgrading my

Re: Securelevels

2008-06-28 Thread Garrett Cooper
On Sat, Jun 28, 2008 at 6:13 PM, Ivaylo Mateev [EMAIL PROTECTED] wrote: Hi, I think I found a bug. [EMAIL PROTECTED] /usr/home/strato]$ sudo sysctl kern.securelevel kern.securelevel: 2 [EMAIL PROTECTED] /usr/home/strato]$ kgdb kgdb: /dev/mem: Permission denied [EMAIL PROTECTED]

Re: Error from systinstall while trying to install man page packages

2008-06-27 Thread Garrett Cooper
On Fri, Jun 27, 2008 at 1:45 PM, Sean Bruno [EMAIL PROTECTED] wrote: Sebastian Tymków wrote: Hi, You can set information in sysinstall using Options and setting Release name Best regards, Sebastian Tymkow Thanks. What should I set the Release name to? According to uname above,

Re: Error from systinstall while trying to install man page packages

2008-06-27 Thread Garrett Cooper
On Fri, Jun 27, 2008 at 5:07 PM, Sean Bruno [EMAIL PROTECTED] wrote: Garrett Cooper wrote: On Fri, Jun 27, 2008 at 1:45 PM, Sean Bruno [EMAIL PROTECTED] wrote: Sebastian Tymków wrote: Hi, You can set information in sysinstall using Options and setting Release name Best regards

Debugging kernel issue with bus code

2008-06-27 Thread Garrett Cooper
Hi all, Due to my RAID5 array failing and my poking around trying to get stuff to work, I've come up with a deterministic means of getting the kernel to panic when it attempts to use generic_bcopy in device_attach. Unfortunately my x86 ASM is non-existent and while I'm a passable gdb user, I

Re: 3D for AMD64 (was Re: Lack of Flash support is no longer acceptable. Bounty established...)

2008-06-26 Thread Garrett Cooper
On Wed, Jun 25, 2008 at 12:17 PM, Mike Meyer [EMAIL PROTECTED] wrote: On Wed, 25 Jun 2008 13:00:09 -0400 Ben Kaduk [EMAIL PROTECTED] wrote: On Tue, Jun 24, 2008 at 6:06 PM, Thierry Herbelot [EMAIL PROTECTED] wrote: is there any hope for having the newly open-sourced radeon/radeon-hd AMD

Re: Lack of Flash support is no longer acceptable. Bounty established...

2008-06-24 Thread Garrett Cooper
On Tue, Jun 24, 2008 at 8:55 AM, Scott T. Hildreth [EMAIL PROTECTED] wrote: On Tue, 2008-06-24 at 08:41 -0700, John Kozubik wrote: On Fri, 20 Jun 2008, Scott T. Hildreth wrote: On Fri, 2008-06-20 at 08:39 +0200, Alexander Leidinger wrote: Quoting John Kozubik [EMAIL PROTECTED] (from

Re: FreeBSD 7.0 own installation

2008-06-19 Thread Garrett Cooper
On Thu, Jun 19, 2008 at 6:27 AM, Sebastian Tymków [EMAIL PROTECTED] wrote: Hi, I need to create my own installation disk. Is there any solution to create own release without in example sendmail. I made some scripts and included them in /usr/src/release/Makefile to install some ports to iso (

Re: Cross platform building best practices (building 6 on 7)

2008-06-19 Thread Garrett Cooper
On Thu, Jun 19, 2008 at 6:29 AM, Alexander Sack [EMAIL PROTECTED] wrote: Hello Folks: I've done a lot of Googling and scouring the lists about this particular subject so I apologize for rehashing it. However, I'm still confused on what's the best way to perform BSD cross platform builds.

Re: Decent 3D acceleration in 64bit mode?

2008-06-19 Thread Garrett Cooper
On Thu, Jun 19, 2008 at 3:19 PM, Mike Meyer [EMAIL PROTECTED] wrote: On Thu, 19 Jun 2008 17:41:20 -0400 Chuck Robey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck Robey wrote: Mike Meyer wrote: On Thu, 19 Jun 2008 14:00:42 -0400 Zaphod Beeblebrox [EMAIL

Re: Bug by design in getfsfile(3) / needed sanity check for mountpoints

2008-06-16 Thread Garrett Cooper
On Tue, Jun 10, 2008 at 2:27 AM, Garrett Cooper [EMAIL PROTECTED] wrote: Ok it appears I wasn't intelligent enough to post this in the right place last night. Comments please? Hi hackers, I have a question, pending a bug found in getfsfile(3) [1]. Is there any possibility

Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

2008-06-15 Thread Garrett Cooper
On Sun, Jun 15, 2008 at 2:26 PM, Andrey Chernov [EMAIL PROTECTED] wrote: On Sun, Jun 15, 2008 at 09:17:01PM +0200, K?vesd?n G?bor wrote: Yes, of course, I haven't forgotten about your suggestion. First, I'd like to process the trivial errors, which come up like this one and make some tests

Bug by design in getfsfile(3) / needed sanity check for mountpoints

2008-06-10 Thread Garrett Cooper
Ok it appears I wasn't intelligent enough to post this in the right place last night. Comments please? Hi hackers, I have a question, pending a bug found in getfsfile(3) [1]. Is there any possibility where a mountpoint be any value other than a directory, a symlink, or none,

Bug by design in getfsfile(3) / needed sanity check for mountpoints

2008-06-09 Thread Garrett Cooper
Hi hackers, I have a question, pending a bug found in getfsfile(3) [1]. Is there any possibility where a mountpoint be any value other than a directory, a symlink, or none, i.e. a flat file? Thanks, -Garrett References: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/124409 (not fully

Re: Help with copytree code

2008-05-19 Thread Garrett Cooper
On Mon, May 19, 2008 at 12:55 AM, Beech Rintoul [EMAIL PROTECTED] wrote: On Sunday 18 May 2008, Beech Rintoul said: This copytree code is from bsd.port.mk, and I've been asked to try and find a fix. This is very handy for installing a whole tree (like a web app) keeping everything intact.

Re: BDB corrupt

2008-05-14 Thread Garrett Cooper
On May 13, 2008, at 2:06 PM, James Mansion wrote: Kurt J. Lidl wrote: This catapults back into the arena of stuff that isn't in the base system. Not to mention I'm not sure that the Oracle BDB license would allow bundling in the OS as a binary. I doubt it, but that's a different bikeshed to

Re: BDB corrupt

2008-05-13 Thread Garrett Cooper
On May 12, 2008, at 6:56 PM, Kurt Lidl wrote: Garrett Cooper wrote: On May 12, 2008, at 1:38 AM, Anthony Pankov wrote: Please, can anybody explain what is the problem with BDB (1.86). Is there known caveats of using BDB? Is there some rules which guarantee from curruption or it is fully

Re: BDB corrupt

2008-05-12 Thread Garrett Cooper
On May 12, 2008, at 1:38 AM, Anthony Pankov wrote: Please, can anybody explain what is the problem with BDB (1.86). Is there known caveats of using BDB? Is there some rules which guarantee from curruption or it is fully undesirable to use BDB under high load? It is important for me because

Re: Adding .db support to pkg_tools

2008-05-11 Thread Garrett Cooper
On May 9, 2008, at 5:43 AM, Joerg Sonnenberger wrote: On Fri, May 09, 2008 at 01:52:46PM +0200, Anders Nore wrote: I'm working on adding .db support to the pkg_tools( i.e. pkg_add, pkg_info, etc. ) as part of SoC 2008. The database api used is BerkeleyDB that comes with the base system

Re: correct #define in source to specify FBSD vs. linux?

2008-05-11 Thread Garrett Cooper
On May 9, 2008, at 11:36 AM, Xin LI wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve Franks wrote: | Seems there is a more appropriate list for my earlier question to | freebsd-questions: | | On and on I charge porting linux engineering tools. Major pita. I | see a bunch of #ifdef

Re: general i/o question

2008-05-07 Thread Garrett Cooper
On May 7, 2008, at 8:39 AM, [EMAIL PROTECTED] wrote: Hi all, Sorry if its a FAQ but i don't find any answer for this topic. i need to test (NOWAIT), the presence of keypressed/depressed on a terminal and then read the scan code, like for a piano pc keyboard. my questions are as follows:

strdup(NULL) supposed to create SIGSEGV?

2008-04-26 Thread Garrett Cooper
On Thu, Apr 24, 2008 at 1:24 AM, Bakul Shah [EMAIL PROTECTED] wrote: On Wed, 23 Apr 2008 23:34:41 PDT Garrett Cooper [EMAIL PROTECTED] wrote: I know that dereferencing a NULL pointer yields a segfault because address 0 can't be accessed. The point is that I didn't realize

Re: strdup(NULL) supposed to create SIGSEGV?

2008-04-23 Thread Garrett Cooper
On Tue, Apr 22, 2008 at 11:50 PM, Mike Meyer [EMAIL PROTECTED] wrote: On Tue, 22 Apr 2008 22:40:21 -0700 Garrett Cooper [EMAIL PROTECTED] wrote: Hi all, I made an oops in a program, which uncovered feature in strdup(2) that I wasn't aware of before. So I was wondering, is strdup

Fwd: strdup(NULL) supposed to create SIGSEGV?

2008-04-23 Thread Garrett Cooper
On Wed, Apr 23, 2008 at 1:30 AM, Bernard van Gastel [EMAIL PROTECTED] wrote: Op 23 apr 2008, om 08:50 heeft Mike Meyer het volgende geschreven: On Tue, 22 Apr 2008 22:40:21 -0700 Garrett Cooper [EMAIL PROTECTED] wrote: Hi all, I made an oops in a program, which uncovered feature

strdup(NULL) supposed to create SIGSEGV?

2008-04-22 Thread Garrett Cooper
Hi all, I made an oops in a program, which uncovered feature in strdup(2) that I wasn't aware of before. So I was wondering, is strdup(pointer = NULL) supposed to segfault should this just return NULL and set errno? Good news is that Linux does the same thing (yay?), so at least FreeBSD

Re: introduction

2008-04-22 Thread Garrett Cooper
On Tue, Apr 22, 2008 at 6:55 PM, James [EMAIL PROTECTED] wrote: Hi folks, my name is James Harrison; I'm a computer science student at the University of New Mexico, studying mostly at the Los Alamos branch. I'm also a Unix systems administrator/developer at Los Alamos National Lab, where

Re: Summer of Code 2008 Project Ideas

2008-03-18 Thread Garrett Cooper
On Mar 17, 2008, at 3:15 PM, Murray Stokely wrote: The FreeBSD Project was again accepted as a mentoring organization for the Google Summer of Code. The student application period will begin next week so if you have any ideas for great student projects, please send them to [EMAIL

Re: OpenBSD sdiff Question

2008-03-15 Thread Garrett Cooper
On Mar 14, 2008, at 4:14 PM, Steven Kreuzer wrote: Greetings- I am currently working on replacing the GNU version of sdiff with a version of sdiff that was released into the public domain and is used in OpenBSD Xin LI has been guiding me along with the project and he suggested I post

Re: vmstat layout

2008-02-02 Thread Garrett Cooper
Julian Elischer wrote: not if you use awk to parse the output to cherrypick out the numbers you are intersted in... Right. It would be for humans though, not for machines :). Ed's suggestion sort of makes more sense though... -Garrett ___

Re: vmstat layout

2008-02-01 Thread Garrett Cooper
On Feb 1, 2008, at 3:26 AM, Dag-Erling Smørgrav wrote: vmstat(1) tries very hard to fit everything in 80 columns. Unfortunately, it's been years since anyone had a machine where none of the columns overflowed. [...] Removing columns is not an acceptable solution (it would break too

Re: FreeBSD hacker 101

2008-01-24 Thread Garrett Cooper
On Jan 24, 2008, at 3:28 PM, KAYVEN RIESE wrote: I thought freeBSD 7 was still current bleeding edge? Soon it will be the 'most current STABLE' branch; 8-CURRENT is absolute bleeding edge. -Garrett PS Please bottom post :). ___

Re: Wrapper for Windows-only network card binary drivers on FreeBSD?

2008-01-24 Thread Garrett Cooper
On Jan 24, 2008, at 5:29 PM, Julian Elischer wrote: Yuri wrote: I am curious is there an effort in FreeBSD similar to Linux NDISwrapper? NDISwrapper taked Windows XP binary driver and runs it on Linux. http://ndiswrapper.sourceforge.net/joomla/ They add the converter between Linux kernel API

Re: nvidia working?

2008-01-14 Thread Garrett Cooper
On Jan 14, 2008, at 12:26 PM, John Nielsen wrote: The most straightforward approach is probably to review the output of your Xorg log, e.g. /var/log/Xorg.0.log. Output from the nvidia driver will be prefixed by NVIDIA (rather than VESA or NV if you were using a different driver). There

Re: select

2008-01-03 Thread Garrett Cooper
Metin KAYA wrote: Hi all, How select(2) will behave if I give the utimeout parameter as NULL? -- Metin KAYA EnderUNIX Software Developer Endersys Software Engineer http://www.EnderUNIX.org/metin

Re: select

2008-01-03 Thread Garrett Cooper
Garrett Cooper wrote: Metin KAYA wrote: Yes Rick, I'm asking this indefinitely issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: How select(2) will behave

Re: select

2008-01-03 Thread Garrett Cooper
Garrett Cooper wrote: Metin KAYA wrote: Yes Rick, I'm asking this indefinitely issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: How select(2) will behave

Re: select

2008-01-03 Thread Garrett Cooper
Metin KAYA wrote: Yes Rick, I'm asking this indefinitely issue. Is there anything that handle this NULL situation a signal, or etc.? How does Linux or FreeBSD behave? On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: How select(2) will behave if I give the

Re: BSD license compatible hash algorithm?

2007-12-28 Thread Garrett Cooper
On Dec 28, 2007, at 4:35 AM, Ivan Voras wrote: Garrett Cooper wrote: Looks promising, but how difficult would it be to port the code to other platforms (Win32 for instance?). The hash algorithm itself as implemented in hash.h is pretty much a text-book hash algorithm (D.J.Bernstein's

BSD license compatible hash algorithm?

2007-12-27 Thread Garrett Cooper
Hi all, Just wondering if anyone knew of a good BSD license compatible key- based hash placement / retrieval algorithm that was available anywhere. I'm looking for a reliable way to lookup objects to see if a given action would be performed in my revised pkg_install(1), to thus efficiently

Re: BSD license compatible hash algorithm?

2007-12-27 Thread Garrett Cooper
On Dec 27, 2007, at 4:30 PM, Garrett Cooper wrote: Hi all, Just wondering if anyone knew of a good BSD license compatible key- based hash placement / retrieval algorithm that was available anywhere. I'm looking for a reliable way to lookup objects to see if a given action would

Re: BSD license compatible hash algorithm?

2007-12-27 Thread Garrett Cooper
On Dec 27, 2007, at 4:37 PM, Brooks Davis wrote: On Thu, Dec 27, 2007 at 04:30:40PM -0800, Garrett Cooper wrote: Hi all, Just wondering if anyone knew of a good BSD license compatible key-based hash placement / retrieval algorithm that was available anywhere. I'm looking for a reliable

Re: Wine compatibility and performance on FreeBSD 7

2007-12-11 Thread Garrett Cooper
On Dec 10, 2007, at 10:06 PM, Tom Wickline wrote: On Dec 11, 2007 12:59 AM, Simon Cornelius P. Umacob [EMAIL PROTECTED] wrote: Whoa... I didn't know that. =) I should now be able to run Warcraft on my Linux and FreeBSD (?) boxes... Coool... [ simon.cpu ] Maayong hapon Simon, Yea it

Re: Wine compatibility and performance on FreeBSD 7

2007-12-11 Thread Garrett Cooper
Garrett Cooper wrote: On Dec 10, 2007, at 10:06 PM, Tom Wickline wrote: On Dec 11, 2007 12:59 AM, Simon Cornelius P. Umacob [EMAIL PROTECTED] wrote: Whoa... I didn't know that. =) I should now be able to run Warcraft on my Linux and FreeBSD (?) boxes... Coool... [ simon.cpu ] Maayong

Re: pkgdb failures

2007-11-29 Thread Garrett Cooper
Yuri wrote: I deleted this file: /var/db/pkg/pkgdb.db and then pkgdb -fu succeeded. But next time I ran I got the same error with /usr/ports/INDEX-7.db. Then this error disappear. So it's most likely the bug with Berkeley DB. Anybody else has these kind of problems? Yuri Quoting Yuri [EMAIL

Re: pkgdb failures

2007-11-29 Thread Garrett Cooper
On Nov 29, 2007, at 7:34 PM, Yuri wrote: Quoting Garrett Cooper [EMAIL PROTECTED]: Yes, it's partly caused by pkgdb and/or how Ruby / pkgdb handles the DB I think... 1. What type of BDB structure do you use [most likely btree(1) -- says this during the pkgdb rebuild..]? bdb_btree

Re: /lib/pthread.so.2 is sought during some port compilation

2007-11-28 Thread Garrett Cooper
Yuri wrote: Sorry about that. Please find the logs below. My system is upgraded from 6.3. And /lib/libpthread.so.2 is not a symlink. But when I make it a symlink (ln -s /lib/libthr.so.3 /lib/libpthread.so.2) I get another error, see log below. Some requisite libs are compiled with

Re: idea bouncing: using cvs as a replacement for mergemaster

2007-11-27 Thread Garrett Cooper
On Nov 27, 2007, at 7:45 PM, Aryeh M. Friedman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was thinking seeing the fact that I already have a cvs repo of - -current does it make sense to just use CVS to update /etc instead of mergemaster... if so any ideas on doing it cleanly? -

Re: Any hope to have things requested by NVidia in FreeBSD-7?

2007-11-16 Thread Garrett Cooper
Kip Macy wrote: On Nov 16, 2007 2:16 PM, Remko Lodder [EMAIL PROTECTED] wrote: Yuri wrote: I read long time ago that the reason that NVidia can't have their driver on 64-bit platform is that FreeBSD kernel lacks some functionality. Is this functionality present in 7.0? Or when to

Re: pgk_add segmentation fault

2007-11-09 Thread Garrett Cooper
Aharon Schkolnik wrote: Hi ! pkg_add is crashing with a segmentation fault: pkg_add -v mysql-client-5.1.22.tbz Requested space: 3809856 bytes, free space: 128323438592 bytes in /var/tmp/instmp.ND8UBU extract: Package name is mysql-client-5.1.22 extract: CWD to /usr/local extract:

Re: pkg_add doesn't keep dependent pkgs

2007-11-09 Thread Garrett Cooper
Garrett Cooper wrote: Maslan wrote: That would be great. I'll wait for the patch On Nov 6, 2007 1:01 PM, Garrett Cooper [EMAIL PROTECTED] wrote: Maslan wrote: Package dependencies may change, depending on the user settings and port maintainers configuration for the port (i.e

Re: pkg_add doesn't keep dependent pkgs

2007-11-06 Thread Garrett Cooper
Maslan wrote: Package dependencies may change, depending on the user settings and port maintainers configuration for the port (i.e. Makefiles). The same sort of applies to packages as well. Or were you referring to just packages instead of ports based package metadata :)? Or maybe a

Re: pkg_add doesn't keep dependent pkgs

2007-11-06 Thread Garrett Cooper
Maslan wrote: That would be great. I'll wait for the patch On Nov 6, 2007 1:01 PM, Garrett Cooper [EMAIL PROTECTED] wrote: Maslan wrote: Package dependencies may change, depending on the user settings and port maintainers configuration for the port (i.e. Makefiles). The same sort

Re: page fault degaradation performance

2007-11-06 Thread Garrett Cooper
[EMAIL PROTECTED] wrote: how to reduce the number of page faults to upgrade program or OS performance? Install more memory. 1. Reduce the number of processes on the machine, in particular the high-memory usage ones. 2. Adapt your programming to suit the situation by using less

Re: pkg_add doesn't keep dependent pkgs

2007-11-05 Thread Garrett Cooper
Maslan wrote: Hi, pkg_add -rK seems not to keep the packages dependencies so as the package itself. i found this: http://lists.freebsd.org/pipermail/freebsd-bugbusters/2006-August/000178.html but no answer since then. I don't if this is a bug, or not even implemented feature? Thanks alot

Re: Nvidia amd64

2007-09-27 Thread Garrett Cooper
Sam Fourman Jr. wrote: On 9/27/07, Kjell Tore Ullavik [EMAIL PROTECTED] wrote: Remko Lodder wrote: On Thu, Sep 27, 2007 at 03:07:42PM +0200, Giulio Ferro wrote: Sam Fourman Jr. wrote: There is no driver. I sort of surmised that already... So, we

Re: core dump hangs

2007-08-01 Thread Garrett Cooper
Yong Rao wrote: Hi, Recently, while we developed our own FreeBSD driver, we found the core dump does not work (with SMP options and dual CPUs). We have already filed a PR for this bug. See http://www.freebsd.org/cgi/query-pr.cgi?pr=114370. I am wondering if anybody on this list is

Re: [patch] enhance powerd(8) to handle max temperature

2007-08-01 Thread Garrett Cooper
M. Warner Losh wrote: In message: [EMAIL PROTECTED] Nate Lawson [EMAIL PROTECTED] writes: : Hajimu UMEMOTO wrote: : On Mon, 30 Jul 2007 23:31:33 +0200 : Pietro Cerutti [EMAIL PROTECTED] said: : gahr My patch is really just a first draft that I wrote in order to have : gahr

Re: [patch] enhance powerd(8) to handle max temperature

2007-08-01 Thread Garrett Cooper
M. Warner Losh wrote: In message: [EMAIL PROTECTED] Julian Elischer [EMAIL PROTECTED] writes: : Garrett Cooper wrote: : M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : Nate Lawson [EMAIL PROTECTED] writes: : : Hajimu UMEMOTO wrote: : : On Mon, 30 Jul 2007 23

How do I daemonize a process?

2007-07-23 Thread Garrett Cooper
As the subject suggests I'm trying to determine how I can daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. Does anyone know any quick references or examples? Thanks, -Garrett ___

Re: How do I daemonize a process?

2007-07-23 Thread Garrett Cooper
Garrett Cooper wrote: As the subject suggests I'm trying to determine how I can daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. Does anyone know any quick references or examples? Thanks, -Garrett s/C process/C application process

Re: How do I daemonize a process?

2007-07-23 Thread Garrett Cooper
Jose-Marcio Martins da Cruz wrote: Simon 'corecode' Schubert wrote: Garrett Cooper wrote: Garrett Cooper wrote: As the subject suggests I'm trying to determine how I can daemonize a C process, outside of using the rc infrastructure, so that it won't exit when the TTY exists. Does anyone

Re: Slight problem with make actual-package-depends with ports

2007-07-18 Thread Garrett Cooper
Antony Mawer wrote: On 18/07/2007 10:46 AM, Stephen Montgomery-Smith wrote: I appreciate that most people won't have this problem, but it has bitten me. After you have made and installed a port, but don't clean it, and then made a bunch of other ports, if you go back to the original port

Proposal for alleviating disk read / write time

2007-07-18 Thread Garrett Cooper
Hello Kirill and Hackers, After reviewing the changes I made last weekend to pkg_install I'm seeing slight improvements, but not a large amount of improvement in overall program operation. I haven't implemented mmap(2) yet as John Baldwin suggested (need to do some reading about fcntl(2)

Re: Slight problem with make actual-package-depends with ports

2007-07-17 Thread Garrett Cooper
Doug Barton wrote: Stephen Montgomery-Smith wrote: I appreciate that most people won't have this problem, but it has bitten me. After you have made and installed a port, but don't clean it, and then made a bunch of other ports, if you go back to the original port and then do make package,

Large gap between fwrite and write, and fread and read

2007-07-16 Thread Garrett Cooper
Hello again Hackers, I ran some tests and I noticed a large difference in the cumulative sums of fwrite(2) vs write(3) and fread(2) vs read(3) (3-fold differences on a real machine). Please download http://students.washington.edu/youshi10/posted/fat.tgz, take a look at README for some

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-14 Thread Garrett Cooper
Garrett Cooper wrote: Garrett Cooper wrote: Tim Kientzle wrote: -I tried ... buffering ... the +CONTENTS file parsing function, and the majority of the time it yielded good results One approach I prototyped sometime back was to use libarchive in pkg_add as follows: * Open

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-14 Thread Garrett Cooper
Tim Kientzle wrote: 4. CSV files available at: http://students.washington.edu/youshi10/posted/atk-results.tgz. I've posted HTML results of the interpreted spreadsheet on http://students.washington.edu/posted/atk.htm. I'll provide commentary tomorrow after I get some sleep. I think the

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-14 Thread Garrett Cooper
Tim Kientzle wrote: The following blog post has all of my commentary on the results I have: http://blogs.freebsdish.org/gcooper/2007/07/14/modifications-to-pkg_install-the-positive-and-negative-implications/. I tried to unroll strcmp a bit by checking for the first character of the

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-13 Thread Garrett Cooper
Garrett Cooper wrote: Tim Kientzle wrote: -I tried ... buffering ... the +CONTENTS file parsing function, and the majority of the time it yielded good results One approach I prototyped sometime back was to use libarchive in pkg_add as follows: * Open the archive * Read +CONTENTS

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-12 Thread Garrett Cooper
Tim Kientzle wrote: -I tried ... buffering ... the +CONTENTS file parsing function, and the majority of the time it yielded good results One approach I prototyped sometime back was to use libarchive in pkg_add as follows: * Open the archive * Read +CONTENTS directly into memory

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-06 Thread Garrett Cooper
Tim Kientzle wrote: I'm currently running a gamut of tests (500 tests, per package -- 128 total on my server), and outputting all data to CSV files to interpret later, using another Perl script to interpret calculated averages and standard deviations. Excellent! Much-needed work.

Re: Finding slowdowns in pkg_install (continuations of previous threads)

2007-07-05 Thread Garrett Cooper
Garrett Cooper wrote: I'm currently running a gamut of tests (500 tests, per package -- 128 total on my server), and outputting all data to CSV files to interpret later, using another Perl script to interpret calculated averages and standard deviations. Using basic printf(2)'s

Re: MS Vista vs FreeBSD's bootloader

2007-06-27 Thread Garrett Cooper
[EMAIL PROTECTED] wrote: Hi; FWIW, if you just got your new computer with Windows Vista installed and were hoping to dual boot FreeBSD on it, let me tell you that FreeBSD's bootloader will screw things up. Microsoft basically declared the war on alternative OSs so it seems vista doesn't like:

Re: CPUTYPE in general - was Re: Which CPUTYPE for a dualcore Xeon on AMD64

2007-06-26 Thread Garrett Cooper
Mike Meyer wrote: In [EMAIL PROTECTED], Garrett Cooper [EMAIL PROTECTED] typed: Martin Turgeon wrote: Mike Meyer a écrit : In [EMAIL PROTECTED], Roman Divacky [EMAIL PROTECTED] typed: For the record, I believe the nocona cores are: pentium 4/some prescott, prescott 2m, cedar

Re: CPUTYPE in general - was Re: Which CPUTYPE for a dualcore Xeon on AMD64

2007-06-25 Thread Garrett Cooper
Martin Turgeon wrote: Mike Meyer a écrit : In [EMAIL PROTECTED], Roman Divacky [EMAIL PROTECTED] typed: you should know what cpu you bought, or just use cpuid (found in ports) and determine what cpu you have. Knowing what CPU you bought doesn't help a lot for the case asked about of

Re: Which CPUTYPE for a dualcore Xeon on AMD64

2007-06-24 Thread Garrett Cooper
Martin Turgeon wrote: Hi, I recently installed AMD64 6.2 Release on 2 PowerEdge servers, both with dual core Xeon (3070 and 5110). I noticed when I was updating the sources that it was compiling as an Athlonxp by default. I was wondering if I should change the CPUTYPE in make.conf to something

Making sense of ktrace(1) output

2007-06-18 Thread Garrett Cooper
Ok, so in my effort to find out the choke point for pkg_add, and in the process I've tried both struss and strace, which have failed because they weren't tracking the right PID and weren't following forks (seemed like procfs is all mucked up even though it's mounted and appears to be working

Re: Making sense of ktrace(1) output

2007-06-18 Thread Garrett Cooper
Peter Jeremy wrote: On 2007-Jun-18 00:39:44 -0700, Garrett Cooper [EMAIL PROTECTED] wrote: However, I was able to get ktrace output. The only problem is that ktrace(1) apparently outputs only in binary, instead of plaintext output. Can I convert it to plaintext somehow and process

Re: Making sense of ktrace(1) output

2007-06-18 Thread Garrett Cooper
Roman Divacky wrote: On Mon, Jun 18, 2007 at 01:55:01AM -0700, Garrett Cooper wrote: Peter Jeremy wrote: On 2007-Jun-18 00:39:44 -0700, Garrett Cooper [EMAIL PROTECTED] wrote: However, I was able to get ktrace output. The only problem is that ktrace(1) apparently outputs only

Re: Using shell commands versus C equivalents

2007-06-17 Thread Garrett Cooper
Tim Kientzle wrote: Also, were the bottlenecks seen in pkg_delete and pkg_add, or does it appear to be distributed across the board? The biggest time sink in pkg_add is writing each file to a temp dir then copying it to its final location. There are a couple of strategies for avoiding this

Re: Using shell commands versus C equivalents

2007-06-17 Thread Garrett Cooper
Andrew Turner wrote: On Sat, 16 Jun 2007 21:53:06 -0700 Tim Kientzle [EMAIL PROTECTED] wrote: Also, were the bottlenecks seen in pkg_delete and pkg_add, or does it appear to be distributed across the board? The biggest time sink in pkg_add is writing each file to a temp dir then

Re: Rearchitecting pkg_install (was Re: Using shell commands versus C equivalents)

2007-06-17 Thread Garrett Cooper
Tim Kientzle wrote: I've also seen a 3x speedup by using my reimplementation of pkg_add using my package management library, libpkg (http://libpkg.berlios.de). It is not production ready yet as if it fails partway through an installation it won't clean up and installed files. I *think* a good

Re: Fwd: AMD deciding _now_ what to do about Linux

2007-06-16 Thread Garrett Cooper
Wilko Bulte wrote: On Sat, Jun 16, 2007 at 10:33:00AM +0100, Dieter wrote.. So who, exactly, is the best person to write to requesting docs for AMD/ATI graphics/video chips? We need to politely inform them that There are a lot of operating systems out there, and they all

Re: Using shell commands versus C equivalents

2007-06-16 Thread Garrett Cooper
Tim Kientzle wrote: As Joerg said, though, you're not likely to gain much from this. pkg_install is almost entirely disk bound. Going back to this particular comment, has anybody really looked into the speed of mtree(3)? That was the next stop that I planned on looking at after I make my

Re: Using shell commands versus C equivalents

2007-06-13 Thread Garrett Cooper
Alexander Leidinger wrote: Quoting Garrett Cooper [EMAIL PROTECTED] (from Tue, 12 Jun 2007 22:55:18 -0700): Another simple question (I hope): Is there any reason why shell commands should be used in place of a C command (in this case chmod via vsystem instead of the chmod(2) function

Re: Reason for doing malloc / bzero over calloc (performance)?

2007-06-13 Thread Garrett Cooper
Garrett Cooper wrote: Title says it all -- is there a particular reason why malloc/bzero should be used instead of calloc? -Garrett As someone just brought to my attention, I should do some Googling. Initial results brought up this: http://boredzo.org/blog/archives/2006-11-26/calloc-vs

Re: Using shell commands versus C equivalents

2007-06-13 Thread Garrett Cooper
Danny Braniss wrote: --Rgf3q3z9SdmXC6oT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 12, 2007 at 10:55:18PM -0700, Garrett Cooper wrote: Another simple question (I hope): Is there any reason why shell

Reason for doing malloc / bzero over calloc?

2007-06-12 Thread Garrett Cooper
Title says it all -- is there a particular reason why malloc/bzero should be used instead of calloc? -Garrett ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Using shell commands versus C equivalents

2007-06-12 Thread Garrett Cooper
Another simple question (I hope): Is there any reason why shell commands should be used in place of a C command (in this case chmod via vsystem instead of the chmod(2) function)? It seems like the fork / exec would be more expensive with the shell command, but any area where code could be

Re: Lost interrupts during boot

2007-06-08 Thread Garrett Cooper
Hans Petter Selasky wrote: On Friday 08 June 2007 11:43, Paolo Pisati wrote: I testing booting with a combo USB/Firewire carbus card, but no interrupts are genereated. If I plug the card in when the computer is not cold, it works fine. Any ideas? Does the cardbus driver generate a dummy

Re: Looking for speed increases in make index and pkg_version for ports

2007-05-28 Thread Garrett Cooper
Mike Meyer wrote: In [EMAIL PROTECTED], Hartmut Brandt [EMAIL PROTECTED] typed: 1. make and its sub-makes for a) reading the file; b) parsing the file (note that .if and .for processing is done while parsing); c) processing targets. Make and submakes have been gone over already. See URL:

Re: Looking for speed increases in make index and pkg_version for ports

2007-05-28 Thread Garrett Cooper
Garrett Cooper wrote: Mike Meyer wrote: In [EMAIL PROTECTED], Hartmut Brandt [EMAIL PROTECTED] typed: 1. make and its sub-makes for a) reading the file; b) parsing the file (note that .if and .for processing is done while parsing); c) processing targets. Make and submakes have been gone over

Re: Looking for speed increases in make index and pkg_version for ports

2007-05-28 Thread Garrett Cooper
Stephen Montgomery-Smith wrote: Roman Divacky wrote: On Mon, May 28, 2007 at 11:34:24AM -0500, Stephen Montgomery-Smith wrote: Jeremy Chadwick wrote: On Sun, May 27, 2007 at 03:52:16PM -0500, Stephen Montgomery-Smith wrote: I have been thinking a lot about looking for speed increases for

Re: Problems compiling BUILDING from STABLE

2007-05-26 Thread Garrett Cooper
Daniel Molina Wegener wrote: On Saturday 26 May 2007 13:14:52 Maslan wrote: Have u missed with the CFLAGS ? Sorry, i mean messed up Sorry, I can't understand... what's wrong with my CFLAGS. These flags works for STABLE -- in my make.conf:

Re: SoC

2007-05-20 Thread Garrett Cooper
Garrett Cooper wrote: Garrett Cooper wrote: Duane Whitty wrote: On Tuesday, 15 May 2007 at 1:05:07 -0700, Garrett Cooper wrote: Tom Evans wrote: On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: Ruby's nice, but it's built on Perl so I have suspicions on its overall usability

More questions about BDB

2007-05-20 Thread Garrett Cooper
Ok, I've run into a strange issue with BDB's hash tables. Does anyone know what the following means? db_dump185: seq: Invalid argument Backstory: When dumping out a large amount of data it appears that there's an expected directive which isn't being inserted by Ruby's BDB1.85 facility into

Re: More questions about BDB

2007-05-20 Thread Garrett Cooper
Dan Nelson wrote: In the last episode (May 20), Sean Bryant said: Just a personal curiosity. Is there a particular reason why FreeBSD is holding on to BDB 1.85? All later versions have a non-BSD license (a source redistribution requirement was added), which means it can't go in the base

Re: SoC

2007-05-19 Thread Garrett Cooper
Garrett Cooper wrote: Duane Whitty wrote: On Tuesday, 15 May 2007 at 1:05:07 -0700, Garrett Cooper wrote: Tom Evans wrote: On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: Ruby's nice, but it's built on Perl so I have suspicions on its overall usability / speed given my experience

<    1   2   3   4   5   6   7   >