Re: ARM + CACHE_LINE_SIZE + DMA

2012-05-21 Thread Daan Vreeken
create a writable copy of the mbuf and alter the copy instead of the original. A writable copy of an mbuf can be made using m_dup(). Writing to non-writable mbuf's will cause data corruption in e.g. BPF and TCP retransmits (even in the non-SMP case). Regards, -- Daan Vreeken Vitsch Ele

Re: Slow disk access while rsync - what should I tune?

2010-11-01 Thread Daan Vreeken
where "slowdown.so" resides.) This should work with rsync, ls and rm "out of the box", without changing the source of the applications. Regards, -- Daan Vreeken VEHosting http://VEHosting.nl tel: +31-(0)40-7113050 / +31-(0)6-46210825 KvK nr: 17174380

Re: Slow disk access while rsync - what should I tune?

2010-10-26 Thread Daan Vreeken
do_lstat(const char *fname, STRUCT_STAT *st) { + tiny_pause(); #ifdef SUPPORT_LINKS # ifdef USE_STAT64_FUNCS return lstat64(fname, st); @@ -239,6 +251,7 @@ int do_fstat(int fd, STRUCT_STAT *st) { + tiny_pause(); #ifdef USE_

Re: 3x read to write ratio on dump/restore

2009-01-09 Thread Daan Vreeken [PA4DAN]
Hi Warner, On Friday 09 January 2009 17:50:27 M. Warner Losh wrote: > I just copied a disk using dump + restore. I noticed something > through the whole run of this 500GB operation: > > L(q) ops/sr/s kBps ms/rw/s kBps ms/w %busy Name > 3231231 147549.5 0

Re: IPFW uid logging...

2008-09-09 Thread Daan Vreeken
On Tuesday 09 September 2008 06:50:37 Dan Nelson wrote: > In the last episode (Sep 09), Daan Vreeken said: > > On Monday 08 September 2008 22:03:29 Dan Mahoney, System Admin wrote: > > > On Mon, 8 Sep 2008, Dan Nelson wrote: > > > > In the last episode (Sep 08),

Re: IPFW uid logging...

2008-09-08 Thread Daan Vreeken
myself -- how could I propose this as a > feature?" It's not a BUG per-se, but I think it could be useful to others > as well. I own a webhosting company and here too every domain gets it's own user, so I like this proposal. I've hacked together a first try, w

Re: mksnap_ffs time

2008-01-03 Thread Daan Vreeken [PA4DAN]
On Friday 04 January 2008 00:30:20 you wrote: > Hi! > > > 1) Is anyone else seeing this? > > As far as I know, this is somehow related to the SoftUpdates, but I am not > 100% sure. Look at the mailinglist archives, there was a discussion a few > months ago about the same topic as far as I remember.

mksnap_ffs time

2008-01-03 Thread Daan Vreeken [PA4DAN]
Hi Hackers, I'm running a 6.2-RELEASE server with a /home partition that's used to backup a customer's data. The backups are being made during the night. Since a couple of weeks I'm running mksnap_ffs daily to create filesystem snapshots of the data. I've been logging the time it takes mksnap_f

Re: Hooking a kernelmodule-function into a timer interrupt

2007-11-21 Thread Daan Vreeken [PA4DAN]
Hi Michiel, On Tuesday 20 November 2007 00:51:45 Michiel Overtoom wrote: > I'm interfacing an analog-digital converter to the parallel port and I'm > able to make it work from userland using the ppio driver. But now I want > to move the conversion software into a loadable kernel module, and have

Re: Floating point in interrupt handler

2007-10-27 Thread Daan Vreeken [PA4DAN]
Hi Warner, On Wednesday 24 October 2007 23:15:13 you wrote: > In message: <[EMAIL PROTECTED]> > > "Daan Vreeken [PA4DAN]" <[EMAIL PROTECTED]> writes: > : But what I haven't found is a description of exactly what the kernel is > : missing to

Re: Floating point in interrupt handler

2007-10-23 Thread Daan Vreeken [PA4DAN]
On Tuesday 23 October 2007 07:52:41 Issei Suzuki wrote: > 2007/10/23, Daan Vreeken [PA4DAN] <[EMAIL PROTECTED]>: > > So I've added asm inline functions to use the FPU's fsin and fcos > > operands. At the start of my loop function I (try to) save the FPU st

Re: Floating point in interrupt handler

2007-10-23 Thread Daan Vreeken [PA4DAN]
Hi SorAlx On Tuesday 23 October 2007 03:35:09 you wrote: > > As a first test I've created a simple loop that uses integer > > arithmetic and a lookup table to create a sine wave on one of the DAC > > outputs. This works like a charm, but I really would like to be able > > to use floating point ins

Floating point in interrupt handler

2007-10-22 Thread Daan Vreeken [PA4DAN]
Hi all, For a work related project I'm trying to create a sort of real-time control loop. I've written a driver for a PCI data acquisition card that features a number of digital-to-analog and analog-to-digital converters. The goal is to create a control loop that runs about 1 times a second

Floating point in interrupt handler

2007-10-22 Thread Daan Vreeken [PA4DAN]
Hi all, For a work related project I'm trying to create a sort of real-time control loop. I've written a driver for a PCI data acquisition card that features a number of digital-to-analog and analog-to-digital converters. The goal is to create a control loop that runs about 1 times a second

Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Daan Vreeken [PA4DAN]
On Sunday 25 February 2007 08:59, Kip Macy wrote: > It looks as if you've hit a device driver that is trying to print out > a null string. The message you've given doesn't provide any more > information than that. If you install a snapshot kernel it will > probably have ddb compiled in which will a

Re: Stop further socket() or connect() calls.

2006-07-05 Thread Daan Vreeken [PA4DAN]
On Wednesday 05 July 2006 03:15, mal content wrote: > On 03/07/06, Peter Jeremy <[EMAIL PROTECTED]> wrote: > > For dynamic executables, you could LD_PRELOAD a .so that replaces > > all the socket-related syscalls. > > Excellent suggestion! Ok, I've created a basic .so file with the following > code

Re: Using sysarch specific syscalls in assembly?

2005-08-10 Thread Daan Vreeken [PA4DAN]
On Wednesday 10 August 2005 15:09, alexander wrote: > I tried to write a little C app that uses sysarch and i386_set_ioperm to > gain access to certain ports and after a bit of testing I'm pretty sure > that there is a bug or better a timing issue with the sysarch syscall or > the > i386_set_ioperm

Problem (interrupt storm) with snd_ich

2004-12-04 Thread Daan Vreeken [PA4DAN]
Hi All, I'm having a problem with the snd_ich driver. Directly after loading the snd_ich module pcm0 is detected correctly, but "vmstat -i" shows about 4 interrupts every second caused by pcm0. The problem shows up with both custom kernels and GENERIC, with or without snd_ich compiled into

Re: EHCI Kernel Panic w/ 5.2.1-RELEASE Kernel

2004-11-01 Thread Daan Vreeken [PA4DAN]
On Monday 01 November 2004 16:09, Martes Wigglesworth wrote: > My kernel panic seems to come from the usb port actually having a device > in the port, at boot. When I do not have a device in the port, bootup > continues, however, my usb ports are not usable. This is my dmesg > output. > > > dmesg

Re: FreeBSD and Debugging?

2004-04-10 Thread Daan Vreeken [PA4DAN]
On Saturday 10 April 2004 07:23, Brandon Erhart wrote: > Thank you. You are my new god. I had checked out a version of valgrind for > BSD (one of the patches) and it failed to compile. > > Everything seems to be working, except I get this warning at the beginning > of the program: > > "Warning: ign

Re: HEADSUP.. USB MFC coming..

2004-02-28 Thread Daan Vreeken [PA4DAN]
On Saturday 28 February 2004 16:32, you wrote: > thankyou.. I haven't looked a the PR yet but does it happen in 5.x and > 4.x? Yes, as far as I know both problems are in 4.x and 5.x . > On Sat, 28 Feb 2004, Daan Vreeken [PA4DAN] wrote: > > On Saturday 28 February 2004 02:54, J

Re: HEADSUP.. USB MFC coming..

2004-02-28 Thread Daan Vreeken [PA4DAN]
On Saturday 28 February 2004 02:54, Julian Elischer wrote: > I plan to commit the MFC at http://www.josef-k.net/freebsd/ > (the latest one) in the next couple of days. If you really care about > USB in 4.10 you might do well to test this on your equipment, > ESPECIALLY if you have unusual devices.

Release USB WLAN driver version 0.2 - testers wanted

2004-01-12 Thread Daan Vreeken [PA4DAN]
Hi, Some time ago I released the first public version of my "atuwi" driver (for Atmel usb wireless adapters). Since then I have made a lot of changes to the code and today it's time to release the next version... Version 0.2 features : * A nice step-by-step guide to installing and using the dri

Re: FreeBSD 5.1 Installation probelms

2004-01-11 Thread Daan Vreeken [PA4DAN]
On Sunday 11 January 2004 11:29, 70uf33q Hu5541n wrote: > hey guys, > > Just got my copy of FreeBSD 5.1. > Spent about an hour going through the BSD Handbook and > preparing a Installation checklist. > > ok here's my problem. > > I have a WD 40 GB HDD > the primary partition is 10 GB, with the exte

kernel threads and printf locking question

2004-01-10 Thread Daan Vreeken [PA4DAN]
Hi, I am writing a kernel module in which I have created a kernel thread with kthread_create. For debugging I have added a couple of printf's in the thread-routine. Running the module on a single-proc system works fine, but when running it on one of my SMP machines the console freezes after a c

Re: UNIX / BSD parallel port programming documentation

2004-01-10 Thread Daan Vreeken [PA4DAN]
On Friday 09 January 2004 17:03, Vladimir Terziev wrote: > Hi hackers, > > I have to develop small server which has to manage custom microcontroller > via parallel port interface. > Does anyone know good manual/documentation about UNIX / BSD parallel port > programming ? Most of it shou

Re: USB stack / configuration 0

2004-01-08 Thread Daan Vreeken [PA4DAN]
On Thursday 08 January 2004 07:01, Bernd wrote: > Im mostly worried about having more than a single device with address 0. > You can't do this as long as another device gets initialized. > Therefor I thought disabling/enabling the port would be better, but I'm > wrong as the result is be the same.

Re: USB stack / configuration 0

2004-01-07 Thread Daan Vreeken [PA4DAN]
On Wednesday 07 January 2004 09:07, Bernd Walter wrote: > On Wed, Jan 07, 2004 at 05:34:05PM +1030, Daniel O'Connor wrote: > > On Wednesday 07 January 2004 17:08, Bernd Walter wrote: > > > > I don't think it IS a dumb device, there is a USB spec called DFU > > > > which covers it and the hosts job

Re: Atmel WLAN Driver

2003-12-22 Thread Daan Vreeken [PA4DAN]
(to stop cross-posting please 'cc' follow-ups to -questions) On Monday 22 December 2003 19:10, Markus Kovero wrote: > Hi. I Have Belkin 11MBps wlan adapter F5D6020 ver.2 that uses atmel > chipset. I noticed that support for freebsd hasnt been made yet but I > found leenox driver for it. So I thoug

Errors in USB subsystem and bktr driver

2003-11-14 Thread Daan Vreeken [PA4DAN]
Hi, I have just filed kern/59290 about an error in all usb ethernet drivers that can crash a system and kern/59289 about small error in an ioctl in the bktr driver. (Both with patch). Anyone interrested in fixing them? grtz, Daan ___ [EMAIL PROTECTED]

Release (beta) driver for Atmel USB Wireless LAN adapters

2003-09-02 Thread Daan Vreeken [PA4DAN]
Hi, After about a month of spare time work I have finally come to a point of releasing some software. I have written a driver for the Atmel AT76c503 Wireless LAN adapters. At this moment the driver is capable of sending / receiving in Ad Hoc mode only. If you happen to own one of these adapters

Re: Atmel USB Wireless devices

2003-08-28 Thread Daan Vreeken [PA4DAN]
On Thursday 28 August 2003 15:26, Stuart Walsh wrote: > Hi, > > Firstly, it would be interesting to know if anyone else is working on > support for these devices before I get too far into it :) Yes, I have bought a bunch of them about a month ago, and at this moment I have a working driver for the

Re: fetch command sending STDOUT to STDERR

2003-08-01 Thread Daan Vreeken [PA4DAN]
On Friday 01 August 2003 22:54, Peter Elsner wrote: > For some time now, I've been using FTP to transfer files from one > server to another. I recently decided to update my script to use fetch > instead of FTP. > > For some reason, the fetch command seems to be sending STDOUT > messages to STDERR.

Re: differences in USB support between FreeBSD 4.x and 5.x ?

2003-07-21 Thread Daan Vreeken [PA4DAN]
On Monday 21 July 2003 15:00, Bernd Walter wrote: > On Mon, Jul 21, 2003 at 09:18:42AM +0200, Marco Molteni wrote: > > [I sent the same message to [EMAIL PROTECTED], but since that list > > seems not very active, I am asking here too] > > > > Hi all, > > > > the subject says it all. > > > > I am co

Re: modern (usb) webcam support?

2003-02-20 Thread Daan Vreeken [PA4DAN]
On Thursday 20 February 2003 01:16, you wrote: > My searches for information on webcam have not found much, except for some > sites which say FreeBSD does not support USB web cameras. > > Is anyone currently working on support for this? Does anyone have any > ideas about where one could go to get i

Re: Asus/PR-DLSR smp hangs on boot

2003-01-08 Thread Daan Vreeken [PA4DAN]
On Wednesday 08 January 2003 10:21, you wrote: > hi, >I have yet another dual box to test, Asus Dual Intel/Xeon, > this one came preconfigured with 4.7 Release, and 'sort of works' - using > the 1Giga ethernet is problematic. > > The latest 4.7 stable hangs on boot - just after > SMP: AP CPU