Re: Device driver questions

2001-05-23 Thread Alexander Langer
Thus spake SJ ([EMAIL PROTECTED]): Hi! 1. ioconf.c contains struct config_resource and config_device definitions for declarations in config file. But I noticed that for some devices e.g. device atadisk device atapicd ... the

Linux getcwd problems

2001-05-23 Thread Koster, K.J.
Dear All, I just ran into a problem with the linuxulator, triggered by the Linux JDK that I use for my development. Markus kindly pointed me to this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=24315 The summary is that getcwd(3) under Linux emulation will fail really hard after a rmdir.

Re: technical comparison

2001-05-23 Thread Daniel C. Sobral
Shannon Hendrix wrote: And just to get things worse... :-) the test must be made on the *same* slice. If you configure two different slices, the one on the outer tracks will be faster. I cannot verify that with my drive, but my largest is 18GB so maybe the difference is not as

Re: Linux getcwd problems

2001-05-23 Thread Alfred Perlstein
* Koster, K.J. [EMAIL PROTECTED] [010523 05:48] wrote: Dear All, I just ran into a problem with the linuxulator, triggered by the Linux JDK that I use for my development. Markus kindly pointed me to this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=24315 The summary is that

Re: technical comparison

2001-05-23 Thread Eric Melville
The proposed filesystem is most likely Reiserfs. This is a true journalling filesystem with a radically non-traditional layout. It is no problem to put millions of files in a single directory. (actually, the all-in-one approach performs better than a tree) XFS and JFS are similarly

RE: Linux getcwd problems

2001-05-23 Thread Koster, K.J.
Dear Alfred, http://www.freebsd.org/cgi/query-pr.cgi?pr=24315 The summary is that getcwd(3) under Linux emulation will fail really hard after a rmdir. I've looked at your email and the PR, the problem that I have is that I have no clue as to what it should return. Can you give

Re: Linux getcwd problems

2001-05-23 Thread David Malone
On Wed, May 23, 2001 at 01:02:01PM +0100, Koster, K.J. wrote: The problem seems to be that FreeBSD's getcwd library call will impliment the getcwd userland if the syscall fails or is unimplimented. There are times when the syscall fails in normal operation and you don't see this with the BSD

Re: technical comparison

2001-05-23 Thread Peter Pentchev
On Wed, May 23, 2001 at 08:17:12AM -0400, Andresen,Jason R. wrote: On Tue, 22 May 2001, Kris Kennaway wrote: On Tue, May 22, 2001 at 10:27:27PM +0300, Nadav Eiron wrote: I ran tests that I think are similar to what Jason ran on identically configured FreeBSD and Linux/ReiserFS

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Tue, 22 May 2001, Daniel C. Sobral wrote: Jason Andresen wrote: If only FreeBSD could boot from those funky M-Systems flash disks. It can. How? Nothing I found in the documentation indicated this, or gave any sort hint as to how I might go about doing it. The Linux driver has a

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Tue, 22 May 2001, Daniel C. Sobral wrote: Jason Andresen wrote: Results: ufs+softupdates is a little slower than ext2fs+wc for low numbers of files, but scales better. I wish I had a Reiserfs partition to test with. Ext2fs is a non-contender. Note, though, that there is some

RE: technical comparison

2001-05-23 Thread Koster, K.J.
Dear All, An interview with Reiser just appeared on http://www.slashdot.org/ Just to add a little oil to the fire. :-) Kees Jan You are only young once, but you can stay immature all your life. To Unsubscribe: send mail to [EMAIL

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Tue, 22 May 2001, Shannon Hendrix wrote: On Tue, May 22, 2001 at 09:31:34AM -0400, Jason Andresen wrote: We only have three Linux boxes here (and one is a PC104 with a flash disk) and already I've had to reinstall the entire OS once when we had a power glitch. ext2fsck managed to

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Tue, 22 May 2001, Shannon Hendrix wrote: On Tue, May 22, 2001 at 02:49:21PM -0400, Jason Andresen wrote: 6 files took ~15 minutes to create as is. I'm going to have to wait until tonight to run larger sets. 2.2.16 is what we have here. I'm still waiting to see how much faster

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
I just finished the FreeBSD test with vfs.vmiodirenable=1 (it was 0 before) 6 simlultanious files, 1 transactions, FreeBSD 4.0-Release+Softupdates with write cacheing disabled. Results are pretty much unchanged. Do you have to enable vmiodirenable at boot time for it to take affect?

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Tue, 22 May 2001, Terry Lambert wrote: I don't understand the inability to perform the trivial design engineering necessary to keep from needing to put 60,000 files in one directory. However, we can take it as a given that people who need to do this are incapable of doing computer

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Tue, 22 May 2001, Shannon Hendrix wrote: On Tue, May 22, 2001 at 12:03:33PM -0400, Jason Andresen wrote: The data: Hardware: Both machines have the same hardware on paper (although it is TWO machines, YMMV). PII-300 Intel PIIX4 ATA33 controller IBM-DHEA-38451 8063MB

Re: ppp problems on 4.3-RELEASE and PPPoE

2001-05-23 Thread Brian Somers
Hmm, I wonder if you can catch it again and do a ``set log local physical'' and run ``tcpdump -i XXX -e not ip'' on the interface at the same time ? A ``ping -c 1'' should then show if ppp's sending the data out, and if it is, if ng_ether is forwarding it. I'm a little concerned about the

Re: technical comparison

2001-05-23 Thread Shannon Hendrix
On Wed, May 23, 2001 at 06:53:37AM -0300, Daniel C. Sobral wrote: I cannot verify that with my drive, but my largest is 18GB so maybe the difference is not as pronounced as on some newer drives like those (currently) monster 70GB drives. It should be measurable. Actually, I edited too

Re: technical comparison

2001-05-23 Thread julien
Hi all, I tried your tests on a quite different configuration, a PIII 800 with 1GB ram, with an AcceleRAID 170 controller and a single RAID5 pack of 4*8GB IBM SCSI drives. The system is a 4.3-rc2, NO softupdates, default configuration. Here are the results : pmset transactions 1 pmset

Re: technical comparison

2001-05-23 Thread Shannon Hendrix
On Wed, May 23, 2001 at 09:03:37AM -0400, Andresen,Jason R. wrote: The scary thing is that it was the attached harddrive that lost all of the files. The situitation is this: [snip] Sorry to hear that, but like I said, it isn't typical. ext2 in it's early days, an ext before that were really

Re: Device driver questions

2001-05-23 Thread Julian Elischer
Alexander Langer wrote: Thus spake SJ ([EMAIL PROTECTED]): The developer's handbook might be worth reading for you, also there are some tutorials on the website which explain a little. Also check out -current's /usr/share/examples/drivers/make_device_driver.sh Alex -- cat:

Re: technical comparison

2001-05-23 Thread D. Rock
Zitiere Daniel C. Sobral [EMAIL PROTECTED]: Note, though, that there is some very recent perfomance improvement on very large directories known as dirpref (what changed, actually, was dirpref's algorithm). This is NOT present on 4.3-RELEASE, though it _might_ have since been committed to

removing inb()/outb() from devices

2001-05-23 Thread j mckitrick
I'd like to finalize the newbus work by changing inb()/outb() calls to bus_space_write calls. Is there a device where this has been partially done already? I'd like to see the old and new styles, then i would fix the vpo/imm zip driver first, since i know that code well. After that, i could

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Wed, 23 May 2001, Shannon Hendrix wrote: Where I live, the power gets worse every year. I lost quite a few ext filesystems, but only a couple of ufs and ext2 filesystems. Then I bought a 1920VA UPS and it's no longer an issue. I just found it easier to not lose power than to worry about

Re: technical comparison

2001-05-23 Thread Kris Kennaway
On Wed, May 23, 2001 at 08:17:12AM -0400, Andresen,Jason R. wrote: Did you enable write caching? You didn't mention, and it's off by default in 4.3, but I think enabled by default on Linux. I tried to leave the FreeBSD and Linux boxes as unchanged as possible for my tests (they are lab

Re: removing inb()/outb() from devices

2001-05-23 Thread Alexander Langer
Thus spake j mckitrick ([EMAIL PROTECTED]): I'd like to finalize the newbus work by changing inb()/outb() calls to bus_space_write calls. Is there a device where this has been partially done already? I'd like to see the old and new styles, then i would fix the It has been done to

Re: ppp problems on 4.3-RELEASE and PPPoE

2001-05-23 Thread Ollivier Robert
According to Brian Somers: Brett Glass (cc'd) has complained about a similar problem where it seems that the ng_pppoe node is locked up. I can't reproduce the problem here though :( Does the following help you : -=-=- tun0: Timer: Begin of Timer Service List--- tun0: Timer: physical

Re: ppp problems on 4.3-RELEASE and PPPoE

2001-05-23 Thread Brian Somers
According to Brian Somers: Brett Glass (cc'd) has complained about a similar problem where it seems that the ng_pppoe node is locked up. I can't reproduce the problem here though :( Does the following help you : [.] Not really - I think we need ``physical'' logs so that we can

Re: Device driver questions

2001-05-23 Thread SJ
--- Alexander Langer [EMAIL PROTECTED] wrote: Thus spake SJ ([EMAIL PROTECTED]): Hi! 1. ioconf.c contains struct config_resource and config_device definitions for declarations in config file. But I noticed that for some devices e.g. device atadisk

Re: technical comparison

2001-05-23 Thread Andresen,Jason R.
On Wed, 23 May 2001, Kris Kennaway wrote: On Wed, May 23, 2001 at 08:17:12AM -0400, Andresen,Jason R. wrote: Did you enable write caching? You didn't mention, and it's off by default in 4.3, but I think enabled by default on Linux. I tried to leave the FreeBSD and Linux boxes as

Re: removing inb()/outb() from devices

2001-05-23 Thread j mckitrick
On Wed, May 23, 2001 at 07:04:15PM +0200, Alexander Langer wrote: | Thus spake j mckitrick ([EMAIL PROTECTED]): | | I'd like to finalize the newbus work by changing inb()/outb() calls to | bus_space_write calls. Is there a device where this has been partially done | already? I'd like to see

telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Lyndon Nerenberg
A few months back I taught telnet about named sockets. We've found this very useful for testing things like IPC channels in our software (e.g. telnet /var/run/lmtp). I've put the (-STABLE) patches up at: ftp://orthanc.ab.ca/lyndon/freebsd/telnet.AF_UNIX.patch If someone with commit priv's

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Alfred Perlstein
* Lyndon Nerenberg [EMAIL PROTECTED] [010523 18:22] wrote: A few months back I taught telnet about named sockets. We've found this very useful for testing things like IPC channels in our software (e.g. telnet /var/run/lmtp). I've put the (-STABLE) patches up at:

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Matt Dillon
:A few months back I taught telnet about named sockets. We've found this :very useful for testing things like IPC channels in our software :(e.g. telnet /var/run/lmtp). I've put the (-STABLE) patches up at: : : ftp://orthanc.ab.ca/lyndon/freebsd/telnet.AF_UNIX.patch : :If someone with commit

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Matt Dillon
: ftp://orthanc.ab.ca/lyndon/freebsd/telnet.AF_UNIX.patch : : If someone with commit priv's thinks this is worth including, be : my guest. : :This is really cool, can you submit it as a PR? : :-- :-Alfred Perlstein [[EMAIL PROTECTED]] Don't bother, I'll commit it right now as soon as I

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Matt Dillon
I've committed the patch, changing -/ to -u (note: you don't need the option at all if you specify a path beginning with '/', as per Lyndon's original code), to current (both non-crypto and crypto versions). I will MFC it to stable in three days. Nice one! I'm going to be

Seeking recommendations for backup system

2001-05-23 Thread sthaug
I'm seeking recommendation for a backup system (software) that can be used with a decent sized tape library, probably LTO based, and FreeBSD 4.3-STABLE. I'm sure we could roll our based on freely available tools (eg. Amanda) - but by now I'm used to Tivoli ADSM/TSM, and *like* the convenience

Re: technical comparison

2001-05-23 Thread void
On Wed, May 23, 2001 at 09:20:51AM -0400, Andresen,Jason R. wrote: Why is knowing the file names cheating? It is almost certain that the application will know the names of it's own files (and won't be grepping the entire directory every time it needs to find a file). With 60,000 files,

Re: technical comparison

2001-05-23 Thread Dave Hayes
Terry Lambert [EMAIL PROTECTED] writes: I don't understand the inability to perform the trivial design engineering necessary to keep from needing to put 60,000 files in one directory. Hear hear! ;) (Been waiting for that one) However, we can take it as a given that people who need to do

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread James Howard
On Wed, 23 May 2001, Matt Dillon wrote: Nice one! I'm going to be using this all over the place myself. I am missing something here. Is there a practical use for this? :) Jamie To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Matt Dillon
: :Looking at the patch, is it safe to assume that if there's a '/' in a :hostname, it MUST be a AF_UNIX socket? If so, wouldn't a strchr(hostp, :'/') be better than 'hostp[0] == '/''? This way one can use relative paths :as well, not just absolute ones. : :-- :[ Joseph Mallett[EMAIL

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Matt Dillon
: :On Wed, 23 May 2001, Matt Dillon wrote: : : Nice one! I'm going to be using this all over the place myself. : :I am missing something here. Is there a practical use for this? :) : :Jamie Many programs these days use unix-domain sockets as a rendezvous for IPC between processes.

Re: Seeking recommendations for backup system

2001-05-23 Thread Olivier Nicole
Hi Steinar, I'm sure we could roll our based on freely available tools (eg. Amanda) - but by now I'm used to Tivoli ADSM/TSM, and *like* the convenience ADSM/TSM offers. We need the ability to make backups (via Fast Ethernet) primarily of FreeBSD servers, but also Solaris, Linux and HP-UX. Easy

Re: technical comparison

2001-05-23 Thread Rik van Riel
On Wed, 23 May 2001, Andresen,Jason R. wrote: On Wed, 23 May 2001, Kris Kennaway wrote: That's all well and good, but I thought the aim here was to compare Linux and FreeBSD performance on as level playing field as possible? You're not measuring FS performance, you're measuring FS

softc with resource sharing

2001-05-23 Thread j mckitrick
Any devices using the ppbus will end up sharing the hardware port. If i want to access this resource info, should i store it in my local driver's softc structure, or extract it from the parent device (ppbus)? jcm -- I drank WHAT ?! - Socrates To Unsubscribe: send mail to [EMAIL PROTECTED]

Re: Device driver questions

2001-05-23 Thread Sergey Babkin
SJ wrote: 2. Whats the use of device_ops structure and what does ops stand for? ops definitely stands for operations. I can't say off the top of my head what this structure is but most probably a collection of pointers to the functions of a particular driver which implement the device

Re: telnet to AF_UNIX sockets [PATCH]

2001-05-23 Thread Jacques A. Vidrine
On Wed, May 23, 2001 at 08:10:20PM -0400, James Howard wrote: I am missing something here. Is there a practical use for this? :) You are not the only one. I can appreciate the `neat' factor, but I cringed at the commit. It seems like functionality that would be better put in a

Re: technical comparison

2001-05-23 Thread Shannon
On Wed, May 23, 2001 at 10:54:40PM -0300, Rik van Riel wrote: 1. I don't think I've ever seen a Linux distro which has write caching enabled by default. Hell, DMA33 isn't even enabled by default ;) You are talking about controlling the IDE drive cache. The issue here is write cache in

general speed differences between 4.1.1-RELEASE and 4.3-RELEASE

2001-05-23 Thread Ed Hudson
howdy. maybe this has been discussed in 'hackers' or elsewhere, before - i can't find a reference via the search interface. i'm a long time freebsd user, and i've been struck by how much my systems (3 of them) have slowed down in its disk performance with 4.3-RELEASE,

Re: general speed differences between 4.1.1-RELEASE and 4.3-RELEASE

2001-05-23 Thread Mike Silbersack
On Wed, 23 May 2001, Ed Hudson wrote: howdy. maybe this has been discussed in 'hackers' or elsewhere, before - i can't find a reference via the search interface. i'm a long time freebsd user, and i've been struck by how much my systems (3 of them) have slowed down in

Re: general speed differences between 4.1.1-RELEASE and 4.3-RELEASE

2001-05-23 Thread Ed Hudson
Mike Silbersack [EMAIL PROTECTED] writes: Write caching is now off by default. man ata to see how to turn it back on. Mr. Silbersack, thank you very much. you've restored my systems to their pre-4.3 stunningly fast behavior. to the hackers group, i apologize for