Re: sound programming

2012-09-18 Thread Pieter de Goeje
/developer/ In particular (recording and playback with low latency): http://manuals.opensound.com/developer/fulldup.c.htm Barring implementation differences, this should all apply to FreeBSD. To get really low delays you should probably adjust the hw.snd.latency sysctls. Regards, Pieter de Goeje

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Pieter de Goeje
On Thursday 14 June 2012 06:48:14 Wojciech Puchar wrote: file to take 900MB or... can i call some system function to punch holes? I think you can only truncate the file at this time, pretty much like brk() works for memory. BAD. suppose i keep windoze VM image on filesystem which

Re: ZFS installs on HD with 4k physical blocks without any warning as on 512 block size device

2011-08-19 Thread Pieter de Goeje
On Friday, August 19, 2011 12:15:30 PM Tom Evans wrote: On Thu, Aug 18, 2011 at 6:50 PM, Yuri y...@rawbw.com wrote: Some latest hard drives have logical sectors of 512 byte when they actually have 4k physical sectors. Here is the document describing what to do in such case:

Re: Alternate source trees

2011-08-16 Thread Pieter de Goeje
On Tuesday 16 August 2011 14:09:32 Matt Burke wrote: I'm trying to setup a box to do automated FreeBSD builds for other hosts from multiple source trees. I have a couple of source trees mounted - for legibility's sake let's say /build/stable and /build/current. I also have a few obj dirs for

Re: lldb patches for FreeBSD

2011-05-12 Thread Pieter de Goeje
this code from FreeBSD's OpenJDK6 port: #if __FreeBSD_version 900030 return pthread_getthreadid_np(); #else long tid; thr_self(tid); return (pid_t)tid; #endif The underlying type of a tid (lwpid_t in kernel) is an int. -- Pieter de Goeje

Re: Is pthread_cond_signal(3) man page correct?

2011-02-28 Thread Pieter de Goeje
On Monday 28 February 2011 16:08:32 Yuri wrote: On 28.02.11 2:41, Pieter de Goeje wrote: pthread_cond_signal() can indeed wake up more than one thread. That's why you should always wrap pthread_cond_wait() in a loop. For example a blocking queue could be implemented like this (pseudo

Re: Is pthread_cond_signal(3) man page correct?

2011-02-27 Thread Pieter de Goeje
); } pthread_cond_signal() itself never blocks. Hope this helps. -- Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr

Re: TCP over UDP

2010-07-13 Thread Pieter de Goeje
On Monday 12 July 2010 22:25:25 Sergey Babkin wrote: Pieter de Goeje wrote: On Saturday 10 July 2010 14:05:29 Sergey Babkin wrote: Hi guys, I've got this idea, and I wonder if anyone has done it already, and if not then why. The idea is to put the TCP logic over UDP. I've

Re: TCP over UDP

2010-07-12 Thread Pieter de Goeje
that most applications can either use TCP directly with or without tuning or they have such specialized needs that a custom protocol is the only solution. Regards, Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: c question

2010-04-23 Thread Pieter de Goeje
On Friday 23 April 2010 17:40:12 Joerg Sonnenberger wrote: On Fri, Apr 23, 2010 at 06:18:46PM +0300, Eitan Adler wrote: - use a matrix is faster than use a linked list? For what? For insertion and deletion no - linked list is faster. For sequential access they are the same speed

Re: Drop cache

2010-03-16 Thread Pieter de Goeje
On Monday 15 March 2010 04:33:04 Havacci wrote: How I can drop cache memory of my FreeBSD ? I search a lot about this and don't find anything. In Linux i usualy use this command: sync; echo 3 /proc/sys/vm/drop_caches Something comparable can be achieved by unmounting and remounting the test

Re: pthread_{mutex,cond} fifo/starvation/scheduling policy

2010-01-21 Thread Pieter de Goeje
this: pthread_mutex_lock(m); add_work(w); pthread_cond_signal(c); pthread_mutex_unlock(m); - Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr

Re: Question regarding memory disks

2010-01-06 Thread Pieter de Goeje
On Wednesday 06 January 2010 22:49:44 shrivatsan wrote: Hi, I have configured a malloc-backed memory disk, and I mount the device on to the file system. I write some data onto the file system. I see that the free memory indicated by kmem_map_free goes down, and this is proportional to the

Re: Memory leak on thread removal

2009-05-16 Thread Pieter de Goeje
sem; for(;;) { sem_init(sem, 0, 0);} return 0; } -- Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr

ACPI-fast default timecounter, but HPET 83% faster

2009-04-26 Thread Pieter de Goeje
that of ACPI-fast. Regards, Pieter de Goeje - 8 - clock_gettime.c - 8 -- #include sys/time.h #include stdio.h #include time.h #define COUNT 100 int main() { struct timespec ts_start, ts_stop, ts_read; double time; int i; clock_gettime

Re: is gmirror byte or fs level?

2009-03-18 Thread Pieter de Goeje
no knowledge whatsoever of the filesystems on top of it. -- Pieter de Goeje ___ 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 6.3/7.1 and Linux disk performance test

2009-02-07 Thread Pieter de Goeje
), after I added the following parameters to newfs(8): -b 65536 -f 8192. This increases the block and fragment size by a factor of 4 over the the defaults. Also, you use dd with a small blocksize. Try 64k or 128k instead. - Pieter de Goeje ___ freebsd

Re: lock test from sh script

2008-10-17 Thread Pieter de Goeje
) Thanks, -ip Perhaps you mean lockf(3) ? -- Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: read with timeout ??

2008-08-08 Thread Pieter de Goeje
. The net effect is the same of using select but the syntax is simpler, IMO. I think poll(2) is also simpler than select for this purpose. -- Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: SIGPIPE propagation

2008-03-01 Thread Pieter de Goeje
not found cought broken pipe i: 12 could only wrote -1 bytes. total wrote: 61440 $ ./a.out |asdf $ asdf: command not found cought broken pipe i: 0 could only wrote -1 bytes. total wrote: 0 -- Pieter de Goeje ___ freebsd-hackers@freebsd.org

Re: Modular type GENERIC?

2008-02-28 Thread Pieter de Goeje
think you still want to remove some modules by hand, for example snd_driver. -- Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: linuxolator problem on i386

2007-09-24 Thread Pieter de Goeje
On Monday 24 September 2007, sam wrote: Hi # su hlds -c ktrace -i ./hlds_run -game cstrike +ip 0.0.0.0 +port 27015 +map de_dust -debug Auto detecting CPU Using Pentium II Optimised binary. Enabling debug mode Auto-restarting the server on crash Console initialized. scandir

Re: linuxolator problem on amd64

2007-08-22 Thread Pieter de Goeje
On Wednesday 22 August 2007, Roman Divacky wrote: On Wed, Aug 22, 2007 at 01:36:20AM +0200, Pieter de Goeje wrote: On Tuesday 21 August 2007, sam wrote: Hi, all. i am try runing Enemy Territory: Quake Wars server (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0

Re: linuxolator problem on amd64

2007-08-21 Thread Pieter de Goeje
or upgrade to FreeBSD 7, or find a version of the program that doesn't use TLS (non threaded version). Hope this helps, Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: system proccess like [pagedaemon]

2007-05-13 Thread Pieter de Goeje
not Subscribed to the list ki_ppid (parent process id) will be zero. Cheers, Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: a simple patch to enable RFC2640 for /usr/libexec/ftpd

2007-04-18 Thread Pieter de Goeje
On Tuesday 17 April 2007, Andre Oppermann wrote: Zhang Weiwu wrote: On Tue, 2007-04-17 at 10:37 +0300, Nikos Vassiliadis wrote: On Monday 16 April 2007 21:24, Zhang Weiwu wrote: Pieter de Goeje 写道: I think your patch looks good, however there have been some changes to ftpd since 6.1. Also

Re: a simple patch to enable RFC2640 for /usr/libexec/ftpd

2007-04-16 Thread Pieter de Goeje
:                         family = (family == AF_INET) ? AF_UNSPEC : AF_INET6; break; + +               case '8': +                       utf8_mode = 1; Add missing break statement here?                   case 'a':                         bindname = optarg; Cheers, Pieter de Goeje

Re: Thread local storage not working with -fPIC and shared objects

2007-03-31 Thread Pieter de Goeje
. - Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Thread local storage not working with -fPIC and shared objects

2007-03-31 Thread Pieter de Goeje
On zaterdag 31 maart 2007, Garrett Cooper wrote: Pieter de Goeje wrote: Hello List, I have these files: --- loader.cpp --- #include stdio.h #include tls.h int main() { tls = 0; printf(%d\n, tls); } --- tls.cpp --- #include tls.h int __thread tls

Thread local storage not working with -fPIC and shared objects

2007-03-30 Thread Pieter de Goeje
light on this. Regards, Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: pthreads : questions about concurrency and lifetime

2006-11-28 Thread Pieter de Goeje
. The thread will cleanup automatically after the thread function returns. -- Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: pthreads : questions about concurrency and lifetime

2006-11-28 Thread Pieter de Goeje
On Tuesday 28 November 2006 23:41, Garrett Cooper wrote: So that means no, after a function's definition is reached the thread/resources stay in a semi-'alive' (maybe 'zombified') state?, or does the kernel cleanup / reclaim all of the resources tied up with the thread? -Garrett If you detach

Re: Jail-Aware Scheduling

2006-06-11 Thread Pieter de Goeje
Hi Chris, On Sunday 11 June 2006 07:51, Chris Jones wrote: Hi, folks --- as some of you might know, FreeBSD has a Summer of Code project to bring resource limits to jails, and one part of that is to permit an administrator to put limits on a jail's CPU usage. That's where I come in: I'm the

Re: Strange behaviour from mkdir()?

2006-06-05 Thread Pieter de Goeje
on it, and it seems the mkdir utility is aware of the EISDIR error. Kinda weird if you ask me, since it isn't documented. Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: [PATCH] Fancy rc startup style RFC - v6

2006-04-19 Thread Pieter de Goeje
(for RELENG-6): http://www.googlebit.com/freebsd/patches/rc_fancy.patch-6 Eric Looks really good to me :) Regards, Pieter de Goeje ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send