Re: csh script help

2017-04-14 Thread Chuck Swiger
Hi-- On Apr 14, 2017, at 11:32 AM, Ernie Luzar <luzar...@gmail.com> wrote: > Chuck Swiger wrote: >> On Apr 14, 2017, at 6:47 AM, Ernie Luzar <luzar...@gmail.com> wrote: >>> To aid in debugging the script I'm writing, I place "echo" commands >

Re: csh script help

2017-04-14 Thread Chuck Swiger
On Apr 14, 2017, at 6:47 AM, Ernie Luzar wrote: > To aid in debugging the script I'm writing, I place "echo" commands > throughout so I can kind of have a trace of the logic as different conditions > are processed. Normally I just delete these "echo" commands after I get the

Re: pidfile_open incorrectly returns EAGAIN when pidfile is locked

2013-03-14 Thread Chuck Swiger
Hi-- On Mar 14, 2013, at 9:50 AM, John Baldwin wrote: On Thursday, March 14, 2013 12:29:58 pm Pawel Jakub Dawidek wrote: [ ... ] Heh, I did consider that as well, but here you check errno twice, instead of once. Guys, is there anything wrong with the patch I proposed? I'm sure the

Re: Enhancing the user experience with tcsh

2012-02-12 Thread Chuck Swiger
On Feb 11, 2012, at 11:05 PM, Gonzalo Nemmi wrote: Joel, with all due respect, do you really think that 99.9% of all users will not find the _non_intrusive_ additions below useful? bindkey \e[1~ beginning-of-line #make Home key work; bindkey \e[2~ overwrite-mode #make Ins key work; bindkey

Re: Enhancing the user experience with tcsh

2012-02-12 Thread Chuck Swiger
On Feb 12, 2012, at 9:16 AM, Chris Rees wrote: So do I, but would these hurt you? At the present time, no. (At one point, I was using a keyboard where the arrow keys generated ESC-[ 1 ~ through 4, IIRC, but I haven't been on console on it in some time.) I think it's insane that by default the

Re: Enhancing the user experience with tcsh

2012-02-10 Thread Chuck Swiger
On Feb 10, 2012, at 2:12 PM, Andriy Gapon wrote: I really hate the default behavior of less where you can't quit via ^C or via paging through the end of file. It's readily tunable, by setenv'ing LESS variable to contain some of: -e or --quit-at-eof Causes less to

Re: timeouts too long bug again...

2012-01-26 Thread Chuck Swiger
On Jan 26, 2012, at 11:08 AM, Luigi Rizzo wrote: In sep.2009 i noticed that usleep() select() and friends (including the in-kernel callouts) would consistently take one tick longer than they should, and committed a fix to sys/kern/kern_timeout.c to HEAD and RELENG_8 Sounds like the tvtohz()

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
On Jan 4, 2012, at 12:44 PM, Dan The Man wrote: Even a backlog of a 1000 is large compared to the default listen queue size of around 50 or 128. And if you can drain 1000 connections per second, a 65K backlog is big enough that plenty of clients (I'm thinking web-browsers here in

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
On Jan 4, 2012, at 12:22 PM, Dan The Man wrote: Trying to stress test a framework here that tosses 100k of connections into a listen queue before doing anything, I realize I'll have to use multiple local IPs get get around port limitations, but why is this backlog using a limit? Even a

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
On Jan 4, 2012, at 1:03 PM, Dan The Man wrote: However, I'm not convinced that it is useful to do this. At some point, you are better off timing out and retrying via exponential backoff than you are queuing hundreds of thousands of connections in the hopes that they will eventually be

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
On Jan 4, 2012, at 1:49 PM, Arnaud Lacombe wrote: Hi, On Wed, Jan 4, 2012 at 4:42 PM, Chuck Swiger cswi...@mac.com wrote: On Jan 4, 2012, at 1:03 PM, Dan The Man wrote: However, I'm not convinced that it is useful to do this. At some point, you are better off timing out and retrying via

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
Hi-- On Jan 4, 2012, at 2:23 PM, Dan The Man wrote: It is not arbitrary. Systems ought to provide sensible limits, which can be adjusted if needed and appropriate. The fact that a system might have 50,000 file descriptors globally available does not mean that it would be OK for any

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
On Jan 4, 2012, at 4:09 PM, Dan The Man wrote: With the new IBM developments underway of 16 core atom processors and hundreds of gigabytes of memory, surely a backlog of 100k is manageable. Or what about the future of 500 core systems with a terrabyte of memory, 100k listen queue could be

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-01-04 Thread Chuck Swiger
Hi, Xin-- On Jan 4, 2012, at 5:32 PM, Xin Li wrote: I am personally quite convinced that FreeBSD should make such change though -- having more than 64K of outstanding and unhandled connections does not sound a great idea (i.e. it's not a connection limit after all, but the pending handle

Re: spamcop abuse of power

2011-11-17 Thread Chuck Swiger
On Nov 17, 2011, at 5:37 AM, Dan The Man wrote: Today I had an unhappy unix student try to submit an assignment to me and could not. Spamcop has decided to go off blacklisting all yahoo/shaw etc servers worldwide. I'm seeing about 40 spams per month from Yahoo's *.bullet.mail.sp2.yahoo.com;

Re: MAXLOGNAME + /etc/group + chkgrp invalid character @

2011-11-08 Thread Chuck Swiger
On Nov 8, 2011, at 3:47 PM, Dan The Man wrote: In the daily cron Daily run output email always get the following: Verifying group file syntax: chkgrp: /etc/group: line 3: '@' invalid character chkgrp expects group names to consist of characters in isalnum(). Could we modify system to

Re: MAXLOGNAME + /etc/group + chkgrp invalid character @

2011-11-08 Thread Chuck Swiger
Hi-- On Nov 8, 2011, at 4:32 PM, Dan The Man wrote: On Tue, 8 Nov 2011, Chuck Swiger wrote: On Nov 8, 2011, at 3:47 PM, Dan The Man wrote: In the daily cron Daily run output email always get the following: Verifying group file syntax: chkgrp: /etc/group: line 3: '@' invalid character

Re: System headers with clang?

2011-10-11 Thread Chuck Swiger
On Oct 11, 2011, at 6:59 AM, Larry Rosenman wrote: We will NOT support clang as the compiler for lsof unless the system headers work the same way as gcc's do. That apparently means you won't support clang then, because it's not intended to be (or ever going to be) fully bug-for-bug compatible

Re: HEADS UP: ports/ and 10.0-CURRENT

2011-09-27 Thread Chuck Swiger
Hi-- On Sep 27, 2011, at 11:50 AM, Gleb Kurtsou wrote: It's more exciting than that. FreeBSD = 10 is already seized by Apple :) http://www.google.com/codesearch#search/q=__FreeBSD__%5CW%2B10type=cs MacOS X doesn't define __FreeBSD__ either in CPP macros or the system headers: % touch foo.h;

Re: Problems booting 9.0-BETA1 memstick

2011-09-01 Thread Chuck Swiger
On Sep 1, 2011, at 12:00 PM, Matt Thyer wrote: Shouldn't we use MBR partitioning instead of GPT for the memstick image ? They aren't exclusive. Anything which doesn't understand GPT should fall back to the 'protective' MBR kept inside the GPT format... Regards, -- -Chuck

Re: Console problem with ALT-F# keys

2011-08-26 Thread Chuck Swiger
Hi-- On Aug 25, 2011, at 5:56 PM, Pegasus Mc Cleaft wrote: I am running FreeBSD 9.0-BETA1 r225125 compiled with LLVM on a Xeon processor (CPUTYPE=core2 and CFLAGS= -mmmx -msse -msse2 -msse3 -O2 -fno-strict-aliasing -pipe) The FreeBSD kernel doesn't use MMX or SSE by explicit design choice.

Re: Heavy I/O blocks FreeBSD box for several seconds

2011-07-07 Thread Chuck Swiger
On Jul 7, 2011, at 3:51 PM, Hartmann, O. wrote: This is quibbling. On heavy loads on networ, disk et cetera, isn't there always and also a CPU bound load? No. Properly written software blocks when waiting on network or disk I/O, and doesn't sit there spinning in a busy-wait consuming CPU

Re: best way to do FreeBSD kernel/userland development on OSX ?

2011-06-20 Thread Chuck Swiger
Hi-- On Jun 20, 2011, at 1:53 PM, Luigi Rizzo wrote: I'd like to keep the svn checkut outside the disk image but unfortunately the default filesystem on osx is case-insensitive so i can't do that -- unless someone shows me how to change the filesystem conventions. Default filesystem for OSX

Re: pcib allocation failure

2011-06-09 Thread Chuck Swiger
On Jun 9, 2011, at 11:07 AM, deeptec...@gmail.com wrote: [ ... ] PS: u should learn to properly use backward references (it) in ur sentences. Hmm. Let's just say that there are more effective ways to persuade someone like John who is volunteering their time writing patches to continue to try

Re: Kernel Tracking Question.. regarding kernel and boot files

2011-04-09 Thread Chuck Swiger
Hi, Chris-- [ ...Reply-to: set to direct towards the most appropriate list... ] On Apr 9, 2011, at 8:31 AM, Chris Richardson wrote: I am totally new to FreeBSD. I was involved within project which will trace the kernel. I used ktrace but I could not get appropriate results about the files

Re: prefer tsc timecounter when it's good

2011-04-07 Thread Chuck Swiger
Hi-- On Apr 7, 2011, at 10:12 AM, Andriy Gapon wrote: what do you think about the following change? The idea is mark TSC as the best timecounter when it's invariant and synchronized between cores. Unfortunately I don't have code to auto-detect the synchronization and keep relying on the

Re: Process timing issue

2011-02-22 Thread Chuck Swiger
On Feb 22, 2011, at 1:22 AM, Jerome Flesch wrote: A scheduler quantum of 10ms (or HZ=100) is a common granularity; probably some other process got the CPU and your timer process didn't run until the next or some later scheduler tick. If you are maxing out the available CPU by running many

Re: Process timing issue

2011-02-21 Thread Chuck Swiger
On Feb 21, 2011, at 8:24 AM, Jerome Flesch wrote: While investigating a timing issue with one of our program, we found out something weird: We've written a small test program that just calls clock_gettime() a lot of times and checks that the time difference between calls makes sense. In the

Re: BSDInstall: merging to HEAD

2011-01-20 Thread Chuck Swiger
On Jan 20, 2011, at 1:37 PM, David Demelier wrote: [ ... ] Why does the installer use GPT partition by default? Do you know that GPT is not supported on every (even modern) computer ? Sure. Legacy PC/BIOS platforms can work with a hybrid GPT which includes the legacy or protective MBR used

Re: why panic(9) ?

2011-01-11 Thread Chuck Swiger
On Jan 11, 2011, at 12:11 PM, David DEMELIER wrote: I'm just guessing why current BSD panic() when a problem occurs, all modern operating systems solve the problem instead of crashing suddently and corrupting all your data without saving your work. You've got it backwards. A system panic()s

Re: why panic(9) ?

2011-01-11 Thread Chuck Swiger
On Jan 11, 2011, at 1:11 PM, David DEMELIER wrote: 2011/1/11 Chuck Swiger cswi...@mac.com: [ ... ] Yes, why this function exists? There is no way to solve a problem without panic'ing? Is panic really needed? Sometimes, yes. If it was possible for the kernel to handle an error condition

Re: two ata write chaching request

2010-12-20 Thread Chuck Swiger
On Dec 20, 2010, at 3:10 PM, Alexander Best wrote: 1) write caching to be turned on and off for individual hdds (i.e. hw.ata.X.wc) and 2) to be able to turn write chaching on and off on the fly. NetBSD's dkctl allows one to enable and disable read or write caches on a per-device basis, on

Re: two ata write chaching request

2010-12-20 Thread Chuck Swiger
On Dec 20, 2010, at 3:31 PM, Garrett Cooper wrote: NetBSD's dkctl allows one to enable and disable read or write caches on a per-device basis, on the fly. Presumably atacontrol or whatever the new ada / ACHI driver uses for control would be the FreeBSD equivalent atacontrol doesn't

Re: trying to use xz on manuals.

2010-12-07 Thread Chuck Swiger
On Dec 6, 2010, at 11:30 PM, Alex Kozlov wrote: On Mon, Dec 06, 2010 at 10:50:44PM -0800, Tim Kientzle wrote: It might make sense if XZ decompression were significantly faster than GZip decompression. (Especially since man pages are decompressed much more often than they are compressed.)

Re: trying to use xz on manuals.

2010-12-06 Thread Chuck Swiger
On Dec 6, 2010, at 9:13 AM, Alex Kozlov wrote: On Tue, Dec 07, 2010 at 02:03:50AM +0900, Norikatsu Shigemura wrote: .xz smaller than .gz, but effective is about 96.2%:-(. Some time ago I do similar tests. Changing compression for base man's to bz2 or xz doesn't make much sense. Oh,

Re: A big-ish machine, cannot boot

2010-11-19 Thread Chuck Swiger
On Nov 19, 2010, at 12:42 PM, Antony Mawer wrote: If you select any text in the message then click reply, it only quotes the selected text (not entirely intuitive, but that's the way they decided to make it work). Ah, yes: https://bugzilla.mozilla.org/show_bug.cgi?id=23394 There's a

Re: TTY task group scheduling

2010-11-18 Thread Chuck Swiger
On Nov 18, 2010, at 10:23 AM, Alexander Best wrote: On Thu Nov 18 10, Andriy Gapon wrote: on 18/11/2010 13:04 O. Hartmann said the following: On 11/18/10 02:30, grarpamp wrote: Just documenting regarding interactive performance things. This one's from Linux.

Re: Dell Perc 5/i Performance issues

2010-06-18 Thread Chuck Swiger
On Jun 18, 2010, at 2:08 AM, oizs wrote: I've seen people with the same configuration doing 160MB/s writes and 250MB/s+ reads with raid5 so I still think something isn't right. How is that being measured? And using raid10 with 4 disks is a rather large waste of capacity. If you value

Re: Dell Perc 5/i Performance issues

2010-06-17 Thread Chuck Swiger
On Jun 17, 2010, at 4:50 PM, oizs wrote: I've bought a Dell Perc 5/i because I couldn't make the onboard marvell 88sx7042 work with 8.0/8.1 or current, but as lucky as I am, the best I can do with 4x1.5tb samsung in raid5 is 60MB/s writes and 90MB/s reads, with

Re: [CFT]: ClangBSD is selfhosting, we need testers now

2010-04-16 Thread Chuck Swiger
Hi-- On Apr 16, 2010, at 1:53 PM, Outback Dingo wrote: can someone explain the benefit other then not relying on gcc now ? performance ? http://clang.llvm.org/comparison.html http://clang-analyzer.llvm.org/ Regards, -- -Chuck ___

Re: When will we can use ZFS v24?

2010-04-08 Thread Chuck Swiger
Hi-- On Apr 8, 2010, at 2:18 PM, krad wrote: [ ... ] is that even possible with CDDL? im not a lawyer but it wouldn't surprise me I'm not a lawyer either, but I was active in reviewing and suggesting changes to CDDL submission for OSI approval back in 2004. A copyright owner always has

Re: Wireless TCP aborts

2010-03-07 Thread Chuck Swiger
Hi, Tim-- On Mar 7, 2010, at 2:16 PM, Tim Kientzle wrote: [ ... ] Corrupted MAC on input. Disconnecting: Packet corrupt rsync: connection unexpectedly closed ... [receiver] and then the rsync session is dead. It seems odd that a single corrupt packet would terminate the TCP