Re: FreeBSD development on Mac OS
On 22/11/2010, at 13:32, m...@freebsd.org wrote: > My /etc/exports file on the Mac looks like: > > /data -maproot=mdf:admin -network 10.211.55.0-mask 255.255.255.0 > > as that's the IP range that parallels is using for its virtual machines. > > But when I try to mount from FreeBSD (as root) I get this error: > > RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak I just tried this on my MBP with parallels and it worked fine - I had maproot=0:0 though. Also, I mounted /Users - don't know if it makes a difference or if there is some other thing that needs tweaking first. -- 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
Re: changing label text in boot0
On 15/01/2011, at 22:10, Aryeh Friedman wrote: > I have 2 different versions of FB running on the same drive (-STABLE > and -CURRENT) and want to know a) is it possible and b) how to change > the boot0 "F?" labels so that "F1" (slice 1) is "FreeBSD-STABLE" and > "F2" (slice 2) is "FreeBSD-CURRENT" It isn't possible. The text is printed based on the partition ID (which is the same for both) and there is no room in there for any extra logic. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Scheduler question
Hi, I am writing a program which reads from a data acquisition chassis connected to a radar via USB. The interface is a Cypress FX2 and I am communicating via libusb. The program starts a thread which sits in a loop doing nothing but libusb_handle_events_timeout() which in turn runs a callback if a transfer is complete. Each transfer is in a struct which has a mutex and a 'done' flag (the former protects the later) which is set when the callback is run by libusb. The main thread sits in a loop waiting for the next transfer to be done and when it is copying data out to be further processed and then written out to disk and/or another process for some further mangling. After each USB transfer is done with (ie the main thread has passed it all out for further processing) the main thread re-submits it to libusb. I only have about 10 milliseconds of buffering (96kbyte FIFO, 8Mbyte/sec) in the hardware, however I have about 128Mb of USB requests queued up to libusb. hps@ informed me that libusb will only queue 16kbyte (2msec) in the kernel at one time although I have increased this. I hooked up a logic analyser and I can see most of the time it's fairly regularly transferring 16k of data every 2msec. If I load up the disk by, eg, tar -cf /dev/null /local0 I find it drops out and I can see gaps in the transfers until eventually the FIFO fills up and it stops. I am wondering if this is a scheduler problem (or I am expecting too much :) in that it is not running my libusb thread reliably under load. The other possibility is that it is a USB issue, although I am looking at using isochronous transfers instead of bulk. I just noticed that the USB controller and ATA controller share an IRQ, but I wouldn't expect that to cause a problem.. This is running on FreeBSD 8.1-STABLE, Core 2 Duo with ICH9 chipset. Thanks. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 04/02/2011, at 21:48, Ivan Voras wrote: >> I am wondering if this is a scheduler problem (or I am expecting too much :) >> in that it is not running my libusb thread reliably under load. The other >> possibility is that it is a USB issue, although I am looking at using >> isochronous transfers instead of bulk. > > I'm surprised this isn't complained about more often - I also regularly see > that file system activity blocks other, non-file-using processes which are > mostly CPU and memory intensive (but since I'm not running realtime things, > it fell under the "good enough" category). Maybe there is kind of global-ish > lock of some kind which the VM or the VFS hold which would interfere with > normal operation of other processes (maybe when the processes use malloc() to > grow their memory?). I guess for an interactive user anything less than 100msec is probably not noticeable unless it happens reasonably regularly when watching a video. > Could you try 2 things: > > 1) instead of doing file IO, could you directly use a disk device (e.g. > /dev/ad0), possibly with some more intensive utility than dd (e.g. "diskinfo > -vt") and see if there is any difference? OK, I'll give it a shot. > 2) if there is a difference in 1), try modifying your program to not > use malloc() in the critical path (if applicable) and/or use mlock(2)? It doesn't allocate memory once it's going, everything is preallocated before the data transfer starts. I'll have a go with mlock() and see what happens. Thanks :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 05/02/2011, at 11:09, Ivan Voras wrote: >> It doesn't allocate memory once it's going, everything is preallocated >> before the data transfer starts. >> >> I'll have a go with mlock() and see what happens. > > Did you find anything interesting? I'll be looking at it on Monday, I will let you know :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 05/02/2011, at 12:43, Daniel O'Connor wrote: > On 05/02/2011, at 11:09, Ivan Voras wrote: >>> It doesn't allocate memory once it's going, everything is preallocated >>> before the data transfer starts. >>> >>> I'll have a go with mlock() and see what happens. >> >> Did you find anything interesting? > > I'll be looking at it on Monday, I will let you know :) No luck with mlock() so it wouldn't appear to be paging is the issue :( -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 07/02/2011, at 13:02, Ivan Voras wrote: >>> I'll be looking at it on Monday, I will let you know :) >> >> No luck with mlock() so it wouldn't appear to be paging is the issue :( > > I'm also interested in raw device vs file system access! Oops, sorry.. I just tried that now but it doesn't improve things :( I am writing directly to /dev/ad10 but stressing /dev/ad14 (sudo tar -cf /dev/null /local0) It is interesting also that if I have md5's soaking up CPU then it's much less likely to start streaming properly and generally bombs out straight away. If I start it streaming and then start md5 it stays running... (even if it's rtprio'd) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 07/02/2011, at 21:07, Ivan Voras wrote: >>> I'm also interested in raw device vs file system access! >> >> Oops, sorry.. I just tried that now but it doesn't improve things :( > > Meaning: you still get jitter? Yes, well I didn't measure the read frequency but it dropped out (stopped streaming due to a full FIFO) no less often. >> I am writing directly to /dev/ad10 but stressing /dev/ad14 (sudo tar -cf >> /dev/null /local0) > > Can you do only one of those things? I.e. leave all the file systems > alone and just do something like 'diskinfo -vt /dev/ad14'? OK, I wrote the data to /dev/null from USB and ran diskutil in a loop and it doesn't drop out. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 07/02/2011, at 23:36, Ivan Voras wrote: >> OK, I wrote the data to /dev/null from USB and ran diskutil in a loop and it >> doesn't drop out. > > Maybe I misunderstood you and it's a different problem than what I was > experiencing; is this a better description of your problem: > > 1) you have a program communicating with a USB device > 2) it reads from the device and writes to a file > 3) you experience stalls when you write the data recived from the USB > device to the file but only if the file system you're writing on is > also loaded by something else - heavy reads? > > ? Yes, however CPU loading also seems to affect it. Unfortunately I don't have a useful measurement to show the problem - ie I don't have a metric which correlates with the hardware FIFO filling up. This makes the testing rather annoying :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: memstick.img is bloated with 7% 2K blocks of nulls
On 13/02/2011, at 8:45, Warren Block wrote: > On Sat, 12 Feb 2011, Tim Kientzle wrote: >> Alternatively, of course, is there any way to use >> isofs instead of ufs for memstick.img? > > Devin Teske's DruidBSD (http://druidbsd.sourceforge.net/) uses the same image > for CD, hard disk, or memstick. I don't know the technical details. > (VirtualBox didn't like it, but maybe it's a trivial fix.) I would guess it uses ISOLinux plus some voodoo hackery the same as various Linux distros which do the same trick. For work I have made a FAT32 USB stick which uses syslinux to load an MFS containing the loader & kernel and sysinstall then reads the install files off FAT32. I did it this way so that people using it could edit the configuration file without needing a BSD box handy. In theory the loader can read off FAT32 so the kernel could go onto the flash drive too, however I couldn't get it to work :( -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 11/02/2011, at 6:58, Matthew Dillon wrote: > It sounds like there are at least two issues involved. > > The first could be a buffer cache starvation issue due to the load on > the filesystem from the tar. If the usb program is doing any filesystem > operation at all, even at low bandwidths, it could be hitting blockages > due to the disk intensive tar eating up available buffer cache buffers > (e.g. causing an excessive ratio of dirty buffers vs clean buffers). > This would NOT be a scheduler problem per-say, but instead a kernel > resource management problem. OK.. Note that my program is split into 2 threads and queues up a large number of buffers. One thread just calls the libusb event handler so if the main thread is blocked for IO it should still run.. right? :) > The way to test this is to double-buffer or tripple-buffer the output > via shared memory. A pipe might not do the job if it gets stuck doing > direct transfers (I eventually gave up trying to optimize pipes in DFly > due to a similar problem and just run everything through a kernel buffer > now). Still, it may be possible to test against this particular problem > by having the program write to a pipe and another program or fork handle > the actual writing to the disk or filesystem. Hmm.. in effect I have this as I write all data to disk via mbuffer and this did help, but it still drops out which seems to indicate to me that my libusb event loop thread is being stalled. Note that the total CPU consumed by it is very low (<1%) and that thread does no I/O. > > Another way to test this is to comment out the writing in the usb program > entirely and see if things improve. If I write to /dev/null it works fine. > The second issue sounds more scheduler-related. Try running the > usb program at nice -20? You could even run it at a pseudo-realtime > priority using rtprio but nice -20 had better work properly against > a md5 or there is something seriously broken in the scheduler. Unfortunately neither of these improve things, I am pretty surprised a nice -20 or rtprio'd thread doesn't beat a pure CPU user doing no IO :( > > Dynamic priority handling is supposed to deal with this sort of thing > automatically, particularly if the usb program is not using a lot of > cpu, but sometimes it can't tell whether a newly-exec'd program is > going to be interactive or batch until after it has run for a while. > > Tuning initial conditions after an exec for the scheduler is not an > easy task. Simply giving a program a more batch/bulk-run priority on > exec and letting the dynamic priority shift it more to interactive > operation tends to mess up interactive shells in the face of > cpu-intensive system operation, for example. Theoretically dynamic > priority handling should bump up the priority for the usb program well > beyond any initial conditions for exec once it has been running a while, > assuming it doesn't use tons of cpu. Hmm.. It is unfortunate the hinting mechanisms are very coarse :( > An md5, or any single-file reading operation, would not overload the > buffer cache. File writing and/or multi-file operations (such as a > tar extraction or a tar-up) can create blockages in the buffer cache. The md5 process is just reading /dev/null - I run it to soak up the CPU because in production the system will be doing CPU intensive data analysis. > It takes a considerable amount of VM/buffer-cache tuning to get those > subsystems to pipeline properly and sometimes things can go stale and > stop pipelining properly for months without anyone realizing it. :( I am waiting on a new buffer card with 8 times bigger FIFOs which should help I hope.. Also I am writing a kernel driver in the hope it will be more robust :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 04/02/2011, at 13:26, Daniel O'Connor wrote: > I only have about 10 milliseconds of buffering (96kbyte FIFO, 8Mbyte/sec) in > the hardware, however I have about 128Mb of USB requests queued up to libusb. > hps@ informed me that libusb will only queue 16kbyte (2msec) in the kernel at > one time although I have increased this. We have upped the hardware FIFO size to 768kb, which is 91msec at 8Mb/sec, although due to the fact we only start reading out when it's 1/6th full the effective buffer is 75msec. It does seem much more resilient to CPU load, however heavy disk activity on the same drive still stalls it for too long :( Given the large buffering in the program it does seem very odd that it would stall for long enough unless both threads are slept while one is waiting for disk IO (which seems like a bug to me). BTW I have changed to -current (without WITNESS). -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Scheduler question
On 04/02/2011, at 13:26, Daniel O'Connor wrote: > I am writing a program which reads from a data acquisition chassis connected > to a radar via USB. The interface is a Cypress FX2 and I am communicating via > libusb. I ended up writing a kernel driver (thank you hps for usb_fifo_*!) and it has greatly improved things which is good news for me :) I will some of the tests suggested by various people soon, I have to wait for a new PC to do them though. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: listing all modules compiled into a kernel instance
On 01/03/2011, at 15:10, Carl wrote: > Kernel drivers can be (and in at least one case are) compiled into the kernel > but are not reported when queried for, at least not in a way that I am aware > of. For example, the ucom driver is present in the GENERIC kernel in this > way. My expectation was that "kldstat -v" would list it, if present, but it > does not. A design flaw? Sounds like a bug, but I'm not sure where.. Maybe ucom doesn't appear because it doesn't have a DRIVER_MODULE() declaration (because it isn't a driver). -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Add SUM sysctl
On 15/04/2011, at 17:03, rank1see...@gmail.com wrote: > I would like implementation of boolean sysctl var, that would show, is system > in a single user mode. > I would like it from 8.3 onwards. AFAIK the kernel doesn't have a "single user" mode. It's just that when you boot into single user mode it asks you want to run rather than starting /sbin/init. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Add SUM sysctl
On 15/04/2011, at 17:49, rank1see...@gmail.com wrote: >> On 15/04/2011, at 17:03, rank1see...@gmail.com wrote: >>> I would like implementation of boolean sysctl var, that would show, is > system in a single user mode. >>> I would like it from 8.3 onwards. >> >> AFAIK the kernel doesn't have a "single user" mode. >> >> It's just that when you boot into single user mode it asks you want to > run rather than starting /sbin/init. > > I see, but 'ps' shows /sbin/init as PID 1, in both SUM and MUM. > How can I fiducially ensure that I am in SUM. > On what to rely/look on. Oh oops, I guess the kernel runs init -s which then asks you.. > I wana put it in sh's function, for usage in scripts. Why? -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Add SUM sysctl
On 15/04/2011, at 19:12, rank1see...@gmail.com wrote: >> Oh oops, I guess the kernel runs init -s which then asks you.. > > So, what is solution? > Currently I need to mess with lookup, in env variables. > > It must cover cases of rebooting into SUM and drop from MUM (# shutdown > now) in SUM. There IS no "solution" because it isn't really a problem. You still didn't reply to my asking why you need to know.. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Add SUM sysctl
On 16/04/2011, at 13:14, rank1see...@gmail.com wrote: >> There IS no "solution" because it isn't really a problem. > > It is mine GOAL, to achieve. > >> You still didn't reply to my asking why you need to know.. > > Why?! > Because! > Why, why, why ...? > God told me! > Why Did the Chicken Cross the Road? > Why ... > Is it really a relevant for this discussion?! Yes, because there is no concept of single user mode to the kernel. That's why there is no sysctl for it. > I truly prefer focusing on a goal and finding a way of achieving it. > Your question is just an open road for an endless chater, with many new > roads, for splitting into endless subchaters ... > > I wana create an sh function, which returns 0 if sys is in SUM or return 1 > if in MUM. > Then I can use that function, wherever I want. > > I.e; (I CAN NOT BELIEVE I AM TYPING SO MUCH!) Get used to it, > If I use geli encryption AND I am upgrading from 8.2 to 8.3, then upon > rebuild of whole system, I must install kernel and world in a ONE SHOT! > (Just a rebuild of a same version of OS doesn't require this) > So I need to drop into SUM and install kernel and world, NOT regulary > install kernel, then reboot into SUM and then install world! > This is just a one scenario ... > Now that does it! > Do you know, or not, what should I look for, to prove that I am in SUM? (As > human I know when I am in SUM, as I initiate it, but scripts are retards, > so they need it, not me ...) > Simple as that. I think you're looking at it the wrong way. It isn't that being in multi user mode causes a problem as such, it's because something happens when you run /etc/rc which causes the problem. Your example doesn't say why you need to be in single user mode when using geli.. The only reason you need to be in single user mode during an upgrade is so that running programs don't find libraries ripped out from under them and then they crash. In that case you don't need to reboot into single user mode, you just make sure there aren't any non-kernel processes (besides sh) which are running. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Add SUM sysctl
On 16/04/2011, at 16:24, rank1see...@gmail.com wrote: >> >> In that case you don't need to reboot into single user mode, you just > make sure there aren't any non-kernel processes (besides sh) which are > running. > > I know all this!!! > I KNEW chatter would start to go this way! > After compilation of kernel and world in MUM, kernel is installed in MUM, > but to install world, we reboot into SUM, then install world. (HANDBOOK) > Now, in case of GELI usage AND if upgrading is taking place, i.e; 8.2 -> > 8.3, once you reboot into SUM to install world, you are doomed, BECAUSE > ... > Kernel will bitch (GELI part), about world->kernel mismatch and you won't > be able to install world as you cant decrypt geom providers!! > The only way to save yourself in that case is to restore /boot/kernel.old, > or one is doomed. > > So that is way, they both need to be installed in SUM, in one shot! Kernel > then world! > > But this is just a ONE example, of usage of THAT function! > Next time it won't be GELI case but something else. > And now I brag about encryption, compilation of world and kernel, bla, > bla..., what is NOT a subject, of this "thread" > > > DO YOU KNOW, what to look for, in sys that will indicate to my function, > that it is in SUM? Well, I give up. You aren't reading & thinking about what I'm writing. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Add SUM sysctl
On 16/04/2011, at 17:31, Freddie Cash wrote: >> DO YOU KNOW, what to look for, in sys that will indicate to my function, >> that it is in SUM? > > No network configured, no daemons running, just a single shell > running. IOW, everything can be done manually in MUM to "simulate" > SUM. My point is that the difference is only in your brain. The kernel doesn't know the difference because there isn't one. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: [LIBC] Modfied Version of sscanf
On 01/05/2011, at 2:14, Martin Möller wrote: > outputs total garbage on my FreeBSD-7.0-RELEASE #0 amd64. > Is there already a way to do this or should we release a new version of > sscanf, e.g. called sscanfWS. > > This modified version would output: Test 2->Test 3. I think it does what it should.. %s is supposed to stop at whitespace. You probably really want.. #include #include #include int main(int argc, char **argv) { char name [20], value [20]; int i; i = sscanf("Test 2->Test 3", "%[^-]->%[^-]", name, value); printf("%d %s->%s\n", i, name, value); exit(0); } -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Mapping /dev/gptid numbers to /dev/adXpY
On 25/07/2011, at 11:03, Stephen Hocking wrote: > Now this is all very interesting, but I would like to be able to map > that back to a /dev/adXpY device entry, so when I offline them I can > then go to the appropriate physical disk. I thought that gpart show -r > might help, but the numbers emitted from that don't match up. Looking > at the major/minor numbers of the devices don't help either. Does > anyone have an idea? If you run 'gpart list' you will see a list of device names and UUIDs. Mapping it by hand is a bit tedious though.. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Mapping /dev/gptid numbers to /dev/adXpY
On 25/07/2011, at 13:54, Stephen Hocking wrote: >> If you run 'gpart list' you will see a list of device names and UUIDs. >> >> Mapping it by hand is a bit tedious though.. >> > > > Both Test Rat & Daniel pointed me towards gpart list. The gpart man > page doesn't seem to mention the list command, which is probably why I > missed it. Anyways, now all I have to do is label my hotswap drawers > properly…. Yes, unfortunately(?) 'list' is a standard GEOM command so the part man page doesn't explicitly mention it.. IMO it would be nice if it did. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Best GB Nic for 8.2?
On 31/07/2011, at 16:53, Stephen Hocking wrote: > Am currently using an onboard GB nic, on my main fileserver (8.2 > 64bit, AMD, 8GB mem) which is seen as nfe0 (Nvidia, basically). Is > there a better one available? I have a one lane PCIe slot and any > number of PCI slots available. Any Intel one. They come in both PCI and PCIe forms. I have a.. Intel 82574L Gigabit Ethernet Controller (82574L) (that's the chip in it anyway, I can't remember the model number) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: best way to get distfiles added to ports.tgz during make release
On 28/08/2011, at 1:09, Aryeh Friedman wrote: > I have made a custom install USB drive from R/cdrom/dvd1 and pkg_add works > fine for everything but xorg/nvidia-driver so part of the post install > script I made is "portmaster xorg/nvidia-driver" the only problem is it then > needs to fetch the distfiles (the target install machine{s) will not have > nic's attached)... so my questoin is whats the best way to make it so when > sysinstall unpacks ./8.2-NHK_KIOSK/ports/ports.tgz that the distfiles are > also unpacked? I would suggest that you don't use ports :) If you want it all ready to go then build all the packages you want and add then in a script. Alternatively you can do what I do, and create a chroot, build all the ports you want, then tar it up and splat it onto the destination disk after a minimal install. That way you can tweak to your hearts content and it is considerably faster than pkg_add. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Detach USB Device Driver and Attach it to ugen driver at runtime
On 05/09/2011, at 23:10, Daniel Grech wrote: > Hi, I'm using libusb to gain access to raw USB Data from userspace. My > problem is that this library only works with devices which are treated as > generic devices ("handled by the ugen driver"). I need a mechanism that will > allow me to detach any device specific drivers that are attached to a device > and attach the ugen driver instead. I want to do this without re-compiling > the FreeBSD Kernel. Thanks in advance for your help. You can access the device via ugen even if a kernel driver has attached to it. I suspect you wouldn't be able to if the kernel driver that did attach is in use, but I am not sure. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: CAM framework for FLASH devices
On 23/09/2011, at 22:31, geoffrey levand wrote: > Could CAM framework be used for devices which do not support SCSI or ATA > commands natively, e.g. FLASH devices ? > I didn't find any examples for this case. > I'm developing PS3 flash device driver. Or is disk framework better in this > case ? > I used CAM for PS3 CDROM driver but it supports SCSI commands natively and > i liked it very much so i would like to use it for FLASH devices too. I don't think so - I think you want a GEOM class, e.g... http://osdir.com/ml/freebsd-geom/2009-04/msg8.html (I haven't really looked in detail though..) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: CAM framework for FLASH devices
On 24/09/2011, at 1:24, geoffrey levand wrote: > The interface to the PS3 flash device is NOT like normal NOR/NAND flash > interfaces. > The interface to the PS3 FLASH is abstracted by the hypervisor and it looks > like HDD to FreeBSD but has several logical units like SCSI devices. The > flash device supports write, read and flush operation. Sector size is 512 > byte. But it doesn't support any ATA or SCSI commands except flush. > I think you could use make_dev() etc.. although I haven't used it :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2]
On 28/09/2011, at 13:53, Arnaud Lacombe wrote: > https://github.com/lacombar/freebsd/commit/c1d5c4857361028dc40941273dd2ab9576c687fd > > This patch adds a KODIR_SYMBOLS variables which is to the kernel and > modules .symbols files what the KODIR variable is to the kernel and > modules files. By default ${KODIR_SYMBOLS} = ${KODIR}. Hooray, thanks :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Does anyone use nscd?
On 05/10/2011, at 2:30, Michel Talon wrote: > Des wrote: >> Does anyone actually use nscd? > > I am using it since a lot of time. I have not experienced annoying bugs > in all that time. The last time i have been hit is when installing some > new softs which require adding some user and some group with pw. Of > course this doesn't work well with caching these data, and i had > completely forgotten i was using a cache. This is very perplexing. > In my experience ncsd seems to cache negative hits forever, regardless of the setting for negative-time-to-live. If I am installing ports which create a new user or group I have to restart nscd. I also find if openldap dies (not infrequent) I have to restart nscd after restarting openldap.. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Does anyone use nscd?
On 05/10/2011, at 1:50, Dag-Erling Smørgrav wrote: > I ask because when I cleaned up a slew of aliasing bugs a couple of > years ago, I believe I may have introduced a bug; I got exactly two > complaints, and neither of the complainants could be bothered to try the > workaround I suggested and report back. > > Although the code quality is atrocious, nscd is actually a pretty good > idea. I suspect the reason why nobody uses it is that it's off by > default and people simply don't know about it. Besides nuking it, which > would be a shame, we have a range of options, from "just fixing the bug > so those who want to use it can" in one end to "finding someone willing > to clean it up and maintain it and enable it by default" in the other. > > (no, I'm not volunteering to maintain it) I'd be interested in testing your workaround(s) :) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Does anyone use nscd?
On 05/10/2011, at 19:13, Dag-Erling Smørgrav wrote: > "Daniel O'Connor" writes: >> I'd be interested in testing your workaround(s) :) > > It wasn't a workaround, actually, just a one-line change that enables > additional logging (when running with from the console -nst) which might > help me figure out why it crashes. See my reply to Artem Belevich > earlier in this thread. OK I'll dig it up.. > While we're at it, I'd be very grateful if someone could email me a > quick and dirty guide to setting up an LDAP server for testing. I have > too much on my plate right now to start reading documentation… Hmm, most of the heavy lifting for me was done by the net/smbldap-tools port but it was still fiddly and it was a while ago. Hopefully an LDAP guru can offer more :( -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Measuring memory footprint in C/C++ code on FreeBSD
On 21/10/2011, at 4:27, Razmig K wrote: >I think that it would be difficult to achieve the task in a > platform-transparent manner, that's why I'll be using /proc//status on > Linux, and do something else on FreeBSD. >I was adviced to have a look on getrusage, which I did, but I found > descriptions of certain fields of struct rusage in the manpage too cryptic to > make a proper use of the call. >Could someone please point me in the right direction? getrusage should be portable and the man page (at least on FreeBSD) explains each of the fields. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Checking for other kernel modules on load
On 28/12/2011, at 22:07, Chris Rees wrote: > Is there a simple way to check for existence of a driver? I could > even check for /dev/sndstat, though that doesn't seem elegant to me... kldstat -v, but really /dev/sndstat seems simpler and just as effective. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Rebooting/Halting system from kernel module
On 23/01/2012, at 13:33, Andrew Davis wrote: >> do you want to sync the disks first? of just hard reset? > > Why would anyone ever want to do that, you're a kernel mod, if you want to > do that just triple-fault. You can call cpu_reset(). I wrote a KLD which did this because we had a driver issue where the system wouldn't reboot if you did shutdown -r (it would hang). reset.c #include #include #include #include #include #include static int reset_handler(module_t mod, int /*modeventtype_t*/ what, void *arg); static moduledata_t mod_data= { "reset", reset_handler, 0 }; MODULE_VERSION(reset, 1); DECLARE_MODULE(reset, mod_data, SI_SUB_EXEC, SI_ORDER_ANY); static int reset_handler(module_t mod, int /*modeventtype_t*/ what, void *arg) { switch (what) { case MOD_LOAD: printf("Forced reboot\n"); DELAY(100); /* wait 1 sec for printf's to complete and be read */ /* cpu_boot(howto); */ /* doesn't do anything at the moment */ cpu_reset(); printf("Reset failed!\n"); /* NOTREACHED */ /* assuming reset worked */ break; default: return(EOPNOTSUPP); break; } return(ENXIO); } Makefile KMOD= reset SRCS= reset.c .include > On Sun, Jan 22, 2012 at 9:32 PM, Julian Elischer wrote: > >> On 1/22/12 2:19 AM, geoffrey levand wrote: >> >>> Hi, >>> >>> how would i reboot/halt the system from a kernel module ? >>> >> >> the answer is "that depends".. >> >> do you want to sync the disks first? of just hard reset? >> >> >> >> __**_ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**hackers<http://lists.freebsd.org/mailman/listinfo/freebsd-hackers> >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@** >> freebsd.org " >> > _______ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org" > -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Can I take a snapshot of the current stack for every thread in some process from outside?
On 03/03/2012, at 11:19, Yuri wrote: > I have the multithreaded process, each thread has some stack state at each > point of time. For example during the timer tick when processes are switched? > Is there a way to take a snapshot without disrupting a process? > > I was thinking gdb, but it requires the process to exit the system call to > attach (?). > DTrace is only activated particular sensors are crossed. > > So is there such a tool/command? Will gcore do what you want? -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: reverse USB driver - is it possible?
On 05/06/2012, at 2:45, Wojciech Puchar wrote: > So the only way to do this is to make a microcontroller based bridge or there > are such solutions already available? > > actually the only thing i want is CD/DVD USB simulator using file on my > laptop or even separate flash memory (pendrive). ISTR someone on the lists was talking about a device by http://i-odd.com which does what you want. I found http://renosite.com/ which is a home brew version of the same basic idea. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: trafficserver and raw disk access in FreeBSD
On 23/07/2012, at 11:17, ming@gmail.com wrote: > yeah, rules in devfs always work. and it may introduce more challenge on > operation management, is there any way that we can do it more clean? > > should we set the permission for :operator g+w on disks and partitions? > then we can put a dedicate user for trafficserver into operator group. I would change the ownership of the disk you want to use to trafficserver. This does mean you have double configuration (ie in devfs and ATS) but I think it's more sensible than giving operator write perms. AFAIK operator has read access so it can run dump. -- 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
Re: Custom FreeBSD usb memstick
On 09/11/2012, at 8:37, Sam Fourman Jr. wrote: > I have a interest in playing around with the scripts that create the > memstick image when you run make release... > can anyone point me in the right direction, how would I go about > modifying the size of the partition that gets created on the memstick > image It uses makefs to create an image that is just the right size for the files that are included. I wrote a script that will format a given device and splat the installer stuff on it, ie cat >make-usb.sh < ${TMPDIR}/mnt/etc/fstab sync umount "${TMPDIR}/mnt" rm -rf "${TMPDIR}" EOF The usage example is specific to my work - I have a big tarball full of preinstalled ports which the script copies to the USB key along with a script to install it, but you don't need that, just run.. sh ./make-usb.sh /dev/da1 /usr/obj/usr/src/release/release (Obviously /dev/da1 should be your USB key, check dmesg etc etc) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: FreeBSD for serious performance?
On 27/12/2012, at 13:44, Peter Jeremy wrote: >> I've only caught it hanging forever once. It only takes a few >> milliseconds to cause incoming data to be lost, > > I'm not sure what you mean by this. FreeBSD is not a real-time > operating system and so offers no guarantees on how long it will > take before incoming data will be processed. If you have an > application that relies on incoming data being processed within > milliseconds, you may need to do some redesign. In practise FreeBSD can actually do this (at least for moderate IO loads). At $work we use a USB interface to acquire ~10MB/sec from a data acquisition system which has a 96k FIFO (which is ~10 msec of buffering). We use 3ware RAID cards to write to disk on Supermicro boards though, you get what you pay for.. -- 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
Re: Chicken and egg, encrypted root FS on remote server
On 20/02/2013, at 21:43, Paul Schenkeveld wrote: >> What about getting a remote console like HP's ILO or Dell's DRAC ? >> >> You get to login remotely, you can use some degree of access control... you >> can even remote boot. > > For new hardware I could indeed use this, the current hardware does not > support remote console. > > I don't have experience with ILO nor DRAC but I do have experience with > SuperMicro's KVM over LAN which does need a java client to run. If I can > enter the passphrase over ssh that would be better as I can use any device > including a smartphone to dial in and enter the passphrase. If you setup a serial console you don't need Java if you use ipmitool, eg ipmitool -H remoteip -U ADMIN -I lanplus sol activate The way IPMI graphical console stuff _stinks_ - I spent several hours trying to help a customer and I was stymied at every level trying to work out how to use SSH port forwarding to have the console Java client connect to the remote server (for example, it ignores system wide SOCKS proxy settings). In the end I used tun forwarding which was just stupid - it really is written assuming everyone uses a VPN. There is no logic behind the use of the VNC protocol but bastardised enough that normal clients can connect. That inspired me to send a longer rant to Supermicro about it, maybe nothing will come of it but I feel better ;) -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: IPMI console [Re: Chicken and egg, encrypted root FS on remote server]
On 21/02/2013, at 9:06, "Steven Hartland" wrote: >> If I change the console redirect to com1, my screen stays blank. Would >> you perhaps know how to use com1 for redirect and connect to it using >> ipmi-console (or ipmi-tool)? > > We use the following on Supermicro servers works fine:- > http://blog.multiplay.co.uk/2012/12/freebsd-serial-over-lan/ Nice! BTW do you know what flag 0x20 does for UART? 0x10 is documented but 0x20 is not. I had a quick look at the code and AFAIK it doesn't do anything (on 9.1 anyway). Actually at a guess I would say it's a hangover from sio(4) where 0x20 forced the device in question to be the console. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: IPMI console [Re: Chicken and egg, encrypted root FS on remote server]
On 21/02/2013, at 19:33, "Steven Hartland" wrote: >> I had a quick look at the code and AFAIK it doesn't do anything (on 9.1 >> anyway). >> Actually at a guess I would say it's a hangover from sio(4) where 0x20 >> forced the >> device in question to be the console. > > According to the handbook, where I got the settings from, 0x20: > "Forces this unit to be the console (unless there is another higher priority > console), > regardless of the -h option discussed below. The flag 0x20 must be used > together with > the 0x10 flag." Yes but that is about sio, not uart. sio(4) has.. 0x00010 device is potential system console 0x00020 device is forced to become system console but uart(4) just has.. 0x00010 device is potential system console -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: KDE installation
On 23/06/2013, at 9:22, Ruben Dario Alvarado Tejada wrote: > I wonder if there is a functional procedure or guide on how to install KDE? > I have followed several online documentation in relation to install KDE and > nothing has worked for me, I guess I homitido a previous step before > installing KDE. > I made the installation with pkg_add-r kde | kde4, make install clean, > etc and I can not activate the interface. After install log out & in and replace any .xinitrc with.. /usr/local/kde4/bin/startkde Then run startx. Alternatively you can put kdm4_enable="YES" and reboot or run (as root) /usr/local/kde4/etc/rc.d/kdm4 start Then select KDE as your session type and login. -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
PCI slave performance (OT?)
Hi, We make a custom PCI card used for transferring data from our radar system acquisition chassis to a PC. It is rather old and we are looking at updating it but I would like to try and squeeze out as much performance as possible to satisfy our existing customers. It is a PCI slave only device using a PLX-9051 to read data from a FIFO. This means that we can't use prefetch or bursting because the PLX chip can throw data away in these circumstances :( Anecdotal evidence suggests that the maximum sustainable speed has dropped when we switched from 4.x to 6.x, but we also changed from i386 to amd64 and used different motherboard chipsets so it's difficult to know where the problem really lies. I plan on doing some tests to try and determine what is causing the slow down but I would appreciate any suggestions people may have :) One idea I did have was to get a dual core CPU and then one core would spend all its time reading from the PCI bus while the other did data processing, etc.. Any suggestions gratefully received! -- 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 pgpolRYWLUxiQ.pgp Description: PGP signature
sendto() giving EPERM outside a jail
Hi, I am trying to port miniupnpd (http://miniupnp.tuxfamily.org/) and by in large it seems to work fine (evil idea as it is :) However it spews out a lot of.. miniupnpd[13010]: sendto(udp_notify): Operation not permitted According to my reading of the man page it is not possible to get this error unless I'm using jails (which I'm not). The code in question does.. memset(&sockname, 0, sizeof(struct sockaddr_in)); sockname.sin_family = AF_INET; sockname.sin_port = htons(PORT); sockname.sin_addr.s_addr = inet_addr(UPNP_MCAST_ADDR); while(known_service_types[i]) { snprintf(bufr, sizeof(bufr), "NOTIFY * HTTP/1.1\r\n" "HOST:%s:%d\r\n" ... n = sendto(s, bufr, strlen(bufr), 0, (struct sockaddr *)&sockname, sizeof(struct sockaddr_in) ); (line 278 of miniupnpd.c). Can someone shed light on what the problem is? The application appears to work fine even with this error though. I am running it on a FreeBSD 6.2 system. Thanks. PS please CC me as I am not subscribed. -- 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 pgpLdpjJwDCzh.pgp Description: PGP signature
Re: sendto() giving EPERM outside a jail
On Thursday 22 March 2007 12:13, Julian Elischer wrote: > > According to my reading of the man page it is not possible to get this > > error unless I'm using jails (which I'm not). The code in question does.. > > you can get it from the firewall too.. Ahah, I guess my firewall rules aren't doing exactly what I though because adding a specific rule to allow the packets worked. Thanks! -- 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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendto() giving EPERM outside a jail
On Saturday 24 March 2007 02:47, Steve Watt wrote: > >According to my reading of the man page it is not possible to get this > > error unless I'm using jails (which I'm not). The code in question does.. > That's probably a buglet in the man page. I guess it would be nice if the man page(s) mentioned that a firewall could cause EPERM. I have seen it before with other apps but the sendto() confused me. > >Can someone shed light on what the problem is? The application appears to > > work fine even with this error though. > > man setsockopt, search for SO_BROADCAST. It doesn't say anything about EPERM. -- 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 pgpbuPm1YOglD.pgp Description: PGP signature
Re: sendto() giving EPERM outside a jail
On Wednesday 28 March 2007 10:54, Steve Watt wrote: > } I guess it would be nice if the man page(s) mentioned that a firewall > could } cause EPERM. I have seen it before with other apps but the sendto() > confused } me. > > It's one of those unpleasant interactions between pluggable subsystems, > so it's a bit tough to document -- there are various different firewalls > available, after all. True, but it doesn't matter which firewall you're using, the result is the same :) > } It doesn't say anything about EPERM. > > If you're sending broadcast broadcast or multicast datagrams, you need > to set the SO_BROADCAST socket option, as well. Ahh, understood. Still, it seems to work without that - the sendto() call works fine now I have explicitly allowed multicast. -- 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 pgp8bhBt9rcsU.pgp Description: PGP signature
Device sysctl confusion..
I am trying to automatically generate a description for a given device (eg what it's connected to) but I am having trouble with umass. The other disks I have tried (acd, ad, twed) all have dev.name.number sysctl nodes but umass disks seem to be inconsistently named. For example they appear in kern.disks as daX but the corresponding sysctl tree is dev.umass.X. I can add some code to handle it but it would be nice if it were fixed (if it really is broken :) -- 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 pgpTlr3Tx5FZX.pgp Description: PGP signature
Floppy detection probems with 6.2
I am installing FreeBSD 6.2/amd64 on a Supermicro P8SCT however the install kernel refuses to attach the floppy (it returns ENOMEM). If I boot the same kernel without the mfsroot image it sees it fine so. I am trying to find out more information about what memory is being used, etc.. Does anyone have a suggestion how I can do this? Thanks. -- 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 pgpMTyuwn03Vc.pgp Description: PGP signature
Re: Floppy detection probems with 6.2
On Wednesday 18 April 2007 00:43, M. Warner Losh wrote: > : I am trying to find out more information about what memory is being used, > : etc.. Does anyone have a suggestion how I can do this? > > Maybe we've come to the point in time that we need to do PIO for > floppies when we can't allocate enough memory for their DMA at boot. That'd be a nice fall back but it surely it can't be too hard to reserve some memory for stuff like this? -- 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 pgpLJ8wcfpxKI.pgp Description: PGP signature
Re: Floppy detection probems with 6.2
On Thursday 19 April 2007 11:57, M. Warner Losh wrote: > : That'd be a nice fall back but it surely it can't be too hard to reserve > : some memory for stuff like this? > > I think that there is a way... We only need ~20k for this... Is it perhaps that the loader puts the kernel low down in memory or something? (Wild guess..) -- 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 pgpKwmgvAs2AR.pgp Description: PGP signature
boot0 vs XP
I recently reinstalled Windows XP on my laptop (I barely use it but occasionally it comes in handy :) and when I did the install it made the base drive E (no idea why, and I couldn't see how to change it). Everything proceeds as usual and then I boot a CD to then jump start my system and run boot0cfg to re-write the boot loader. Alas the next time I boot Windows it logs me out straight after logging in. I do some googling and find that it is most likely that the signature bytes Windows uses to determine which drive is what have changed and it has now made the drive C:. Hence the swapfile location is now incorrect :( I was wondering if it would be possible to modify boot0cfg (and boot0 I guess) so that it avoids touching these bytes. I found some details here -> http://www.goodells.net/multiboot/partsigs.htm Basically it would appear to be the 4 bytes just before the partition table. I'm not sure how big boot0 is though :) -- 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 pgpXX0c1jTuew.pgp Description: PGP signature
Re: How to read events from usb keyboard/mouse
On Wed, 14 Nov 2007, Girish Venkatachalam wrote: > On 17:41:58 Nov 13, Mario Augusto Mania wrote: > > Hi All > > > > I user linux to make a multiseat system, but, i wold like to user > > freebsd to do it :). The problem is: how to read a evento from > > individual usb keyboard/mouse? In linux, i use evdev driver in xorg > > (or Xephyr modified), but, in FreeBSd? what i will use? > > I don't think xephyr/xnest would be the best way to do multiseat in > linux. I much prefer alternative approaches. Couldn't you just run N copies of X (one for each head) and tell them which mouse & keyboard device to use in each config file? ie don't use sysmouse or kbdmux. -- 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 signature.asc Description: This is a digitally signed message part.
Re: questions on development(7)
On Wed, 14 Nov 2007, Giorgos Keramidas wrote: > * Periodic 'imports' of the FreeBSD src/ tree as 'vendor' code > > * Incremental conversion of /home/ncvs/src in 'changesets' > > I've been using a 'converted' tree for almost a year and a half now, > to keep a local mirror of the src repository at `/ws/freebsd/head' on > my laptop. The first clean import of the current tree I am using was > done during last summer: I have seen a few Hg repos although I haven't found one for RELENG_7 [yet]. Also cvs20hg doesn't appear to grok Hg branches (probably because it predates them) and it would be Really Nice(tm) if it did. (ENOCLUE is my excuse for a lack of patches :) -- 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 signature.asc Description: This is a digitally signed message part.
Re: How to read events from usb keyboard/mouse
On Wed, 14 Nov 2007, Girish Venkatachalam wrote: > On 14:20:51 Nov 14, Daniel O'Connor wrote: > > Couldn't you just run N copies of X (one for each head) and tell > > them which mouse & keyboard device to use in each config file? > > > > ie don't use sysmouse or kbdmux. > > Try it. If it works let us know. :) > > Very unlikely. Why? > Nowadays all X display managers supply multiseat. So this might not > be too much of a problem if the mouse and keyboard events are kept > separated at the kernel level. Keyboard data would not be MUX'd if you didn't use kbdmux. Unless you use moused mouse events wouldn't be MUX'd. I haven't tried it since I lack the hardware ATM but.. why not? :) -- 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 signature.asc Description: This is a digitally signed message part.
Re: Linux executable picks up FreeBSD library over linux one and breaks
On Sun, 2 Dec 2007, Nikos Ntarmos wrote: > libraries under /compat/linux so that they match the FreeBSD > hierarchy (and teach ld-linux to use the same search path as the > native loader). And yet another solution is to teach the linuxolator > to first do an exhaustive search for libraries under /compat/linux > and only then fall back to native ones (this seems similar to the > above LD_LIBRARY_PATH incantation). The problem is that the dynamic linker is only opening files based on the search path & cache - it doesn't know it isn't on a real linux box. I think the only way to 'fix' it would be to kludge the linuxulator to treat ld.so specially but that would be pretty gross :( It IS a pain tho! :) -- 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 signature.asc Description: This is a digitally signed message part.
Re: Large array in KVM
On Fri, 7 Dec 2007, Ivan Voras wrote: > Gerald Heinig wrote: > > How about implementing your code as a system call, which is called > > from a process that maps a large file into memory, as you suggested > > above. > > What if the code is a device driver? Then the client process can do some leg work for it? :) If you explain what you are trying to achieve in more detail then people could comment on the best approach.. -- 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 signature.asc Description: This is a digitally signed message part.
Linux version of libusb that works with FreeBSD
I am wondering if anyone has tried building such a beast? ie a Lunux libusb that will be able to access devices in FreeBSD.. The reason I'd like it is that I want to use this http://rmdir.de/~michael/xilinx/ in FreeBSD so I can talk to a USB JTAG cable. The thing I am not sure about is how ioctl's would get mangled on the way through. I guess the other approach would be to use a standard Linux libusb but emulate the device tree it uses in Linux.. Would be a lot of work though I think. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Linux version of libusb that works with FreeBSD
On Mon, 17 Dec 2007, Alexander Leidinger wrote: > > The thing I am not sure about is how ioctl's would get mangled on > > the way through. > > They get interpreted as linux ioctl, as they are handled by the > linuxulator. You could try to write a wrapper there... Yeah.. Maybe an FS approach would be simpler since there is already a framework. > > I guess the other approach would be to use a standard Linux libusb > > but emulate the device tree it uses in Linux.. Would be a lot of > > work though I think. > > As long as you can specify the devices in the linux app, it's enough > to translate the ioctl's. Apart from that, there's some kind of > translation layer for devices already, but I don't know if it just a > Linux major/minor -> FreeBSD dev mapping, or if you can map linux dev > -> FreeBSD dev. Not sure I can specify the devices, but there's always ln :) > AFAIR HPS' USB stack has linux compatibility, maybe you should ask > him / have a look at it. I had a look at the code but I can't see any Linux related code. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Linux version of libusb that works with FreeBSD
On Mon, 17 Dec 2007, Mike Meyer wrote: > On Mon, 17 Dec 2007 16:26:58 +1030 "Daniel O'Connor" <[EMAIL PROTECTED]> wrote: > > I am wondering if anyone has tried building such a beast? > > ie a Lunux libusb that will be able to access devices in FreeBSD.. > > Well, the devel/libusb port builds out of the box for me. It's used > by a number of image grabbing tools (gphoto, sane and hplib), and by > tools like nut for talking to UPS systems. I want a *Linux* version of libusb that works on a FreeBSD box under emulation. I have a piece of software for which I can't obtain the source that accesses USB devices with libusb. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Stale mount on disconnected device: how to delete it?
On Tue, 18 Dec 2007, Nikos Ntarmos wrote: > Off the top of my head, what is wrong/hard with just logging a device > failure, discarding all remaining cached operations, and unmounting > the fs when a disk device goes missing? I understand that this is not > a viable solution for critical filesystems, but I can see nothing > wrong with this approach for removable devices and/or non-critical > fs's. There was a long, long thread which discussed this earlier. It's easy to say what should be done, it's harder to submit patches that clean up the respective failure modes. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Nvidia Driver w/RELENG_7
On Mon, 14 Jan 2008, Ali Mashtizadeh wrote: > Does anyone have the nvidia video driver working with releng 7? What > I am seeing is that the kernel module compiles and loads fine, but it > will not detect any video card. I've tried removing the agp device > from my BSD kernel and using nvidia's. Load the module in the loader rather than after the kernel has booted. acpi_video can also grab the device I believe.. I am running current (ie 8) and I ran -current when it was 7.x and loading it from the loader has always worked (modulo incompatible source changes :) -- 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 signature.asc Description: This is a digitally signed message part.
Re: mplayer failure /usr/ports/UPDATING entry 20070519
On Sat, 19 Jan 2008, KAYVEN RIESE wrote: > i followed a bunch of the instructions in /usr/ports/UPDATING entry > 20070519.. one failure was here: > > kv_bsd# /usr/local/sbin/portupgrade -Rf LibXft > ** No such installed package: LibXft > kv_bsd# > > i ignored it and went to the next step. i haven't done anything > about gstreamer, i THINK.. pkgdb -F seemed to go allright.. > but then when i was using mergebase.sh i noted that all of > the crucial varialbles were blank: It's spelt libXft (lowercase L) If the only conflicts you have are what was in your email I think you'll be fine.. Check what installed them with pkg_info -W to be sure. -- 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 signature.asc Description: This is a digitally signed message part.
Re: quotactl returns double values
On Sun, 10 Feb 2008, Ivan Georgiev wrote: > the values stored in my_st->dqb_bhardlimit and my_st->dqb_curblocks > are the real values times two, the hard limit on the user is 102400K, > but my_st->dqb_bhardlimit holds 204800K. > > Could someone please tell me what i am doing wrong. From my reading of the header I would say the quota is reported/set in terms of the number of 512 byte disk blocks rather than in kilobytes. -- 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 signature.asc Description: This is a digitally signed message part.
Re: emulate an end-of-media
On Tue, 26 Feb 2008, Alex Zbyslaw wrote: > Are there not (at least) two more alternatives? > > 1) Add gzip/zlib support to dump. That would seem easier than > new devices. Then -a would just work. > > 2) Instead of using cdrecord directly you have a wrapper which > "emulates" the dump -a behaviour by writing 650/700Mb of data using > cdrecord then prompting for the next cd. You don't close the pipe, > and dump should just block waiting for your "device" to be ready. > Might have trouble accessing /dev/tty - not sure. The general solution would be nicer, then you could compress & encrypt. Although I'm not sure it's so simple as adding SIGPIPE because at the end of the media the compressor will be holding some data that it has read but will never make it out to the media.. The only way I could think to solve this was to add an argument that specified a pipeline to stick after the data is generated but before it's fed to the output, although even then it gets a bit gnarly.. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Comments on pmake diffs for building on Linux
On Tue, 4 Mar 2008, M. Warner Losh wrote: > Greetings, > > here's a set of diffs that will allow FreeBSD's usr.bin/make to build > on Linux. I'm sure they are gross, and I don't plan to commit them > (at least not all of them), but I thought I'd post them here to see > what people think. > > I think that the extra config.h includes, the errc -> errx patches > and the Makefile.dist patches may be good for the tree. The rest may > not meet FreeBSD's source tree policies. > > Comments? I did this a while ago when porting some of our code to Linux because it builds with pmake.. Your patches are much nicer than mine however :) The tailq stuff could be shoved into a linux.h or some such.. So it's more obvious what it's for and why it's there. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Comments on pmake diffs for building on Linux
On Tue, 4 Mar 2008, Giorgos Keramidas wrote: > > The tailq stuff could be shoved into a linux.h or some such.. So > > it's more obvious what it's for and why it's there. > > Solaris lacks TAILQ_xxx stuff too, so I would prefer something like > "bsdcompat.h" or similar. Sounds good to me. notfreebsd.h :) -- 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 signature.asc Description: This is a digitally signed message part.
Re: valgrind on FreeBSD 7
On Tue, 18 Mar 2008, Mike Silbersack wrote: > Here's a tarball of what's in perforce right now. I tried it a > little bit, and it seemed to work for me. Make sure to install the > kernel module! > > http://www.silby.com/valgrind_freebsd_3.tar.gz > > But don't send me questions about it - I'm not an expert on it, I'm > just the guy who grabbed it from perforce and found that it seems to > work. :) Thanks for that (and to whomever is cutting the code)! Valgrind is an enormously helpful tool. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Vital Patches for ataraid with Intel Matrix RAID (ICH7)
On Thu, 20 Mar 2008, Stef Walter wrote: > Don't duplicate the RAID amoeba style if you boot with a drive > present that was detached from a RAID. This can happen if you manage > to get past the above panic problem. You'll end up with two devices > like ar0 and ar1. This can be a major mess if ar1 was already > contained active file systems. I have seen this bug in other ATA RAID implementations (VIA & Promise) too. From what I can tell this part of your patch is general to all ATA RAID arrays, right? I can be bad even with just ar0 - you can end up with ar0 & ar1 after a boot where ar0 is stale, it's awesome fun to debug :( -- 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 signature.asc Description: This is a digitally signed message part.
Re: Vital Patches for ataraid with Intel Matrix RAID (ICH7)
On Sat, 22 Mar 2008, Stef Walter wrote: > Daniel O'Connor wrote: > > I have seen this bug in other ATA RAID implementations (VIA & > > Promise) too. From what I can tell this part of your patch is > > general to all ATA RAID arrays, right? > > Yes, a small part. The part that will write out the RAID information > (thus updating the generation) whenever the status changes, > regardless of whether that change takes place when the machine is off > or not. I am fairly astonished that the ataraid code didn't do that already :( > Without testing, I can't be sure whether this solves the problem on > other ataraid devices. I don't have ready access to such systems anymore, we switched to 3ware controllers after seeing problems with broken arrays. -- 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 signature.asc Description: This is a digitally signed message part.
Re: Adding .db support to pkg_tools
On Tue, 13 May 2008, Tim Kientzle wrote: > > I think this is a really bad idea. The problem with the tools is > > not with the files. It is that the files need to be parsed on each > > run, often recursively, and your solution would not help at all. > > Parsing one file isn't expensive; parsing several hundred files > to find one bit of information is expensive. > > > The database(s) should just be a cache of the information stored in > > the files. > > Bingo! As long as the .db version can be easily recreated > from scratch from the master data stored in the same files > as always, it doesn't really matter if the BDB is occasionally > corrupted, as long as it can be rebuilt fairly quickly. So long as you can tell it is corrupted.. It's also a drag from a user POV when the tool crashes because the DB is hosed (seen in portupgrade a number of times) -- 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 signature.asc Description: This is a digitally signed message part.
Re: USB Install Method
On Thu, 15 May 2008, Sean Bruno wrote: > Does anyone have a pointer to a FreeBSD 7 install method for those of > us without CD/DVD Rom drives? > > The easiest way for me would be to boot off of a USB stick and then > install across the network, but I'm open to suggestions. The simplest way would be to get a USB CDROM drive. Note that it is likely you will need a version of FreeBSD released after this commit.. http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/boot/i386/btx/btx/btx.S?rev=1.46 Unfortunately as of today it will only be in a -current snapshot :( eg ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200805 You might be lucky and it will work but if not you will find the loader crashes (eg spins really fast writing register dumps to the screen..) It is fairly straight forward to create a USB key with FreeBSD on it but it requires a FreeBSD system to create it.. http://typo.submonkey.net/articles/2006/4/13/installing-freebsd-on-usb-stick-episode-2 (I haven't actually tried this but it looks OK - I have done it with FreesBIE though) -- 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 signature.asc Description: This is a digitally signed message part.
Re: BSD voice synthesis
On 03-Aug-99 Wes Peters wrote: > Try Free B S D. Tricks like that used to work well with the simple ones > available for "home" computers decades ago. (Anyone else here ever use > SAM "the Software Automated Mouth" for the Atari 800 or Commodore 64?) Personally I liked the speak: device for the Amiga.. type foobar.txt >speak:someoptionsgohere :) --- 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 pgpZsT8Ykg04z.pgp Description: PGP signature
Re: Jail syscalls
On 04-Aug-99 Matthew Dillon wrote: > I kinda like the second choice the best but the first choice is what > most > other system calls use. That doesn't make it right =) The second avoids the 'the data is different but the size is the same' problem which would seem to be not too uncommon.. --- 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 pgpFOORb26UPR.pgp Description: PGP signature
Re: fetch: default to passive mode?
On 05-Aug-99 Dag-Erling Smorgrav wrote: > "Chuck Youse" writes: > > I have a really strong urge to submit a PR to make fetch default to passive > > mode, instead of requiring a command-line switch ... > > fetch(1) honors FTP_PASSIVE_MODE. Speaking of fetch features.. Are there any plans to make fetch use a http proxy for ftp requests like ftp does? At the moment I usually do 'make FETCH_CMD=ftp' when making ports since it honours ftp_proxy (like wget, netscape and lynx) --- 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 pgpaOS8s9MfwZ.pgp Description: PGP signature
Re: fetch: default to passive mode?
On 06-Aug-99 John-Mark Gurney wrote: > metriclient-1,ttype,/tmp,501#tail squid.access > 933914913.491 3750 127.0.0.1 TCP_MISS/200 3816 GET > ftp://ftp.cdrom.com/config.txt - DIRECT/ftp.cdrom.com text/plain > > sure looks like it uses the http proxy, and this is on 3.0-R... Hmm.. sneaky :) I should have read the man page more thoroughly it would seem. --- 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 pgpAVH2wQu6Jt.pgp Description: PGP signature
Re: IDE quirk in 3.2-STABLE kernel ?
On 06-Aug-99 Wes Peters wrote: > Because it's wrong. If you don't believe me, buy a copy of the spec. Why > should we waste valuable developer time trying to support mis-configured > hardware? Since when has PC hardware followed the specs? --- 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 pgp7jl8N8NMAN.pgp Description: PGP signature
Re: IDE quirk in 3.2-STABLE kernel ?
On 06-Aug-99 Brian F. Feldman wrote: > > Since when has PC hardware followed the specs? > Since it was made to work? The problem here is that this person, for some > reason, is misconfiguring their system and expecting it to work as if it > were configured properly. Sure but a lot of PC's are shipped with a CDrom a secondary slave.. I'm not saying its RIGHT but it IS reality. --- 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 pgp95uomqNPMN.pgp Description: PGP signature
STAILQ macros..
Hi, I am looking at the STAILQ macros defined in and I am curious why it is necessary to declare stqh_last in the STAILQ_HEAD as a pointer to pointer, rather than just a pointer? (like the head pointer) Please don't laugh too hard.. my head hurts :) --- 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 pgpsX6Pyr7q88.pgp Description: PGP signature
Kernel malloc problem?
We are experiencing what appears to be a memory corruption problem with a kernel device driver running under FreeBSD 2.2.8-STABLE with the CAM patches. The driver manages a series of memory buffers implemented using a singly-linked tail list. The number and size of buffers may be changed via an ioctl call which causes all of the currently-allocated buffers (one per tail list element) to be deallocated, and a new set - matching the required buffer size - to be malloc'ed. The tail queue holding the newly- allocated buffers is a local copy, and not subject to change in the event of an interrupt meant for the driver. Given certain choices for the size and number of buffers, we are observing corruption of the local copy of the tail queue during and after the memory allocation process. The corruption usually takes the form of a NULL pointer overwriting the linking member of a queue element somewhere in the list, thus rendering some protions of the allocated memory to be "lost", or non-free-able. The particular combination of buffer size and number of buffers which exhibits the problem is: buffer_size = 8k + 8 bytes (8k buffer + link pointer etc) num_buffers >= 22. If less than 22 buffers are allocated, the list appears to remain intact. I'm not sure if it's relavant, but I note that 22 * 8k is just over the 256 kb size, while 21 * 8k is less than this total. Here is the snipet of code which builds the list -> STAILQ_INIT(&buildlist); gsio_tossbuffers(sc); /* dump old buffers */ i = args->value; while(i--) {/* allocate required buffers */ gb = malloc(sizeof(struct gsio_buf) + args->which, M_DEVBUF, M_NOWAIT); debug(BUF2, "g_freelist +> %p", gb); if (gb == NULL) { /* allocate failed, toss all * buffers */ debug(BUF, "failed to allocate buffers, freeing"); while ((gb = STAILQ_FIRST(&buildlist)) != NULL) { STAILQ_REMOVE_HEAD(&buildlist, g_link); free(gb, M_DEVBUF); } error = ENOMEM; break; } else { STAILQ_INSERT_HEAD(&buildlist, gb, g_link); debug(BUF, "New buffer at %p length 0x%x, next is %p ,tail is %p", gb, sizeof(struct gsio_buf) + args->which, gb->g_link.stqe_next, buildlist.stqh_last); } } --- 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 pgpW4KKiLTChh.pgp Description: PGP signature
Re: Kernel malloc problem?
On 11-Aug-99 Matthew Dillon wrote: > If the interrupt scans or in any way accesses the buffer list, > you have to disable interrupts temporarily using the appropriate > spl*() calls whenever your non-interrupt code (i.e. the ioctl code) > makes modifications to the list. Otherwise the interrupt might > occur while the list and/or buffers are in an invalid state. Yes we have splhigh() around code which modifies any of the lists/pointers that the interrupt routine calls. > If that isn't the problem, look for situations where you might > be corrupting memory within the driver. The two most common > situations are where you accidently leave references to a buffer > you just freed, or where you overrun a buffer. Yes, well the we can reproduce the corruption. One place it happens is during the construction of the list (the code I showed you). The list in question is used by _nothing_ else (the list is built and then 'transfered' to the list the interrupt handler will used). The corruption seems to occur while the list is being built, but only with some specific buffer sizes :-/ --- 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 pgp0QWldDwGK6.pgp Description: PGP signature
RE: libcompat proposition
On 12-Aug-99 Brian F. Feldman wrote: > What do you all think about growing a gnu subdirectory in src/lib/libcompat? > Things like a getopt_long implementation (yes, if it will be accepted, > I am volunteering to write it...) would go there, and all sorts of lame > GNU libc cruft that we can try to be more compatible with. Yay.. It would be quite handy.. No more digging through the source tree for a version of getopt.c and adding it by hand to the port.. --- 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 pgpiPJ5pL8WkD.pgp Description: PGP signature
Re: vnc on nat-proxy/firewall
On 17-Aug-99 Julian Elischer wrote: > vnc is cool, but also check out back-orafice > (not sure where you get it but the new one can take over NT as well as > W95) BO2K does NT (much to MS's chagrin)... --- 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 pgpkf2YCdExeH.pgp Description: PGP signature
RE: Need some advice regarding portable user IDs
On 18-Aug-99 Wilfredo Sanchez wrote: >I think the desired behaviour would be that since this is > effectively now Joe's zip disk, he should be able to do as he > pleases. One proposal might be to give the console user the > equivalent of root's priveledges on any removeable media he inserts > into the machine while he's logged in on the console. This solves > the immediate problem of permissions for Joe, since the file owners > are, on his machine and in this situation, largely irrelevant. > Presumably the console user is the one fiddling with the external > media. How about just adding some flags to mount and modifying UFS so that you can override the uid/gid on mount.. I assume you mean Joe uses something like sudo so he can mount the disk.. So allow users to use the fancy new mount command (with certain limitations on the mountable device node of course...) >As another example, a similar situation often comes up on the net > with tar files containing UIDs and GIDs other than zero. Add an option to tar to override UID's and GID's.. Not that you can chown a file as non root anyway, but it IS annoying when you untar something as root to find the files are owned by some weird UID:GID. >One problem with my proposal (setting security and perhaps other > implications aside for the moment), is that knowing what media is > removeable is becoming increasingly difficult. Hot-swappable drives > (eg. FireWire) are effectively removeable, and may be transported > between machines fairly regularly. Furthermore, your "internal" > drives, which are presently presumed to be local, may be on the same > bus and indistinguishable from the "external" drives. And hot swappable internal drives don't help the distinction either :) > "foreign" that you need to do something special. Certainly you might > want to ignore setuid bits, for starters. This could simply be > something like fstab, which lists the local drives, and everything > else isn't considered local. Another mount option? You could have UID:GID override mount options, and you can already mount an FS and have the kernel ignore setuid. (-o nosuid, nodev, noexec(maybe)) You could even use umapfs (assuming it works) and write some nice shell scripts to do it automatically.. Alternativly you could just use MSDOSFS for all intermachine transfers, its crap, but everything reads it and you don't get those nasty UID:GID problems either ;) --- 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 pgphQ66QZ63Mx.pgp Description: PGP signature
Re: RE: Need some advice regarding portable user IDs
On 18-Aug-99 Wilfredo Sanchez wrote: >Joe doesn't use the shell. The Finder will do this for him; when > you insert a floppy in Mac OS, it gets mounted and shows up on your > desktop. This is the case with all media. Yes... Why is this a FreeBSD problem then? I would have thought it would be up to MacOS to do the UID remapping (I must be missing something) > support that? Are we mapping UID's to something meaningful? How? > Or is Joe a superuser for that volume? Which volumes get treated > this way, and how to you choose them? If you want proper username mapping shouldn't you be using a distributed user map (like NIS)? --- 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 pgpcnbn7ErOjY.pgp Description: PGP signature
Re: Need some advice regarding portable user IDs
On 18-Aug-99 Warner Losh wrote: > : you can override the uid/gid on mount.. I assume you mean Joe uses > : something like sudo so he can mount the disk.. > Doesn't umapfs do that? Yes.. half way through reading the mail I realised and didn't re-edit it.. IMHO being abe to override UID:GID's would be useful in a normal mount because umapfs adds more complexity to work. (Though I can see that doing it in the various FS's would suck royally) --- 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 pgpgpEh9AhbHY.pgp Description: PGP signature
Re: Need some advice regarding portable user IDs
On 18-Aug-99 Warner Losh wrote: > I don't understand the objection... umapfs is generic and relatively > small I don't know if it actually works under FreeBSD-stable or > -current, but it is in the tree. Well I don't know if it works either.. I thought someone fixed it, but it might be broken again :) --- 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 pgpmkECOXzeod.pgp Description: PGP signature
Re: RE: Need some advice regarding portable user IDs
On 18-Aug-99 Wilfredo Sanchez wrote: >I'm trying to support a user experience similar to Mac OS using > BSD underneath (for Mac OS version 10). The goal being simplicity > for the user, which I think might interest some FreeBSD users as well > as my customers. Right.. sorry, I didn't mean to sound rude :) > | map (like NIS)? >And what happens accross NIS domains? Design failure :) I suppose you could carry a UID, GID mapping on the disks, and have mount look out for it.. If you had a 'removable disk' flag in /etc/fstab, then have the kernel look for those files, and use umapfs with them on the mounted FS. It could be rather dangerous security wise though.. Maybe have an option somewhere else (sysctl?) that tells mount wether removable disks are allowed to have files that are executable/devices/s[ug]id on it. (ie automatically have -o noexec,nosuid,nodevice done automatically based on user prefs) If there where no mapping files on the disk have a default setting.. Perhaps you could 'sign' the files on the disk so that when you inserted it, it checked the mapping files where signed by someone so you could opt to trust certain people, and have less restrictive options for their disks. You could even have it so it asks for your key phrase (thinking pgp/ssh terms) when you insert the disk so you can verify the person, which would prevent someone getting a disk trusted by you and modifying it and using it in your machine. Ahh, the complexities are endless :) --- 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 pgp7B5q3NN7QE.pgp Description: PGP signature
Re: RE: Need some advice regarding portable user IDs
On 18-Aug-99 Wilfredo Sanchez wrote: > when new media is available and it will try to mount it. The present > behaviour in Mac OS X Server is that everything mounted this way is > trusted, though the Finder should be requesting nosetuid; I should > check that. It's also possible that the kernel will number drives in > a different order (eg. /dev/sd0a this boot might be /dev/sd1a next > boot), particularly if you are shuffling drives around. (Remember > that hot-swap complicates this.) So a string like "/dev/sd0a" in > fstab is fragile, and it works out better if we keep that information > on the mounted media rather than on the root volume. You could wire all the disks down.. :) What happens with conflicting names? --- 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 pgpnBvN6vWP6u.pgp Description: PGP signature
Re: Mandatory locking?
On 23-Aug-99 Greg Lehey wrote: > I'm a little surprised that there's any objection to the concept of > mandatory locking. In transaction processing, locking is not > optional, and if any process at all can access a file or set of files > without locking, you can't guarantee the database integrity. Other > OSs have used mandatory locking for decades, and System V has it too. > So far I haven't seen any arguments, let alone valid ones, against > having it in FreeBSD. I think its a good idea, and hey if people object it can always be an option like -> option NO_MANDATORY_LOCKING Phew, that was tough. --- 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 pgpUZ9kdbjmC7.pgp Description: PGP signature
Re: Are the ethernet drivers time dependent?
On 28-Aug-99 Kris Kirby wrote: > It's not a bandwidth issue; it's a speed issue. I'm trying to find an > extremely cheap way to get data in and out of a PC. I've got the > National Semiconductor application sheets for the 8392(?) and plan on > using one "cut in half": Half duplex, but split into seperate TX and RX > lines. I'm also looking at a scaleable way to go up or down in speed, > without dealing with async... A layer two device if you will. RS232? RS485? VERY cheap and the later is at least moderatly resistant to noise :) --- 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 pgp8bbWvlBYhq.pgp Description: PGP signature
Re: Are the ethernet drivers time dependent?
On 28-Aug-99 Kris Kirby wrote: > > RS232? RS485? VERY cheap and the later is at least moderatly resistant to > > noise > Noise shouldn't be an issue. It's going to be handling "clean" data. By > cheap, I mean $5 a pop or so. I've got a few 3C503s that I feel like > cutting into. I'm going to be bearing the financial end of this project > of mine, so I'm going to save where I can. :-) Well serial ports come free on all new computers ;) --- 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 pgpo36oVrfpsb.pgp Description: PGP signature
RE: Cheap link (was: Are the ethernet drivers time dependent?)
On 28-Aug-99 Greg Lehey wrote: > So what's wrong with PLIP? Last time I used it, I was getting about > 50 kB/s out of it. PLIP has a terrible CPU/speed ratio.. You have to busy wait while bashing the parallel port which is just yech :( --- 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 pgpgYrcq723gK.pgp Description: PGP signature
Re: Are the ethernet drivers time dependent?
On 28-Aug-99 Kris Kirby wrote: > Both. The problem is that you can't cram a signal moving at 10 Mbps > through a radio interface designed for 256K, even if it is bandwidth > limited to 256K. I'm hoping the 3C503 is ancient enough that I can slow > it down by yanking it's 20. MHz crystal oscillator and feeding it a > lower speed signal. I'm going to walk them down to see just how far I > can go. After all, 2 Mbps isn't bad, it just requires a little more > work. Ahh eeww :) I hope you have a lot of spare time ;) --- 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 pgpR88YTe9T4t.pgp Description: PGP signature
Re: CS Project
On 09-Sep-99 Gustavo V G C Rios wrote: > > I would be able to see any other proccess which i am not the owner, top > > would not be (there was a mistaken in the sentece above, it was > in lack of "not" ) > > > would indicated, only 8 proccess, for this current scenario. > > > > do you understand now, what i meant? > > > > Linux already have such a facility! Hack ps and turn off procfs :) --- 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 pgpe89Jezshou.pgp Description: PGP signature
RE: CS Project
On 09-Sep-99 Jason Young wrote: > > Hack ps and turn off procfs :) > I would think it more appropriate to adjust procfs' permissions in the > kernel such that a user couldn't look at processes they don't own, > i.e., can't cd or look into /proc/$PIDTHEYDONTOWN. Adding group-read > for wheel or operator or a special new group would be good for things > that must see all the processes. Like this: Well.. that doesn't sound *too* complex either. Would make an interesting CS project :) > queried by an unpriveleged user (chdir to /proc/$PIDEXISTSBUTNOTYOURS > would return ENOENT instead of EACCES), you deny brute force attacks > to find out if a PID exists and by who it is owned. That increases > privacy a bit. Yes. it depends on your level of paranoia. > After all that, one could implement a 'ps' command that would use only > procfs for process info. Procfs would need to export some more info, I It would be a good idea anyway.. I think someone has one floating around anyway. > allowed to. This should be controlled by sysctls like (placement based > on nfs and ffs sysctl placement precedent): Or even a mount option to procfs :) > I think the idea (of a procfs ps) was shot down on the lists some time > ago because ps needs to retain the ability to look at the process list > in a kernel coredump. IMHO that's a lot of messy kvm groveling and > associated kernel-to-userland sync dependencies, just to cater to the > (generous figure) 0.5% of the people out there who have 1) a crashing > FreeBSD box and 2) the expertise and the will to debug the crash dump. > I think that issue needs to be revisited somehow. Well.. I do use crash dumps, but rarely use ps on them.. Even so you could have 2 implementations of ps, or a ps which allows you to compile in a different 'back end'. That way you can use either easily. > Unfortunately I don't have my proposal written in diff(1) at the > moment, but writing all this out makes me really want to go ahead and > do it. Then again, somebody DID ask for a CS project. :) Heh :) --- 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 pgpp8moQf25oh.pgp Description: PGP signature
RE: CS Project
On 09-Sep-99 Jason Young wrote: > After some thought, I think the mount option idea is best. I hadn't > thought of that before. One might want to apply different procfs > security policies to different mounts of procfs, especially in a > jail() situation. Good call. Yeah, you'd have to make sure procfs doesn't mind being mounted multiple times, something I'm not sure is true. > This would make the change transparent to both users and developers. > SGID can still be removed - a developer/debugger will already be root > or have had to chown the dump/kernel files to do any debugging. My thought too :) > It would be mild bloat, but disk is cheap, and a disk space to > debugging ease tradeoff has already been made (to the tune of several > megs!) by the decision to build debug kernels by default. I agree with > that. One could also #ifdef the kvm version. Yeah.. well I await the patches 8-) --- 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 pgpEA77kDiCmT.pgp Description: PGP signature
RE: damn ATX power supplies...
On 09-Sep-99 Luigi Rizzo wrote: > any idea on how to force ATX power supplies to restart after a power > outage without having someone press the 'power' button on the front > panel ? All the motherboards i can find now have their bios with two > options: There are no jumpers on the mobo to help with this? The ones I have seen (Supermicro and Epox) are labelled 'Save PD State' and 'PIIX4 Ctl'..The later is the one you want. --- 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 pgpso8tnezCu7.pgp Description: PGP signature