Re: mmap() question

2013-10-13 Thread Dmitry Sivachenko
On 12.10.2013, at 18:14, Konstantin Belousov kostik...@gmail.com wrote: First I tried with some swap space configured. The OS started to swap out my process after it reached about 20GB which is also not what I expected: what is the reason to swap out regions of read-only mmap()ed files?

Re: mmap() question

2013-10-12 Thread Konstantin Belousov
On Fri, Oct 11, 2013 at 09:57:24AM +0400, Dmitry Sivachenko wrote: On 11.10.2013, at 9:17, Konstantin Belousov kostik...@gmail.com wrote: On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: Hello! I have a program which mmap()s a lot of large files (total size more

Re: mmap() question

2013-10-12 Thread Dmitry Sivachenko
On 12.10.2013, at 13:59, Konstantin Belousov kostik...@gmail.com wrote: I was not able to reproduce the situation locally. I even tried to start a lot of threads accessing the mapped regions, to try to outrun the pagedaemon. The user threads sleep on the disk read, while pagedaemon has a

Re: mmap() question

2013-10-12 Thread Konstantin Belousov
On Sat, Oct 12, 2013 at 04:04:31PM +0400, Dmitry Sivachenko wrote: On 12.10.2013, at 13:59, Konstantin Belousov kostik...@gmail.com wrote: I was not able to reproduce the situation locally. I even tried to start a lot of threads accessing the mapped regions, to try to outrun the

Re: mmap() question

2013-10-11 Thread Dmitry Sivachenko
On 11.10.2013, at 9:17, Konstantin Belousov kostik...@gmail.com wrote: On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: Hello! I have a program which mmap()s a lot of large files (total size more that RAM and I have no swap), but it needs only small parts of that files

Re: mmap() question

2013-10-10 Thread Konstantin Belousov
On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: Hello! I have a program which mmap()s a lot of large files (total size more that RAM and I have no swap), but it needs only small parts of that files at a time. My understanding is that when using mmap when I access some

Re: mmap() question

2013-10-09 Thread RW
On Wed, 9 Oct 2013 15:42:27 +0400 Dmitry Sivachenko wrote: Hello! I have a program which mmap()s a lot of large files (total size more that RAM and I have no swap), but it needs only small parts of that files at a time. My understanding is that when using mmap when I access some memory

Re: another question

2013-07-01 Thread mdf
On Mon, Jul 1, 2013 at 5:42 PM, David Sanford david.lee...@programmer.netwrote: Hi, Thanks for your responses to my first question. They were very helpful. In looking at the code, I ran across the functions setprogname and getprogname. According to the man page: In FreeBSD, the name of the

Re: stupid question about sendmail

2013-05-24 Thread Chris Rees
On 24 May 2013 08:34, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. alternatively

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 09:33+0200, Wojciech Puchar wrote: how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. alternatively outgoing mail to

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
To:x...@y.pl REJECT doesn't work any idea. thank you Don't use /etc/mail/access, use /etc/mail/aliases. E.g.: x: /dev/null x is NOT on my server. it will not work. all i want is when someone send a mail from my server to x...@y.pl (which is someone else domain) it will not get

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 09:55+0200, Wojciech Puchar wrote: To:x...@y.pl REJECT doesn't work any idea. thank you Don't use /etc/mail/access, use /etc/mail/aliases. E.g.: x: /dev/null x is NOT on my server. it will not work. all i want is when someone send a

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 10:19+0200, Trond Endrestøl wrote: My bad, take a look at the /etc/mail/genericstable file: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.com error:5.7.0:550 Address invalid I was

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
all i want is when someone send a mail from my server to x...@y.pl (which is someone else domain) it will not get there and be blocked or redirected My bad, take a look at the /etc/mail/genericstable file: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.comerror:5.7.0:550 Address invalid I was wrong again, sorry, but I believe I got it right this time: 1. Edit the /etc/mail/access file. 2. Insert a line

Re: stupid question about sendmail

2013-05-24 Thread Chris Rees
On 24 May 2013 11:05, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.com error:5.7.0:550 Address invalid I was wrong again, sorry, but I believe I

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote: 1. Edit the /etc/mail/access file. 2. Insert a line like this one: To:mail...@some.domain.tld REJECT tried too. doesn't work. Make sure you edit the /etc/mail/access file, not the /etc/mail/access.db file. The latter is a

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 12:45+0200, Trond Endrestøl wrote: On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote: 1. Edit the /etc/mail/access file. 2. Insert a line like this one: To:mail...@some.domain.tld REJECT tried too. doesn't work. Make sure you edit the

Re: stupid question about sendmail

2013-05-24 Thread Claus Assmann
On Fri, May 24, 2013, Trond Endrest?l wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default. FEATURE(`access_db') is the best choice. One final(?) note: You

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 08:34-0700, Claus Assmann wrote: On Fri, May 24, 2013, Trond Endrestøl wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default.

Re: stupid question about sendmail

2013-05-24 Thread Claus Assmann
On Fri, May 24, 2013, Trond Endrest?l wrote: On Fri, 24 May 2013 08:34-0700, Claus Assmann wrote: FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default. Then I guess the defaults in freebsd.mc should be changed as well:

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
works fine after your advice. thank you very much. FEATURE(`access_db') FEATURE(`blacklist_recipients') On Fri, 24 May 2013, Claus Assmann wrote: On Fri, May 24, 2013, Trond Endrest?l wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -TTMPF

Re: Stupid question about integer sizes

2013-02-19 Thread mdf
On Tue, Feb 19, 2013 at 5:11 AM, Borja Marcos bor...@sarenet.es wrote: Hello, I'm really sorry if this is a stupid question, but as far as I know, u_int64_t defined in /usr/include/sys/types.h should *always* be a 64 bit unsigned integer, right? Seems there's a bug (or I need more and

Re: Stupid question about integer sizes

2013-02-19 Thread Borja Marcos
On Feb 19, 2013, at 3:52 PM, m...@freebsd.org wrote: Last I knew -m32 still wasn't quite supported on 9.1. This is fixed Ahh I see. It should print a warning, then. It's the typical thing that can drive you nuts ;) Thanks, Borja. ___

Re: Stupid question about integer sizes

2013-02-19 Thread Konstantin Belousov
On Tue, Feb 19, 2013 at 06:52:34AM -0800, m...@freebsd.org wrote: On Tue, Feb 19, 2013 at 5:11 AM, Borja Marcos bor...@sarenet.es wrote: Hello, I'm really sorry if this is a stupid question, but as far as I know, u_int64_t defined in /usr/include/sys/types.h should *always* be a 64

Re: A question about creating a system call

2012-11-08 Thread Robert Watson
Hi Dave: This wiki page may be of value: http://wiki.freebsd.org/AddingAuditEvents Robert N M Watson Computer Laboratory University of Cambridge On Thu, 8 Nov 2012, dave jones wrote: Hello, I know how to create system calls, but I'm a bit confused about sys/kern/syscalls.master

Re: priv_check() question

2011-07-05 Thread Robert Watson
On Sun, 3 Jul 2011, exorcistkiller wrote: Hi! I am taking a FreeBSD course this summer and I'm doing a homework. A new system call uidkill() is to be added. uidkill(uid_t uid, int signum) sends signal specified by signum to all processes owned by uid, excluding the calling process itself.

Re: Mount_nfs question

2011-05-31 Thread Robert Watson
On Mon, 30 May 2011, Mark Saad wrote: So I am stumped on this one. I want to know what the IP of each nfs server that is providing each nfs export. I am running 7.4-RELEASE When I run mount -t nfs I see something like this VIP-01:/export/source on /mnt/src VIP-02:/export/target on

Re: Mount_nfs question

2011-05-31 Thread Rick Macklem
Maybe you can use showmount -a SERVER-IP, foreach server you have... That might work. NFS doesn't actually have a notion of a mount, but the mount protocol daemon (typically called mountd) does try and keep track of NFSv3 mounts from the requests it sees. How well this works for NFSv3 will

Re: Mount_nfs question

2011-05-30 Thread Rick Macklem
Hello All So I am stumped on this one. I want to know what the IP of each nfs server that is providing each nfs export. I am running 7.4-RELEASE When I run mount -t nfs I see something like this VIP-01:/export/source on /mnt/src VIP-02:/export/target on /mnt/target VIP-01:/export/logs on

Re: Mount_nfs question

2011-05-30 Thread Mark Saad
On Mon, May 30, 2011 at 8:13 PM, Rick Macklem rmack...@uoguelph.ca wrote: Hello All So I am stumped on this one. I want to know what the IP of each nfs server that is providing each nfs export. I am running 7.4-RELEASE When I run mount -t nfs I see something like this VIP-01:/export/source

Re: Mount_nfs question

2011-05-30 Thread Thiago Damas
Maybe you can use showmount -a SERVER-IP, foreach server you have... Thiago 2011/5/30 Mark Saad nones...@longcount.org: On Mon, May 30, 2011 at 8:13 PM, Rick Macklem rmack...@uoguelph.ca wrote: Hello All So I am stumped on this one. I want to know what the IP of each nfs server that is

Re: make question

2011-04-29 Thread Warner Losh
On Apr 28, 2011, at 7:37 PM, Arnaud Lacombe wrote: On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt hartmut.bra...@dlr.de wrote: I think we can change this, because it would break makefiles that assume that the entire script is given to the shell in one piece. I'm not sure to parse that.

Re: make question

2011-04-29 Thread Roman Divacky
On Thu, Apr 28, 2011 at 08:50:27PM +0200, Hartmut Brandt wrote: On Thu, 28 Apr 2011, Roman Divacky wrote: RDOn Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: RD Hi Roman, RD RD On Wed, 27 Apr 2011, Roman Divacky wrote: RD RD RDYou seem to have messed with bsd make so I

RE: make question

2011-04-29 Thread Hartmut.Brandt
s/can/can't/ harti From: Arnaud Lacombe [lacom...@gmail.com] Sent: Friday, April 29, 2011 3:37 AM To: Brandt, Hartmut Cc: Roman Divacky; hack...@freebsd.org Subject: Re: make question Hi, On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt hartmut.bra

Re: make question

2011-04-29 Thread Hartmut Brandt
On Fri, 29 Apr 2011, Roman Divacky wrote: RDOn Thu, Apr 28, 2011 at 08:50:27PM +0200, Hartmut Brandt wrote: RD On Thu, 28 Apr 2011, Roman Divacky wrote: RD RD RDOn Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: RD RD Hi Roman, RD RD RD RD On Wed, 27 Apr 2011, Roman Divacky wrote:

Re: make question

2011-04-29 Thread Bob Bishop
Hi, This whole area is quite a mess. See for instance bin/10985 on interactions between -j, -B and .NOTPARALLEL -- Bob Bishop r...@gid.co.uk ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: make question

2011-04-28 Thread Hartmut Brandt
Hi Roman, On Wed, 27 Apr 2011, Roman Divacky wrote: RDYou seem to have messed with bsd make so I have a question for you :) Yeah, that was some time ago ... RDWhen a job is about to be executed in JobStart() a pipe is created with RDits ends connected to job-inPipe/job-outPipe. When the job

Re: make question

2011-04-28 Thread Roman Divacky
On Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: Hi Roman, On Wed, 27 Apr 2011, Roman Divacky wrote: RDYou seem to have messed with bsd make so I have a question for you :) Yeah, that was some time ago ... RDWhen a job is about to be executed in JobStart() a pipe is

Re: make question

2011-04-28 Thread Hartmut Brandt
On Thu, 28 Apr 2011, Roman Divacky wrote: RDOn Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: RD Hi Roman, RD RD On Wed, 27 Apr 2011, Roman Divacky wrote: RD RD RDYou seem to have messed with bsd make so I have a question for you :) RD RD Yeah, that was some time ago ... RD RD

Re: make question

2011-04-28 Thread Arnaud Lacombe
Hi, On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt hartmut.bra...@dlr.de wrote: I think we can change this, because it would break makefiles that assume that the entire script is given to the shell in one piece. I'm not sure to parse that. We can change it because it would break stuff. That

Re: OMAP3 Question

2011-04-27 Thread Freddie Cash
On Wed, Apr 27, 2011 at 1:30 PM, Chris Richardson chris.richardson@gmail.com wrote:    I wanna emulate OMAP3 Processor. Is it approach I can use to emulate OMAP3 without the need to any hardware? Qemu has some basic support for this: http://code.google.com/p/qemu-omap3/ No idea how good it

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Rick Macklem
On Tue, Apr 19, 2011 at 12:00:29PM +, freebsd-hackers-requ...@freebsd.org wrote: Subject: Re: SMP question w.r.t. reading kernel variables To: Rick Macklem rmack...@uoguelph.ca Cc: freebsd-hackers@freebsd.org Message-ID: 201104181712.14457@freebsd.org [John Baldwin

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Alan Cox
On Wed, Apr 20, 2011 at 7:42 AM, Rick Macklem rmack...@uoguelph.ca wrote: On Tue, Apr 19, 2011 at 12:00:29PM +, freebsd-hackers-requ...@freebsd.org wrote: Subject: Re: SMP question w.r.t. reading kernel variables To: Rick Macklem rmack...@uoguelph.ca Cc: freebsd-hackers

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Rick Macklem
[good stuff snipped for brevity] 1. Set MNTK_UNMOUNTF 2. Acquire a standard FreeBSD mutex m. 3. Update some data structures. 4. Release mutex m. Then, other threads that acquire m after step 4 has occurred will see MNTK_UNMOUNTF as set. But, other threads that beat thread X to step 2

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Rick Macklem
[good stuff snipped for brevity] 1. Set MNTK_UNMOUNTF 2. Acquire a standard FreeBSD mutex m. 3. Update some data structures. 4. Release mutex m. Then, other threads that acquire m after step 4 has occurred will see MNTK_UNMOUNTF as set. But, other threads that beat thread X to

Re: SMP question w.r.t. reading kernel variables

2011-04-19 Thread Clifton Royston
On Tue, Apr 19, 2011 at 12:00:29PM +, freebsd-hackers-requ...@freebsd.org wrote: Subject: Re: SMP question w.r.t. reading kernel variables To: Rick Macklem rmack...@uoguelph.ca Cc: freebsd-hackers@freebsd.org Message-ID: 201104181712.14457@freebsd.org [John Baldwin] On Monday, April

Re: SMP question w.r.t. reading kernel variables

2011-04-18 Thread John Baldwin
On Sunday, April 17, 2011 3:49:48 pm Rick Macklem wrote: Hi, I should know the answer to this, but... When reading a global kernel variable, where its modifications are protected by a mutex, is it necessary to get the mutex lock to just read its value? For example: Aif

Re: SMP question w.r.t. reading kernel variables

2011-04-18 Thread Rick Macklem
On Sunday, April 17, 2011 3:49:48 pm Rick Macklem wrote: Hi, I should know the answer to this, but... When reading a global kernel variable, where its modifications are protected by a mutex, is it necessary to get the mutex lock to just read its value? For example: A if

Re: SMP question w.r.t. reading kernel variables

2011-04-18 Thread Rick Macklem
All of this makes sense. What I was concerned about was memory cache consistency and whet (if anything) has to be done to make sure a Oops, whet should have been what.. ___ freebsd-hackers@freebsd.org mailing list

Re: SMP question w.r.t. reading kernel variables

2011-04-18 Thread John Baldwin
On Monday, April 18, 2011 4:22:37 pm Rick Macklem wrote: On Sunday, April 17, 2011 3:49:48 pm Rick Macklem wrote: Hi, I should know the answer to this, but... When reading a global kernel variable, where its modifications are protected by a mutex, is it necessary to get the

Re: SMP question w.r.t. reading kernel variables

2011-04-17 Thread Attilio Rao
2011/4/17 Rick Macklem rmack...@uoguelph.ca: Hi, I should know the answer to this, but... When reading a global kernel variable, where its modifications are protected by a mutex, is it necessary to get the mutex lock to just read its value? For example: A    if ((mp-mnt_kern_flag

Re: SMP question w.r.t. reading kernel variables

2011-04-17 Thread Kostik Belousov
On Sun, Apr 17, 2011 at 03:49:48PM -0400, Rick Macklem wrote: Hi, I should know the answer to this, but... When reading a global kernel variable, where its modifications are protected by a mutex, is it necessary to get the mutex lock to just read its value? For example: Aif

Re: SMP question w.r.t. reading kernel variables

2011-04-17 Thread Rick Macklem
On Sun, Apr 17, 2011 at 03:49:48PM -0400, Rick Macklem wrote: Hi, I should know the answer to this, but... When reading a global kernel variable, where its modifications are protected by a mutex, is it necessary to get the mutex lock to just read its value? For example: A if

Re: Scheduler question

2011-02-23 Thread Daniel O'Connor
On 04/02/2011, at 13:26, Daniel O'Connor wrote: I am writing a program which reads from a data acquisition chassis connected to a radar via USB. The interface is a Cypress FX2 and I am communicating via libusb. I ended up writing a kernel driver (thank you hps for usb_fifo_*!) and it has

Re: Scheduler question

2011-02-18 Thread Daniel O'Connor
On 04/02/2011, at 13:26, Daniel O'Connor wrote: I only have about 10 milliseconds of buffering (96kbyte FIFO, 8Mbyte/sec) in the hardware, however I have about 128Mb of USB requests queued up to libusb. hps@ informed me that libusb will only queue 16kbyte (2msec) in the kernel at one time

Re: Scheduler question

2011-02-14 Thread Daniel O'Connor
On 11/02/2011, at 6:58, Matthew Dillon wrote: It sounds like there are at least two issues involved. The first could be a buffer cache starvation issue due to the load on the filesystem from the tar. If the usb program is doing any filesystem operation at all, even at low

Re: Scheduler question

2011-02-10 Thread Matthew Dillon
It sounds like there are at least two issues involved. The first could be a buffer cache starvation issue due to the load on the filesystem from the tar. If the usb program is doing any filesystem operation at all, even at low bandwidths, it could be hitting blockages due to the

Re: Scheduler question

2011-02-07 Thread Ivan Voras
On 07/02/2011 04:12, Daniel O'Connor wrote: On 07/02/2011, at 13:02, Ivan Voras wrote: I'll be looking at it on Monday, I will let you know :) No luck with mlock() so it wouldn't appear to be paging is the issue :( I'm also interested in raw device vs file system access! Oops, sorry.. I

Re: Scheduler question

2011-02-07 Thread Daniel O'Connor
On 07/02/2011, at 21:07, Ivan Voras wrote: I'm also interested in raw device vs file system access! Oops, sorry.. I just tried that now but it doesn't improve things :( Meaning: you still get jitter? Yes, well I didn't measure the read frequency but it dropped out (stopped streaming due

Re: Scheduler question

2011-02-07 Thread Ivan Voras
On 7 February 2011 13:38, Daniel O'Connor docon...@gsoft.com.au wrote: I am writing directly to /dev/ad10 but stressing /dev/ad14 (sudo tar -cf /dev/null /local0) Can you do only one of those things? I.e. leave all the file systems alone and just do something like 'diskinfo -vt /dev/ad14'?

Re: Scheduler question

2011-02-07 Thread Daniel O'Connor
On 07/02/2011, at 23:36, Ivan Voras wrote: OK, I wrote the data to /dev/null from USB and ran diskutil in a loop and it doesn't drop out. Maybe I misunderstood you and it's a different problem than what I was experiencing; is this a better description of your problem: 1) you have a

Re: Scheduler question

2011-02-06 Thread Daniel O'Connor
On 05/02/2011, at 12:43, Daniel O'Connor wrote: On 05/02/2011, at 11:09, Ivan Voras wrote: It doesn't allocate memory once it's going, everything is preallocated before the data transfer starts. I'll have a go with mlock() and see what happens. Did you find anything interesting? I'll

Re: Scheduler question

2011-02-06 Thread Ivan Voras
On 7 February 2011 02:41, Daniel O'Connor docon...@gsoft.com.au wrote: On 05/02/2011, at 12:43, Daniel O'Connor wrote: On 05/02/2011, at 11:09, Ivan Voras wrote: It doesn't allocate memory once it's going, everything is preallocated before the data transfer starts. I'll have a go with

Re: Scheduler question

2011-02-06 Thread Daniel O'Connor
On 07/02/2011, at 13:02, Ivan Voras wrote: I'll be looking at it on Monday, I will let you know :) No luck with mlock() so it wouldn't appear to be paging is the issue :( I'm also interested in raw device vs file system access! Oops, sorry.. I just tried that now but it doesn't improve

Re: Scheduler question

2011-02-04 Thread Ivan Voras
On 04/02/2011 03:56, Daniel O'Connor wrote: I hooked up a logic analyser and I can see most of the time it's fairly regularly transferring 16k of data every 2msec. If I load up the disk by, eg, tar -cf /dev/null /local0 I find it drops out and I can see gaps in the transfers until eventually

Re: Scheduler question

2011-02-04 Thread Daniel O'Connor
On 04/02/2011, at 21:48, Ivan Voras wrote: I am wondering if this is a scheduler problem (or I am expecting too much :) in that it is not running my libusb thread reliably under load. The other possibility is that it is a USB issue, although I am looking at using isochronous transfers

Re: Scheduler question

2011-02-04 Thread Ivan Voras
On 04/02/2011 12:45, Daniel O'Connor wrote: On 04/02/2011, at 21:48, Ivan Voras wrote: I am wondering if this is a scheduler problem (or I am expecting too much :) in that it is not running my libusb thread reliably under load. The other possibility is that it is a USB issue, although I am

Re: Scheduler question

2011-02-04 Thread Daniel O'Connor
On 05/02/2011, at 11:09, Ivan Voras wrote: It doesn't allocate memory once it's going, everything is preallocated before the data transfer starts. I'll have a go with mlock() and see what happens. Did you find anything interesting? I'll be looking at it on Monday, I will let you know :)

Re: A question about WARNING: attempt to domain_add(xyz) after domainfinalize()

2011-01-13 Thread Stefan Esser
Am 13.01.2011 06:42, schrieb Julian Elischer: On 1/12/11 5:26 AM, Svatopluk Kraus wrote: Hi, I'd like to add a new network domain into kernel (and never remove it) from loadable module. In fact, I did it, but I got following warning from domain_add(): WARNING: attempt to domain_add(xyz)

Re: A question about WARNING: attempt to domain_add(xyz) after domainfinalize()

2011-01-12 Thread Julian Elischer
On 1/12/11 5:26 AM, Svatopluk Kraus wrote: Hi, I'd like to add a new network domain into kernel (and never remove it) from loadable module. In fact, I did it, but I got following warning from domain_add(): WARNING: attempt to domain_add(xyz) after domainfinalize(). Now, I try to figure out what

Re: Scheduler Question

2010-10-12 Thread Garrett Cooper
On Sat, Oct 9, 2010 at 4:46 PM, Eknath Venkataramani eknath.i...@gmail.com wrote: DI of the FreeBSD Operating System says it's gonna refer to the BSD default scheduler, the 'time share scheduler' does this mean sched_4BSD.c(In the introduction section of Chapter 4) handles only time-share

Re: pageout question

2010-07-26 Thread RW
On Sun, 25 Jul 2010 23:43:08 +0300 Andriy Gapon a...@freebsd.org wrote: on 25/07/2010 23:28 RW said the following: I didn't say it say it was guaranteed. I just think the scenario where a first pass ends up between the watermarks is rare. And when it happens I don't see a compelling

Re: pageout question

2010-07-26 Thread Andriy Gapon
on 25/07/2010 23:43 Andriy Gapon said the following: on 25/07/2010 23:28 RW said the following: I didn't say it say it was guaranteed. I just think the scenario where a first pass ends up between the watermarks is rare. And when it happens I don't see a compelling reason to do extra paging to

Re: pageout question

2010-07-26 Thread Andriy Gapon
on 26/07/2010 20:53 RW said the following: If after the first pass with light-paging the high watermark isn't reached then the choices are 1) loop and immediately do a heavy-paging pass. 2) wait and let the daemon get woken-up for another light-paging pass - only go to heavy-paging when

Re: pageout question

2010-07-25 Thread Andriy Gapon
on 25/07/2010 02:31 RW said the following: On Sat, 24 Jul 2010 23:23:07 +0300 Andriy Gapon a...@freebsd.org wrote: There is a good deal of comments in the vm_pageout.c code that imply that we use a hysteresis approach to deal with low available pages condition. In general, the

Re: pageout question

2010-07-25 Thread RW
On Sun, 25 Jul 2010 13:07:21 +0300 Andriy Gapon a...@freebsd.org wrote: on 25/07/2010 02:31 RW said the following: As I understand it the hysteresis is done inside vm_pageout_scan, and the expectation is that one pass will typically satisfy this because the design aims to keep enough

Re: pageout question

2010-07-25 Thread Andriy Gapon
on 25/07/2010 16:41 RW said the following: On Sun, 25 Jul 2010 13:07:21 +0300 Andriy Gapon a...@freebsd.org wrote: on 25/07/2010 02:31 RW said the following: As I understand it the hysteresis is done inside vm_pageout_scan, and the expectation is that one pass will typically satisfy this

Re: pageout question

2010-07-25 Thread RW
On Sun, 25 Jul 2010 17:19:41 +0300 Andriy Gapon a...@freebsd.org wrote: on 25/07/2010 16:41 RW said the following: In FreeBSD the inactive queue contains disk cache pages which normally provide most of the clean pages needed. In addition pages are dribbled out to swap, and the resulting

Re: pageout question

2010-07-25 Thread Andriy Gapon
on 25/07/2010 23:28 RW said the following: On Sun, 25 Jul 2010 17:19:41 +0300 Andriy Gapon a...@freebsd.org wrote: on 25/07/2010 16:41 RW said the following: In FreeBSD the inactive queue contains disk cache pages which normally provide most of the clean pages needed. In addition pages

Re: pageout question

2010-07-24 Thread RW
On Sat, 24 Jul 2010 23:23:07 +0300 Andriy Gapon a...@freebsd.org wrote: There is a good deal of comments in the vm_pageout.c code that imply that we use a hysteresis approach to deal with low available pages condition. In general, the hysteresis, the comments and the code make sense.

Re: sysctl question

2010-07-13 Thread Ed Schouten
* Andreas Tobler andreast-l...@fgznet.ch wrote: But now I wonder how can I teach the sysctl to print my tempreature the same way as my userland app does. I seem to remember all the other temperature sensors expose their value using tenth Kelvin precision. There is some kind of modifier you can

Re: sysctl question

2010-07-13 Thread Andreas Tobler
On 13.07.10 10:48, Ed Schouten wrote: * Andreas Toblerandreast-l...@fgznet.ch wrote: But now I wonder how can I teach the sysctl to print my tempreature the same way as my userland app does. I seem to remember all the other temperature sensors expose their value using tenth Kelvin precision.

Re: c question

2010-04-23 Thread Eitan Adler
- 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 (forgetting look-ahead caching). For random access matrix is faster. ___

Re: c question

2010-04-23 Thread Joerg Sonnenberger
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 (forgetting look-ahead caching). For random access matrix is faster.

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: c question

2010-04-09 Thread Alexander Churanov
2010/4/9 Leinier Cruz Salfran salfrancl.lis...@gmail.com - use a matrix is faster than use a linked list? example: char *szColumnName[10]; unsigned short iColumnAge[10]; struct _llList { struct _llList *prev, *next; char szName[64]; unsigned short iAge; }; Leinier , This

Re: c question

2010-04-09 Thread Leinier Cruz Salfran
On Fri, Apr 9, 2010 at 10:52 AM, Alexander Churanov alexanderchura...@gmail.com wrote: 2010/4/9 Leinier Cruz Salfran salfrancl.lis...@gmail.com - use a matrix is faster than use a linked list? example: char *szColumnName[10]; unsigned short iColumnAge[10]; struct _llList {  struct

Re: c question

2010-04-09 Thread KAYVEN RIESE
On Fri, 9 Apr 2010, Leinier Cruz Salfran wrote: hello all i want to know your oppinions about this: - use a matrix is faster than use a linked list? yes. example: char *szColumnName[10]; unsigned short iColumnAge[10]; struct _llList { struct _llList *prev, *next; char szName[64];

Re: Newbie question: kernel image a dynamically linked binary?

2010-04-01 Thread Gary Jennejohn
On Thu, 1 Apr 2010 15:53:50 +0530 Daniel Rodrick daniel.rodr...@gmail.com wrote: Hello List, I'm a newbie and coming from Linux background, and am trying to learn FreeBSD now. The first thing I find a little confusing is that the final FreeBSD kernel image is shown as a DYNAMICALLY LINKED

Re: Newbie question: kernel image a dynamically linked binary?

2010-04-01 Thread Oliver Fromme
Hi, Please don't crosspost to many lists. This topic is probably suitable for hackers@ but not for the other lists. Daniel Rodrick daniel.rodr...@gmail.com wrote: I'm a newbie and coming from Linux background, and am trying to learn FreeBSD now. The first thing I find a little confusing is

Re: Newbie question: kernel image a dynamically linked binary?

2010-04-01 Thread John Baldwin
On Thursday 01 April 2010 6:23:50 am Daniel Rodrick wrote: Hello List, I'm a newbie and coming from Linux background, and am trying to learn FreeBSD now. The first thing I find a little confusing is that the final FreeBSD kernel image is shown as a DYNAMICALLY LINKED binary: $ $ pwd

Re: Newbie question: kernel image a dynamically linked binary?

2010-04-01 Thread Dag-Erling Smørgrav
Dag-Erling Smørgrav d...@des.no writes: File is right. The kernel contains relocation entries so kernel modules can be linked against it. relocation entries is possibly not the right term, someone with better knowledge of ELF will have to correct me. DES -- Dag-Erling Smørgrav - d...@des.no

Re: Newbie question: kernel image a dynamically linked binary?

2010-04-01 Thread Dag-Erling Smørgrav
Gary Jennejohn gary.jennej...@freenet.de writes: Daniel Rodrick daniel.rodr...@gmail.com writes: $ file kernel kernel: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped file is confused. FreeBSD uses a monolithic kernel and no

RE: ptrace question

2009-07-27 Thread Diskin, Gal
: Sunday, July 26, 2009 8:50 PM To: Diskin, Gal Cc: freebsd-hackers@freebsd.org Subject: Re: ptrace question On Sun, Jul 26, 2009 at 06:11:25PM +0300, Diskin, Gal wrote: Hi, I'm using ptrace to execute one application under the control of another (surprisingly :P). I'm trying to find the number

Re: bsd.lib.mk question

2009-07-27 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Gábor Kövesdán wrote: Hi, I wonder if there's a conventional way of building _only_ shared libraries using bsd.lib.mk. At default, it builds static, shared and profiled libraries, which is a waste of time because I only need shared

Re: bsd.lib.mk question

2009-07-26 Thread Ed Schouten
Hi Gabor, * Gábor Kövesdán ga...@kovesdan.org wrote: I wonder if there's a conventional way of building _only_ shared libraries using bsd.lib.mk. At default, it builds static, shared and profiled libraries, which is a waste of time because I only need shared libraries, which I use as

Re: ptrace question

2009-07-26 Thread Kostik Belousov
On Sun, Jul 26, 2009 at 06:11:25PM +0300, Diskin, Gal wrote: Hi, I'm using ptrace to execute one application under the control of another (surprisingly :P). I'm trying to find the number of the last system call executed in the traced process from the tracing process. In Linux this is done

Re: c question: *printf'ing arrays

2009-07-08 Thread Alexander Best
thx for all the great help guys. cheers, alex Carlos A. M. dos Santos schrieb am 2009-07-02: 2009/7/2 Dag-Erling Smørgrav d...@des.no: Alexander Best alexbes...@math.uni-muenster.de writes:     for (i=0; i sizeof(hdr-nintendo_logo); i++)         fprintf(stderr, %x, hdr-nintendo_logo[i]);

Re: c question: *printf'ing arrays

2009-07-04 Thread Giorgos Keramidas
On Tue, 30 Jun 2009 20:21:03 +0200 (CEST), Alexander Best alexbes...@math.uni-muenster.de wrote: thanks. now the output gets redirected using . i'm quite new to programming under unix. sorry for the inconvenience. so i guess there is no really easy way to output an inhomogeneous struct to

  1   2   3   4   5   6   >