Re: Real time programming in OpenBSD

2014-09-10 Thread Ingo Schwarze
Hi Matti, Matti Karnaattu wrote on Thu, Sep 11, 2014 at 02:14:25AM +0300: > 1. Is there any preferred way to post diffs? * cvs diff -Nup * send inline in the mail body, not as MIME attachments * if you are already in contact with a particular group of developers who want to review diffs in

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
Thanks for the comprehensive answer. I was already looking for coding conventions. That preferred style is actually fair, and it is important that everyone is in line and respect that. I also agree that goto is fair way to model exceptions in C language. Couple of questions before I start hacking:

Re: Real time programming in OpenBSD

2014-09-10 Thread Brett Mahar
| | However, I can't do that task because I don't know the OpenBSD developers | mindset and I don't know yet is this the right community. I'm | interested to put effort in controlled manner and help to remove ambiquity. | | I'm still probing this community. | Hi Matti, Best way to see what thi

Re: New Queue system

2014-09-10 Thread Francisco Valladolid H.
I'm reading now. Thank you. On Wed, Sep 10, 2014 at 12:40 PM, Christopher Zimmermann wrote: > On Wed, 10 Sep 2014 12:27:00 -0500 "Francisco Valladolid H." > wrote: > >> Thank you. >> >> There are a docs or FAQ ? > > not that I know of. That's what I do: > > queue dsl on pppoe0

Re: New Queue system

2014-09-10 Thread Paul S.
Hi, I believe he intended to reference http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/pf.conf.5?query=pf%2econf&arch=i386 On 9/11/2014 午前 02:27, Francisco Valladolid H. wrote: Thank you. There are a docs or FAQ ? On Wed, Sep 10, 2014 at 12:13 PM, Christopher Zimmermann wrote

Re: New Queue system

2014-09-10 Thread Francisco Valladolid H.
Thank you. There are a docs or FAQ ? On Wed, Sep 10, 2014 at 12:13 PM, Christopher Zimmermann wrote: > On Wed, 10 Sep 2014 12:01:17 -0500 "Francisco Valladolid H." > wrote: > >> Where can find the docs for the new queue system in OpenBSD ? > > > pf.conf(5) search for QUEUEING > -- > http://gm

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
>Note that that diff does the converse of what you requested, pegging a >thread to a CPU instead of banning the CPU from running other >processes' threads. True, but this is good starting point. >On your bigger question: I don't know of any one working on making >OpenBSD a realtime OS in the sens

Re: Real time programming in OpenBSD

2014-09-10 Thread Ingo Schwarze
Hi Matti, i don't know about "safety critical" and have no idea whether what you are saying / trying to do there makes any sense, so i'm snipping that. Replying to your other questions... Matti Karnaattu wrote on Wed, Sep 10, 2014 at 04:29:14PM +0300: > Is there any centralized static analysis

New Queue system

2014-09-10 Thread Francisco Valladolid H.
Where can find the docs for the new queue system in OpenBSD ? I remeber the ALTQ in the OpenBSD pf faq. Best Regards. -- Francisco Valladolid H. -- http://blog.bsdguy.net - Jesus Christ follower.

Re: Real time programming in OpenBSD

2014-09-10 Thread Philip Guenther
On Wed, Sep 10, 2014 at 7:09 AM, Matti Karnaattu wrote: >>You can use this diff if you want, it adds support for nice(1) to do >>the binding, I use it to do MP tests. > > Thanks! This helps a lot. Note that that diff does the converse of what you requested, pegging a thread to a CPU instead of ba

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
>You can use this diff if you want, it adds support for nice(1) to do >the binding, I use it to do MP tests. Thanks! This helps a lot.

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
>"hobby" and "safety critical" don't often go together. if you just >want to improve your skills i say go for it but aiming for safety >critical is a high bar to achieve. I like to keep bar high. >But if you're really looking to do safety critical, which industry are >you going to target? Medica

Re: Real time programming in OpenBSD

2014-09-10 Thread Christiano F. Haesbaert
On 9 September 2014 22:30, Matti Karnaattu wrote: > Hello, > > Is it possible to dedicate CPU core to process? > > What I'm looking for is simple way to take advantage of high quality and > secure code base of OpenBSD to use in real time/embedded applications. > If this trick can be achived, it is

Re: Semi-reproduceable em0 network hangs in new snap

2014-09-10 Thread Bryan Linton
On 2014-09-06 23:13:51, Bryan Linton wrote: > Hello list, > > [dmesg and ifconfig output attached inline at bottom] > > I upgraded from a mid-July snapshot to a recent one, and I've been > experiencing a strange problem with the network losing > connectivity that I haven't been able to pin down.