ladmins that cannot type a command

2013-05-03 Thread Dieter BSD
good for today and future ladmins that cannot type a command. Any USEFUL proposals that add some real functionality? Since this will enable more people to run FreeBSD that otherwise wouldn't give it a second glance, I would say it is VERY useful. Really? How useful is FreeBSD going to be

Re: receiving aerial digital TV

2013-02-01 Thread Dieter BSD
[ This topic is better discussed in -multimedia@, suggest that followups drop -hackers@ ] i am out of current knowledge about common TV for about 10 years. Currently in Poland there is aerial TV broadcasted in DVB-T standard. There are TVs with builtin decoder/demodulator or separate

Re: HDD write cache

2013-02-01 Thread Dieter BSD
Wojciech writes: after reading quite recent topics about disabling/enabling write cache, i tried to test in on desktop 3.5 drive kern.cam.ada.write_cache: 1 kern.cam.ada.read_ahead: 1 kern.cam.ada.0.read_ahead: -1 kern.cam.ada.0.write_cache: -1 i tried writing 1 or 0 to

Re: IBM blade server abysmal disk write performances

2013-01-19 Thread Dieter BSD
Stefan writes: I seem to remember, that drives of that time required the write cache to be enabled to get any speed-up from tagged commands. This was no risk with SCSI drives, since the cache did not make the drives lye about command completion (i.e. the status for the write was only returned

Re: IBM blade server abysmal disk write performances

2013-01-18 Thread Dieter BSD
Wojciech writes: If computer have UPS then write caching is fine. even if FreeBSD crash, disk would write data That is incorrect. A UPS reduces the risk, but does not eliminate it. It is impossible to completely eliminate the risk of having the write cache on. If you care about your data you

Re: IBM blade server abysmal disk write performances

2013-01-18 Thread Dieter BSD
successfully modified a BSD based device driver in the past giving major performance improvement. If I were a C-level exec of a Fortune 500 company I'd just hire some device driver wizard. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: IBM blade server abysmal disk write performances

2013-01-18 Thread Dieter BSD
Matthew writes: There is also no information in the original email as to which direction the I/O was being sent. In one of the followups, Karim reported: # dd if=/dev/zero of=foo count=10 bs=1024000 10+0 records in 10+0 records out 1024 bytes transferred in 19.615134 secs (522046

Re: IBM blade server abysmal disk write performances

2013-01-17 Thread Dieter BSD
, and queuing should get you more than that. Your SATA drive is getting the expected performance, which means that NCQ must be working. Please let me know if there is anything you would like me to run on the BSD 9.1 system to help diagnose this issue? Looking at the mpt driver, a verbose boot may give more

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Dieter BSD
Karim writes: dd to the raw drive and no compression/encryption or some other features, just a naive boot off a live 9.1 CD then dd (see below). The following results have been gathered on the FreeBSD 9.1 system: # dd if=/dev/zero of=toto count=100 100+0 records in 100+0 records out 51200

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Dieter BSD
I wrote: The kernel must be doing write-behind even to a raw disk, otherwise waiting for write(2) to return before issuing the next write would slow it down as Matthew suggests. And a minute after hitting send, I remembered that FreeBSD does not provide the traditional raw disk devices, e.g.

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Dieter BSD
25.9 MB/s Even Linux is pretty slow. Transfer rates: outside: 102400 kbytes in 0.685483 sec = 149384 kbytes/sec middle:102400 kbytes in 0.747424 sec = 137004 kbytes/sec inside:102400 kbytes in 1.051036 sec = 97428 kbytes/sec That's more

Re: IBM blade server abysmal disk write performances

2013-01-15 Thread Dieter BSD
Karim writes: It is quite obvious that something is awfully slow on SAS drives, whatever it is and regardless of OS comparison. We swapped the SAS drives for SATA and we're seeing much higher speeds. Basically on par with what we were expecting (roughly 300 to 400 times faster then what we

Re: Vice versa of 'pkg_info -W'

2013-01-03 Thread Dieter BSD
Domagoj writes: I've attempted to grep '/usr/ports/*/*/pkg-plist' for 'bin/lynx' and shot myself in a foot! :P Even if it did returned sane amount of matches, speed was atrocious. time find /usr/ports/ -name pkg-plist | xargs grep bin/lynx$ /usr/ports/finance/ledgersmb/pkg-plist:@dirrm

Re: FreeBSD for serious performance?

2012-12-26 Thread Dieter BSD
of any of them. Back before FreeBSD existed, I did manage to make a significant improvement to a driver in a BSD-derived system, so I'm not a complete idiot. Several different drivers cause the same problem. Are they all making the same mistake? Or is there a problem in something they all use? Whether

Re: FreeBSD for serious performance?

2012-12-25 Thread Dieter BSD
Which device drivers?  We can't fix problems we don't know about. ata(4) completely hung the system for 19 minutes (at which point I manually intervened, see the PR), probably an infinite loop. http://www.freebsd.org/cgi/query-pr.cgi?pr=170675 Siis(4) and ahci(4) have also caused data loss,

Re: NetBSD's boot select MBR

2012-12-15 Thread Dieter BSD
Domagoj writes: MBR supports max of 4 slices/partitions. 4 primary partitions, there are the extended/logical partitions, which allow more. The '/usr/mdec/mbr_bootsel', which you've mentioned, is equivalent to FreeBSD's '/boot/boot0', which is tuned via 'boot0cfg' util. It will also show

NetBSD's boot select MBR

2012-12-13 Thread Dieter BSD
[ from the FreeBSD for serious performance? thread ] So I use NetBSD's MBR for disks I want to boot from. Can I have a CMD sequence? First would be ... # fetch ... Read NetBSD's fdisk(8) and mbr(8). The MBR is only 512 bytes, and must contain the code and data. This is very limiting,

Re: FreeBSD for serious performance?

2012-12-11 Thread Dieter BSD
(or grub2) can do it. Back when I was triple-booting FreeBSD, NetBSD and Linux I used grub (rev number forgotten). It was supposed to be able to boot BSD from a partition but I never got that to work. I had to have it boot the MBR of a different disk which then booted BSD. I wrote 3 little shell scripts

Re: FreeBSD for serious performance?

2012-12-09 Thread Dieter BSD
NCQ, but neither attach to the nforce4-ultra, which does support NCQ. I knew that NCQ would be required for acceptable performance and gave up other useful features to get it. Silly me, assuming that the performance orientated version of BSD would support such an essential performance feature

Re: FreeBSD for serious performance?

2012-12-09 Thread Dieter BSD
[ lack of SATA NCQ support for nforce4-ultra ] Adrian writes: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=e2e031eb09760c36099ac127eeb175e06d257aef which is: The mcp61 has bug with ncq. - { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA), SWNCQ }, - {

FreeBSD for serious performance? (was: Re: 9.x -- New Install -- serious partition misalignment)

2012-12-08 Thread Dieter BSD
hardware where people are often trying to squeeze out that last drop of performance, Linux is certainly a steaming pile of crap. BSD is orders of magnitude better, but hey, that doesn't take much. But don't brag about high-end hardware.  But FreeBSD has dropped support for even semi-high-end hardware

Re: old style kernel configuration

2012-11-23 Thread Dieter BSD
Julian writes: it is however a good way to get mismatching kernel and userland but that's not what we are discussing. The method recommended on http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html # make buildkernel KERNCONF=MYKERNEL is also a good way to get

Re: Memory reserves or lack thereof

2012-11-11 Thread Dieter BSD
Alan writes: In conclusion, I think it's time that we change M_NOWAIT so that it doesn't dig any deeper into the cache/free page queues than M_WAITOK does and reintroduce a M_USE_RESERVE-like flag that says dig deep into the cache/free page queues.  The trouble is that we then need to identify

Re: FreeBSD 8.0 suddenly freezing

2012-09-20 Thread Dieter BSD
In the last 72 hours, we've had two different systems freeze; they don't apparently recognize any interrupts, they won't respond to ping, and they require a powercycle to reboot. We can't easily generate an NMI on these boxes. Just on the off chance, does this sound like a familiar -- and

Re: How to diagnose system freezes?

2012-08-27 Thread Dieter BSD
Yuri writes: Anything else I can try? One thing of importance here is that there is an older graphics card 9400 GT on this system and current nvidia-driver-295.71 has an issue with 9400 GT: it makes graphics to malfunction (unpainted windows, long delays switching to terminal mode) or

Re: How to diagnose system freezes?

2012-08-03 Thread Dieter BSD
Adrian writes: the cycle over a short period may not be the driver writing the same crap to the card. I've seen similar failure modes in windows where during playback, if the system hangs for whatever reason, the card plays the last sample over and over in a loop. Ok, that makes sense.  So it

Re: How to diagnose system freezes?

2012-08-02 Thread Dieter BSD
Yuri writes: One of my 9.1-BETA1 systems periodically freezes. If sound was playing, it would usually cycle with a very short period. And system stops being sensitive to keyboard/mouse. Also ping of this system doesn't get a response. So the sound continues, on and off, while everything else

Re: Awful FreeBSD 9 block IO performance in KVM

2012-07-22 Thread Dieter BSD
da0: 3.300MB/s transfers da0: Command Queueing enabled root@freebsd:/root # dd if=/dev/zero of=/dev/da1 bs=16384 count=262144 4294967296 bytes transferred in 615.840721 secs (6974153 bytes/sec) 1) Does a larger block size (bs=1m) help? 2) That's roughly the speed I'd expect without

Re: Pull in upstream before 9.1 code freeze?

2012-07-17 Thread Dieter BSD
Why not create a command wtf(1)? there are really lot of good features that can be made in FreeBSD. actually good, instead of that crap While this is certainly not the most important improvement that could be made (Fix the PRs!), the proposed wtf command could be useful. And, importantly,

Re: Training wheels for commandline

2012-07-05 Thread Dieter BSD
As long as it can be toggled off system-wide, persistently (sysctl?), I can't see the harm in bringing that in. It violates the Unix Philosophy. Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new features.

geom metadata (Re: [CFC/CFT] large changes in the loader(8) code)

2012-06-28 Thread Dieter BSD
These schemes to just put the metadata in some special location and have all the tools know about it create a lot of problems. There is always some tool that doesn't know. There is always some human that doesn't know. Telling the difference between real metadata and some other data that happens to

Re: Freeze when running freebsd-update

2012-06-27 Thread Dieter BSD
Robert writes: 3) the box is responsive to hitting enter at the console (it produces another login: prompt) Getty is in memory and can run. 5) if I try to login to the console, it lets me enter a username then locks up totally, it does not present me with a password: prompt. Login(1) is

Re: Freeze when running freebsd-update

2012-06-27 Thread Dieter BSD
Robert writes: 3) the box is responsive to hitting enter at the console (it produces another login: prompt) Getty is in memory and can run. 5) if I try to login to the console, it lets me enter a username then locks up totally, it does not present me with a password: prompt. Login(1) is

Re: Freeze when running freebsd-update

2012-06-26 Thread Dieter BSD
Robert writes: 3) the box is responsive to hitting enter at the console (it produces another login: prompt) Getty is in memory and can run. 5) if I try to login to the console, it lets me enter a username then locks up totally, it does not present me with a password: prompt. Login(1) is not

Re: MAGIC with HP KVM - someone will help?

2012-06-23 Thread Dieter BSD
Wojciech writes: 1) i know for a friend that on some motherboards (it was embedded VIA based CPU) geli doesn't work at typing password. 2) in my case (as well as his case) problems happen everytime kernel function cngets is used, it maybe after being unable to mount root in a kernel prompt.

Re: how to turn my computer into a TV

2012-06-22 Thread Dieter BSD
user.vdr writes: As long as there remain some NTSC broadcasts, there might be some that you wish to watch. That's why I wrote: Yes, technically there are still some that exist, for now. However, their death certificate is signed and they're so few that it's not worth mentioning. If you

Re: how to turn my computer into a TV

2012-06-22 Thread Dieter BSD
user.vdr writes: Tuners do NOT provide raw audio/video to the system in any case. http://corona.homeunix.net/cx88wiki/Overview/RawVideo While that's technically possible in _some_ cases, and assuming it's fully implemented and functional, I'm unaware of any software that actually provides

(no subject)

2012-06-21 Thread Dieter BSD
user.vdr writes: Recording doesn't require any compression unless you are transcoding in real-time. There's no difference between recording ATSC, NTSC, PAL, etc, and it's actually irrelevant what the stream is. This is incorrect. ATSC is compressed before broadcast, so you receive the data

Re: how to turn my computer into a TV

2012-06-18 Thread Dieter BSD
user.vdr writes: Recording doesn't require any compression unless you are transcoding in real-time. There's no difference between recording ATSC, NTSC, PAL, etc, and it's actually irrelevant what the stream is. This is incorrect.  ATSC is compressed before broadcast, so you receive the data

Re: EFI development tools

2012-06-18 Thread Dieter BSD
This is a known issue, and had been around for a long time. You can't reliably build 32 bit binaries (what the -m32 flag specifies) on a 64 bit system. The header files (and possibly other things) are wrong. People build 32 bit binaries on 64 bit systems all the time. It is called

Re: how to turn my computer into a TV

2012-06-17 Thread Dieter BSD
[ Added multimedia@ as that is a more appropriate list than hackers ] I just moved into a very cramped apartment we are using a broadcast signal only [current US {NYC} standards] You'll need to know if you have any NTSC (analog) stations you care about or if everything is ATSC (digital).  

Re: FreeBSD Boot Times

2012-06-14 Thread Dieter BSD
Brandon writes: Booting into Ubuntu minimal or my own custom Linux distro, literally takes 0.5-2 seconds to boot up to shell 0.5-2 seconds from power-on to a shell prompt?  How do you get through the firmware that fast, much less firmware plus an OS? Which reminds me, back when I was

Re: Solving the great resource problem

2012-06-14 Thread Dieter BSD
on, and which are the most useful. Replacing perfectly good components simply because they are GPL. The purpose of BSD is supposed to be creating a great OS, not providing software hoarders with a supply of free code to abuse. Sending people to conferences. Nice, but clearly a luxury. Meanwhile

Re: GSoC Project: Automated Kernel Crash Reporting System - Discussion

2012-05-25 Thread Dieter BSD
1) tar up files 2) encrypt tarball 3) copy encrypted tarball with rcp, ftp, uucp, ... ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: csh builtin command problems

2012-05-10 Thread Dieter BSD
Robert writes: I want this: # echo test\ttest test # cat test test    test I have given up on using echo for anything the least bit fancy, in favor of printf(1) which gives much better control. printf test\ttest\n ___ freebsd-hackers@freebsd.org

Re: Ways to promote FreeBSD?

2012-05-04 Thread Dieter BSD
*WHY* is Linux so much more popular than the BSDs? GPL vs BSDL ? (Create a GPLed BSD and see if it takes off.) the obese cartoon penguin? Do most people actually prefer the lower quality product? Popularity is inversly proportional to quality in many areas, not just OSes. marketing

Re: Is there any modern alternative to pstack?

2012-04-16 Thread Dieter BSD
Konstantin Belousov wrote: My opinion is that such tool should be imported into the base. Why? Don't optional tools belong in ports? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

mlock/mlockall (was: Re: problems with mmap() and disk caching)

2012-04-10 Thread Dieter BSD
Andrey writes: Wired memory: kernel memory and yes, application may get wired memory through mlock()/mlockall(), but I haven't seen any real application which calls mlock(). Apps with real time considerations may need to lock memory to prevent having to wait for page/swap.

Re: Graphical Terminal Environment

2012-04-09 Thread Dieter BSD
Brandon writes: I'm still avidly trying to work on this idea, but right now the issue seems to be with AMD and NVIDIA not documenting their protocols. Intel does a good job, but I don't have any Intel chips with graphics laying around. I thought that AMD had documented most of it by now, with

Re: mlock(2) man page errata

2012-03-30 Thread Dieter BSD
mlock(2) says: A single process can mlock() the minimum of a system-wide ``wired pages'' limit and the per-process RLIMIT_MEMLOCK resource limit. Shouldn't this say maximum rather than minimum? I don't think so.  The minimum of the two would be the limit that you will hit first, and

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-03-30 Thread Dieter BSD
Subsequent inspection suggested that it was happening during the periodic daily, though we never managed to get it to happen by manually forcing periodic daily, so that's only a theory. Perhaps due to a bunch of VMs all running periodic daily at the same time? We had a perfectly functional,

mlock(2) man page errata

2012-03-29 Thread Dieter BSD
mlock(2) says: A single process can mlock() the minimum of a system-wide ``wired pages'' limit and the per-process RLIMIT_MEMLOCK resource limit. Shouldn't this say maximum rather than minimum? [EAGAIN] Locking the indicated range would exceed either the system or per-process limit for

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-03-29 Thread Dieter BSD
FreeBSD ?? - 7.4 never crash FreeBSD 8.0 - 8.2 crashes Obvious short term workaround is to run production on 7.4 (assuming you can) until you figure out what is wrong with 8.x. What filesystem(s) are you running? UFS? ZFS? other? started randomly disconnecting people every morning Due to

Reigning in disk cache buffer hogs

2012-03-18 Thread Dieter BSD
amd64 4 GiB nVidia nForce CK804 (aka nforce4-ultra), SiI3132, JMB363 sata disks FreeBSD 8.2 FFS/SU Problem: I/O to one disk can fill up the disk buffer cache, starving other processes of disk I/O.  If the other processes are logging real time data (from a closed source black box), then data is

Re: Graphical Terminal Environment

2012-03-06 Thread Dieter BSD
Brandon writes: (If you haven't noticed, I'm going to keep finding excuses to write this as I really am kindof excited to learn/work on it) ideas: Display PostScript rio (from Plan 9) If you're mainly looking for a low-level graphics project, maybe reverse engineer something on the GPU (e.g.

Re: OS support for fault tolerance

2012-02-24 Thread Dieter BSD
The problem then is how to feed both machines the same inputs, and compare the outputs. Do we need a third machine to supervise? Can we have each machine keep an eye on the other, avoiding the need for a third machine? A pair would work as long as the only failures are obvious (e.g.

Re: OS support for fault tolerance

2012-02-20 Thread Dieter BSD
Rayson writes: The question is, are we planning to handle 95% of the errors for 99% of the hardware we run on, or are we really planning to spend years trying to design something that would require special hardware support? I assume this started as: Oh look, most CPUs have multiple cores

Re: Getting PRs fixed

2012-01-19 Thread Dieter BSD
Igor writes: You mean something like: http://people.freebsd.org/~edwin/gnats/ ? Daniel writes: http://www.oook.cz/bsd/prstats/ Yes, something like these. Stephen writes: You should get extra points for difficult PR's. One way to measure this would be to give more points for fixing older

Re: Giant lock gone?

2012-01-19 Thread Dieter BSD
The original goal for 5.0 was to completely remove the Giant lock (and do other cool SMP-related stuff). Eventually it was realized that this was too big a goal to fully accomplish in 5.0 (albeit too late in the process) and the goal was changed to do the basic framework for the new SMP

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Dieter BSD
John writes: - EOL 7 - mark 8 as legacy - mark 9 as the _only_ production release - release 10.0 in January 2017 Until a few days ago 8 was the latest, shinest release. So you want to suddenly demote it all the way down to legacy? I thought the goal was to have releases that can be used for a

Giant lock gone? (was: Re: ...focus, longevity, and lifecycle)

2012-01-18 Thread Dieter BSD
The original goal for 5.0 was to completely remove the Giant lock (and do other cool SMP-related stuff). Eventually it was realized that this was too big a goal to fully accomplish in 5.0 (albeit too late in the process) and the goal was changed to do the basic framework for the new SMP

Getting PRs fixed (was: Re: ...focus, longevity, and lifecycle)

2012-01-18 Thread Dieter BSD
Andriy writes: And dealing with PRs is not always exciting. Neither is brushing your teeth or cleaning the kitchen, but most of us manage to do them at least occasionally. Part of being a grown up. Instead of looking for a stick to hold over developers to get them to fix PRs, let's look for

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Dieter BSD
Atom writes: i bought myself a LENOVO T510 when it first came out, around early 2010. it's got an i5 CPU and Arrandale GPU. it's two years old and on freeBSD i STILL can't run xorg properly with it. I have a machine from 2005-08 that FreeBSD still doesn't support properly in 2012. After much

Re: Sound on the system briefly interrupts when kde4 switches windows with nvidia card

2012-01-15 Thread Dieter BSD
I have kde4 on 8.2 with translucency windows effect enabled and nvidia graphics driver. Every time I switch an active window or maximize some window, sound played by mplayer interrupts for ~0.5 sec. Very annoying effect. Problem disappears when windows effects in kde4 are turned off. Is this

Re: cron(8) mis-feature with @reboot long after system startup

2011-11-25 Thread Dieter BSD
The system doesn't go multiuser until the rc jobs complete, even if you attempt to background them with ''.  This can be a problem with long running jobs.  I started using cron @reboot for this reason. I haven't run into the problem since I've never needed to run /etc/rc.d/cron restart. Add an

Re: easy way to determine if a stream or fd is seekable

2011-11-20 Thread Dieter BSD
something like the following inside lseek() would take care of tape drives:        if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {                if (ioctl(io-fd, FIODTYPE, type) == -1)                        err(1, %s, io-name);                if (type D_TAPE)                        

Re: easy way to determine if a stream or fd is seekable

2011-11-17 Thread Dieter BSD
lseek() on a tape drive does not return an error, nor does it actually do anything. IIRC some tape drives can seek, while others cannot. Vague memories that it is supposed to be possible to put a filesystem on a DECtape and mount the filesystem. It might be that FreeBSD doesn't currently

Re: checksum offload

2011-09-19 Thread Dieter BSD
The data sheet for intel 82576 advertises IP TX/RX checksum offload but the driver does not set CSUM_IP in ifp-if_hwassist. Does this mean that driver (and chip) do not support IP TX checksum offload or the support for TX is not yet included in the driver? The first question is is checksum

Re: checksum offload

2011-09-18 Thread Dieter BSD
The data sheet for intel 82576 advertises IP TX/RX checksum offload but the driver does not set CSUM_IP in ifp-if_hwassist. Does this mean that driver (and chip) do not support IP TX checksum offload or the support for TX is not yet included in the driver? The first question is is checksum

Re: excessive use of gettimeofday(2) and other syscalls

2011-09-09 Thread Dieter BSD
Firefox 5 and 6 has more gettimeofday call than 2 per second on my amd64-8.2-stable box. i don't see why chromium needs to call gettimeofday(2) or any library function that triggers it more than 3000 times a second. What the BLEEP are web browsers doing that they need the clock so

optimum fs param sizes (was: ZFS installs on HD with 4k physical...)

2011-08-22 Thread Dieter BSD
I guess formatting the filesystem for 4k sectors on a 512b drive would still work but it would be suboptimal.  What would the performance penalty be in reality? It would be suboptimal but only for the slight waste of space that would have otherwise been reclaimed if the block or fragment

Re: CONF class of files

2011-06-19 Thread Dieter BSD
CONFDIR is for base, not ports Perhaps ${BASE_CONF_DIR}, ${PORTS_CONF_DIR}, ... ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Testing a change to printf(9)

2011-06-07 Thread Dieter BSD
I've been working on fixing problems with printf(9), log(9) and related functions.  Today I tried converting printf(9) to write to the log rather than directly to the console, unless the log is not open, in which case the message is also sent to the console. Printf(...) is now the same as

Re: Testing a change to printf(9)

2011-06-07 Thread Dieter BSD
I've been working on fixing problems with printf(9), log(9) and related functions. Today I tried converting printf(9) to write to the log rather than directly to the console, unless the log is not open, in which case the message is also sent to the console. Printf(...) is now the same as

Re: compiler warnings (was: Re: [rfc] a few kern.mk and bsd.sys.mk related changes)

2011-05-31 Thread Dieter BSD
please keep in mind that -Wfoo does reflect the ideas of the GNU people regarding *proper* code. the warnings themselves are sometimes wrong, because they complain about perfectly correct code. I attempted to get the gcc people to improve this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9072

Re: Active slice, only for a next boot

2011-05-31 Thread Dieter BSD
Peter writes: A better approach is to be able to boot whatever slice you want without having to change the active slice. NetBSD can do this. The MBR puts up a menu of the bootable slices on the disk being booted. You can allow the timer to time out and boot the default. Or you can enter the

Re: Active slice, only for a next boot

2011-05-30 Thread Dieter BSD
I have i.e; 3 slices, of which first is active. Now I wana set slice 2 active, but only for a one/next boot. Once slice 2 is booted and system is shutdown or rebooted, once again, first slice is active and booted, without user's intervention. I think that setting the active slice is the wrong

Re: compiler warnings (was: Re: [rfc] a few kern.mk and bsd.sys.mk related changes)

2011-05-30 Thread Dieter BSD
maybe we find some nice -Wwarning options which are reasonable to have -Wmissing-declarations -Wimplicit FreeBSD's gcc doesn't seem to have  -Wcoercion  ??? Bugzilla indicates that it was added years ago (2006?). It would be really really nice if -static worked on (nearly) everything. and -

Re: compiler warnings (was: Re: [rfc] a few kern.mk and bsd.sys.mk related changes)

2011-05-30 Thread Dieter BSD
Chris writes: Ports need attention. The warnings I get there are frightening. I find it comforting that they're just that: warnings. How do they frighten you? High quality code does not have any warnings. The most frightening thing is the attitute that They're just warnings, so I'll ignore

Re: [RELEASE] New Boot-Loader Menu

2011-05-08 Thread Dieter BSD
There's really only room for one or two more menu items. Perhaps some items could be moved to a 2nd level menu? 1) boot multiuser mode ( default ) 2) boot single user mode 3) menu to set boot options 4) help Would be nice: a fix for having to lean on a key autorepeating for a couple seconds.

Re: [RELEASE] New Boot-Loader Menu

2011-04-30 Thread Dieter BSD
___ 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: [RELEASE] New Boot-Loader Menu

2011-04-30 Thread Dieter BSD
[ attempt #2 - grumble - sorry about the blank message, hope it works this time - grumble- ] I hope that works for serial console.  VT100 may be a reasonable default in that case, but it would be good to make sure that menu works even on a dumb terminal. Perhaps we should put 'key' letter in

Re: [RELEASE] New Boot-Loader Menu

2011-04-30 Thread Dieter BSD
Already on the to-do list is to support ``loader_logo=...'' in /boot/loader.conf Including an option for no logo? (For consoles that are slow and/or small, and for people that just don't like the logos.) Putting brackets around letters (and numbers) sounds good. If there is room, perhaps add

Re: CFT: final patches for NGROUPS16

2009-06-18 Thread ttw+bsd
posted patches to this effect some months ago. they needed some clean-up and validation but the also mapped correctly into an RPC_NGROUPS_MAX and IPC_NGROUPS_MAX for consistent (and possibly dynamic) mapping to those problem areas. they build and run but are untested beyond that. i do not

Re: does Copyright on source files expire ?

2009-03-26 Thread ttw+bsd
On 25.03-05:31, David Schultz wrote: [ ... ] A person's Copyright doesn't go away just because they die, disappear, or fail to respond. If you can't contact them, their heirs, or whomever they transferred the Copyright to, you're stuck. yeah but it's a little like finding something. if there

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread ttw+bsd
On 23.03-00:39, David Schultz wrote: [ ... ] There's already a kern.ngroups sysctl, but there are many places where `ngroups' needs to be used in preference to NGROUPS in the kernel. In userland, sysconf(_SC_NGROUPS_MAX) needs to be used in preference to NGROUPS_MAX. you will also note that,

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread ttw+bsd
On 22.03-22:33, Boris Kochergin wrote: Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read-only tunable that can be set

Re: removal of NGROUPS_MAX dependancy from base

2009-02-22 Thread ttw+bsd
On 21.02-22:49, Julian Elischer wrote: [ ... ] this patch should remove the dependancy on the definition of NGROUPS_MAX as a static constant and implement it as a writable sysconf variable of the same. it should also make the necessary changes to the codebase to support those. [ ... ] What

removal of NGROUPS_MAX dependancy from base

2009-02-13 Thread ttw+bsd
attached is the first in a series of patches that is intended to remove the current limitation on group membership. this patch should remove the dependancy on the definition of NGROUPS_MAX as a static constant and implement it as a writable sysconf variable of the same. it should also make the

6.0-STABLE powerd: eating my keyboard input

2005-11-23 Thread BSD
Hi all, I just upgraded from 6.0-RELEASE to -STABLE today (FreeBSD 6.0-STABLE #0: Thu Nov 24 00:40:48 WET 2005). After the upgrade I couldn't login anymore, so I thought I probably erased master.passwd by mistake with mergemaster, and rebooted into single user mode. Here I reset both root

Kernel options

2004-07-28 Thread bsd hack
Hi, I am working with the Kernel config file to optimize it and also to improve the overall security of the system! I have the following quetions: (1) There are a few options that are not available in the default kernel... like the IPFIREWALL options(and the like)... I basically need to

Kernel GENERIC config file

2004-07-27 Thread bsd hack
Hi, I need the kernel GENERIC config file for freebsd 4.7. I am able to find only the config file for freeBSD 5.2 online... can n'ybody either mail me the freeBSD 4.7 GENERIC file or gimme a link to it? Thank you. HKR - Do you

FreeBSD 5.2 and ACPI

2004-07-20 Thread bsd hack
Hi, I am building a custom kernel with FreeBSD 5.2... I need to disable ACPI (otherwise the system fails to recognize the disk!!) ... so is it fine if I just do a make and then a make install of the new kernel and then add hint.acpi.0.disabled to /boot/loader.conf ? or is anything to be

FreeBSD Custom Kernel

2004-07-16 Thread bsd hack
Hi All, I have a few basic questions regarding building a custom Kernel: (1) Once I configure, make and make install the custom kernel... it will get written to /boot/kernel. Now I have already made a backup of the working kernel. what I need to know is when I get the boot loader

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-08 Thread BSD
On Thu, Jan 08, 2004 at 04:10:38PM -0600, Matthew D. Fuller wrote: On Thu, Jan 08, 2004 at 07:36:10AM -0800 I heard the voice of Avleen Vig, and lo! it spake thus: If I understand you right.. A floppy boot, which loads the absolutely basic stuff (network drivers, and some easy way to

My jail can not ssh..

2003-09-15 Thread maillist bsd
Hi , I am just testing jail on my FreeBSD4.8-stable box, i found i can not ssh to the jail environment, but i can telnet to jail environment, the sshd is running both inside and outside jail. What's the problem. With following link is i ask in www.freebsdforums.org .

about /usr/ports make with options..

2003-08-22 Thread maillist bsd
hi all, as i install a lot package work together, such apache+php+mysql.. i always download the source code compile by myself, it just need to make with some options such as .. make --prefix=/usr/local/apache --enable-module=so But i found someone said install by /usr/ports also can do that,

IP Network Multipathing failover on FreeBSD..??

2003-08-14 Thread maillist bsd
Hi all, Is it there have IP Network Multipathing failover on FreeBSD..?? how to do so?? Thanks ³Ì·s¹aÁn±À¤¶:¤Q­±®I¥ñ¡A¦hÁÂ¥¢ÅÊ¡A¤ß²H... http://ringtone.yahoo.com.hk ___ [EMAIL PROTECTED] mailing list

System Crash - please help me figure it out...

2003-06-09 Thread bsd
Dear Hackers, I have experienced a system crash for the first time in 10 months (last year in august I had a vinum issue which has been resolved with your help). Fortunately I still have a kernel with debugging enabled running, and the gdbmods script, so I can submit some useful data with

Re: System Crash - please help me figure it out...

2003-06-09 Thread bsd
[EMAIL PROTECTED] writes: Dear Hackers, I have experienced a system crash for the first time in 10 months (last year in august I had a vinum issue which has been resolved with your help). Fortunately I still have a kernel with debugging enabled running, and the gdbmods script, so I can

  1   2   >