Recommended amount of swap

2011-09-05 Thread Sean Hamilton
What is the state of the art for the recommended amount of swap in FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large database systems with around 128 - 256 GB. Thanks in advance, -- Sean Hamilton seanhamil...@gmail.com ___ freebsd

Re: NUMA support; tweaking TCP for GPRS

2010-01-01 Thread Sean Hamilton
On Fri, Dec 18, 2009 at 12:47:11PM +1100, Lawrence Stewart wrote: Sean Hamilton wrote: [...] Second, I am using a FreeBSD server to talk to equipment which has a GPRS internet connection. This is fairly high latency (approximately one second RTT) and is prone to bursts of packet

NUMA support; tweaking TCP for GPRS

2009-11-12 Thread Sean Hamilton
, but it's not clear to me exactly how they might be adjusted for this purpose. Thanks in advance, -- Sean Hamilton s...@bel.bc.ca ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

bfe hardlocks

2004-02-12 Thread Sean Hamilton
-- Sean Hamilton [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: VT8237 serial-ATA support, Promise ATA stalls, GEOM noise

2004-02-08 Thread Sean Hamilton
put a device on the parallel interface this controller offers, the timeout problem goes away, so that is my solution for now. -- Sean Hamilton [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: VT8237 serial-ATA support, Promise ATA stalls, GEOM noise

2004-02-01 Thread Sean Hamilton
:/dev/ar0a -- Sean Hamilton [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: VT8237 serial-ATA support, Promise ATA stalls, GEOM noise

2004-01-30 Thread Sean Hamilton
Soren Schmidt [EMAIL PROTECTED] wrote: | It seems Sean Hamilton wrote: | | I have two Asus boards (A7V8X and A7V) which have in common a | | Promise ATA controller. Both of these boards hang up for about a | | minute during the boot of 5.1-RELEASE, and emit messages about ad* | | devices being

Passthrough block device

2003-10-22 Thread Sean Hamilton
Does FreeBSD support a device that will allow for the passing of all reads and writes on it to a userland application? I wish to handle swapping myself, preferably without any kernel hacking. What would happen if the kernel decided to swap out such a process?

mmap(2) questions, reads not caching

2003-10-19 Thread Sean Hamilton
I have some code resembling: FILE * f = fopen (filename, rb); mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fileno (f), 0); I've found that reads are not brought into disk cache. Successive reads on the same file once again read from disk. If I cat the file to /dev/null, then the mmap(2) does

VT8237 serial-ATA support, Promise ATA stalls, GEOM noise

2003-10-06 Thread Sean Hamilton
I'm looking to replace an aging fileserver with an Asus A7V600 board. Presently it appears FreeBSD does not support the serial ATA interface on the south bridge. As this appears to be the first Via serial ATA controller, am I safe in assuming this will not be supported for some time? I have

mmap(2) questions, reads not caching

2003-09-08 Thread Sean Hamilton
I have some code resembling: FILE * f = fopen (filename, rb); mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fileno (f), 0); I've found that reads are not brought into disk cache. Successive reads on the same file once again read from disk. If I cat the file to /dev/null, then the mmap(2) does

Tuning HZ for semi-realtime applications

2003-08-03 Thread Sean Hamilton
Greetings, I have an application which has some task it must execute at some interval (approximately 1000 times per second.) This application calls select(2) in a loop, and uses its timeout parameter to try to keep the timing consistent. At the end of a cycle, it sends out a large amount of

Quota consistency/races

2003-06-04 Thread Sean Hamilton
Greetings, What measures are in place to ensure disk quota consistency? For instance, if a part of the filesystem changes while running quotacheck, I imagine that does not get accounted for. Wouldn't somebody have trouble enabling quotas on a busy filesystem? The quota file would always lag

wait()/alarm() race condition

2003-03-30 Thread Sean Hamilton
[asked in comp.unix.programmer without much luck] Greetings, I have a loop which calls wait(), and I want another function to be called as close to once per minute as possible. Pseudo code: int alarmed = 0; void handle_sigalrm (int sig) { alarmed = 1; } while (1) { alarmed = 0;

Re: wait()/alarm() race condition

2003-03-30 Thread Sean Hamilton
Dan Nelson wrote: | Just make sure your signal handler has the SA_RESTART flag unset | (either via siginterrupt() if the handler was installed with signal(), | or directly if the signal was installed with sigaction() ), and the | signal will interrupt the wait() call. Er, I think you've missed my

first parameter to select

2003-03-12 Thread Sean Hamilton
Greetings, What is the first parameter to select(2) for? Microsoft's select ignores it, and it does not appear to have any valid use since it only allows constraints on values which are assigned by the system. Purely historic? sh To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

IP addresses of bridge interfaces

2003-03-11 Thread Sean Hamilton
Greetings, I recently upgraded a FreeBSD 4.6.2 bridge to 5.0, and am having troubles with how it handles IP addresses. router | | t1 | [fxp0] FreeBSD bridge [fxp1] | switch | hosts The problem is that if the external interface is assigned an address, then

Re: C coding editor

2003-03-02 Thread Sean Hamilton
Wes Peters wrote: | On Saturday 01 March 2003 03:12 pm, Giorgos Keramidas wrote: || The font of the program text isn't really important, as long as || nesting isn't horribly broken by someone who typed the wrong number || of spaces instead of just hitting tab. | | But the font of the program text

ACPI throttle doesn't cool CPU

2003-02-15 Thread Sean Hamilton
Greetings, After setting hw.acpi.cpu.performance_speed to 1, a dmesg of acpi_cpu0: set speed to 6.2% and a dog slow system, I am still finding my CPU pumping out heat. It's an AMD 1333 with an A7V board. Is this typical behaviour? If so, I'll just underclock the CPU in the bios. I was hoping to

Re: Random disk cache expiry

2003-01-26 Thread Sean Hamilton
- Original Message - From: Tim Kientzle [EMAIL PROTECTED] | Cycling through large data sets is not really that uncommon. | I do something like the following pretty regularly: | find /usr/src -type f | xargs grep function_name | | Even scanning through a large dataset once can really

Random disk cache expiry

2003-01-25 Thread Sean Hamilton
Greetings, I have a situation where I am reading large quantities of data from disk sequentially. The problem is that as the data is read, the oldest cached blocks are thrown away in favor of new ones. When I start re-reading data from the beginning, it has to read the entire file from disk

kldload random.ko panic

2003-01-21 Thread Sean Hamilton
Greetings, Running 5.0-RELEASE, # kldload random induces a panic, presumably unless it is not compiled into the kernel. sh To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Kernel panic with ATA RAID

2003-01-03 Thread Sean Hamilton
From: Brian F. Feldman [EMAIL PROTECTED] | The program plus output given when you recompile/run gdb -k with a debugging kernel | would be really useful here. I can't try it again (the system has gone off to production) but here is the perl script: --- #!/usr/bin/perl system ('atacontrol',

ATA RAID performance

2003-01-02 Thread Sean Hamilton
Greetings, I have tried using both atacontrol and ccdconfig to create stripes and mirrors of various sizes, and have found that in all cases, read performance *decreased*. Is this typical? I have a Promise controller in another computer running Windows which sees a considerable performance

Re: ATA RAID performance (numerous fs related questions)

2003-01-02 Thread Sean Hamilton
From: Soeren Schmidt [EMAIL PROTECTED] | Uhm, what kind of disks, stripesize etc are you using, without that info | noone can tell you why... Two Seagate 80GB 7200RPM drives each on their own ATA66 channel. They're not very fast, but they are quiet. Quick tests with dd show about 20 MB/s reads

Kernel panic with ATA RAID

2003-01-02 Thread Sean Hamilton
Seems my toying with atacontrol caused a reproducable panic. I have a perl script which causes the panic right away every time, I'll mail that to anybody @freebsd.org that wants it. (Or is such paranoia unnecessary?) I believe everything else needed is here. sh --- Fatal trap 12: page fault

Bootable FreeBSD CD

2002-12-20 Thread Sean Hamilton
Greetings, How does the kernel on the FreeBSD install CD know which device to mount as root? I'm assuming it hasn't got a ROOTDEVNAME config option, since that would make it fairly specific to certain hardware. Mine always tries to mount fd0. thanks, sh To Unsubscribe: send mail to [EMAIL

burncd raw mode

2002-12-16 Thread Sean Hamilton
Greetings, I have a 2352-byte block mode1 CD image, and wish to burn this with burncd. I know I can use bin2iso or bchunk to decode it, but I'd rather keep the block metadata intact from the file itself instead of having the burner/driver(?) reconstruct it. I assembled a small stack of coasters

Re: HD data recovery

2002-12-12 Thread Sean Hamilton
From: Stephen Hilton [EMAIL PROTECTED] | Am up and running now on the spare HD, and can work on my big | mistake at my lesiure, thanks in advance. My first partition: start 63, size 40130307 (19594 Meg), flag 80 (active) And an hd of block 63: ### fc

umount -f safety

2002-12-07 Thread Sean Hamilton
Greetings, In short, how safe is umount -f? I've been given the task of creating a CD jukebox with Samba. I've got a few dozen ISO images, and a directory with a number of subdirectories named after all the clients. Then, in samba, I have a share with a path of /store/images/%m, so each client

libpcap packet direction

2002-11-22 Thread Sean Hamilton
Greetings, Is it possible to get libpcap or bpf to tell me the direction of a packet going across an interface? They only seem to be able to match source and destination addresses, which isn't very useful for my application. thanks, sh To Unsubscribe: send mail to [EMAIL PROTECTED] with

CD audio interpolation

2002-11-12 Thread Sean Hamilton
Greetings, If I read /dev/acd0t1, will the CD-ROM interpolate over scratches and stuff? Is there any way of identifying them? thanks, sh To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

READ_BIG - ILLEGAL REQUEST at very end of CD

2002-09-24 Thread Sean Hamilton
Greetings, I'm creating ISO images of CDs as advised by the handbook, like so: # dd if=/dev/acd0c of=blah.iso bs=2k At the very end of many CDs, dd states acd0: Input/output error and the kernel says: acd0: READ_BIG - ILLEGAL REQUEST asc=0x64 ascq=0x00 error=0x04 The .iso seems okay (I can

Direct video access

2002-09-21 Thread Sean Hamilton
Greetings, I have been doing graphics programming in Windows for a few years, and am interested in broadening my horizons. I'm interested in attempting to get FreeBSD to switch video modes and gain access to video memory, perhaps to attempt a simple OpenGL-like implementation or the like,

microuptime() and nanouptime() library?

2002-08-16 Thread Sean Hamilton
Greetings, I just tried to use nanouptime, then microuptime, but was disappointed to find that a quick grep of /usr/lib revealed no libraries containing these symbols. Are they only available to the kernel. If so, how can I get a reasonable timer figure from user space? thanks, sh To

IP monitoring

2002-08-13 Thread Sean Hamilton
Greetings, I'm interested in developing a fairly proprietary IP monitoring solution (I want to look for specific trends in specific packets.) Will there be considerable gains from writing some sort of kernel module, vs. a userspace solution? I've never hacked the kernel or written any sort of

Re: IP monitoring

2002-08-13 Thread Sean Hamilton
Also, forgot to mention, I will need to look inside TCP streams, and know which user owns them, and which packets pertain to which TCP stream, which is why I was thinking a module would be more suitable. If I did this in user space, I'd have to reconstruct the streams myself (but as I understand,

Re: arplookup: host is not on local network

2002-08-11 Thread Sean Hamilton
From: Doug White [EMAIL PROTECTED] You should check that your network configuration is correct first, then use tcpdump to locate the offender and report them to your provider. They can ask the owner of said machine politely to install the patches or set /proc flags to disable that behavior.

arplookup: host is not on local network

2002-08-10 Thread Sean Hamilton
Greetings, I have a FreeBSD box being colocated. Every few seconds, I get the following message: /kernel: arplookup 216.187.x.x failed: host is not on local network As I understand, this 216.187.x.x machine is acting as a proxy arp. I think it's supposed to be completely transparent, but

Linux binary compatibility requires SYSVSEM

2002-07-22 Thread Sean Hamilton
Greetings, kldload linux dies unless optionsSYSVSEM is in the kernel. Is there some way around this? (I have no other use for it, and try to be minimalist...) Also, are there other approaches to Linux binary compatibility? Is there some type of wrapper, which will load and execute the