realtime priority for subspawned process

2011-11-17 Thread Peter Vereshagin
Hello.

I want to have a realtime priority for the particular daemon process launched 
from X11 application.

Daemon is: jackd and app is: audio/ardour.

Previous ardour version(s) allowed me to go well with sox but no more for now.

It tries to execute:

jackd -d oss

and the error is:

cannot use real-time scheduling (FIFO at priority 10) [for thread
169873472, from thread 169873472] (1: Operation not permitted)

It's ok though if i run the jack as a root. But I need not it like this for
jack started from ardour.

I tried to find a thing like 'realtime group':

http://jackaudio.org/linux_rt_config

but such a thing on a freebsd doesn't seem to exist. Or is it? I grepped for
'nice', 'rt', 'realtime' in login.conf but nothing like that so far.

Thus I have to trick 'jackd' command in the path to use the sudo and run jackd
with: nice(1), rtprio(1) or the user with the same uid but with nicer initial 
priority
in a login.conf.db.

Which of those 3 ways will work and will be the least evil?

Am I missing something and there are more ways to get with ardour?

Shall I file a gnats PR as the regular desktop user doesn't seem to be able to
use the audio/ardour?

Thank you.

--
Peter Vereshagin pe...@vereshagin.org (http://vereshagin.org) pgp: A0E26627 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Realtime

2010-12-21 Thread Da Rock

On 12/19/10 23:57, RW wrote:

On Sun, 19 Dec 2010 14:32:42 +1000
Da Rockfreebsd-questi...@herveybayaustralia.com.au  wrote:

   

I can't seem to get my head on straight with the realtime scheduling
in FBSD despite all my googling. Can someone give me a pointer to the
latest info? As far as I can tell FBSD has it, but only root(?) can
use it?

I'm interested in who can use it, and how to allow a user to obtain
the realtime access.
 

see rtprio(1). It has to be run as root so you would probably want use
sudo.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
   
Bugger! I was hoping there was more to it than that... I've read that 
already.


Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FBSD Realtime

2010-12-21 Thread Da Rock

On 12/20/10 11:49, Brandon Gooch wrote:

On Sun, Dec 19, 2010 at 6:49 AM, Da Rock
freebsd-questi...@herveybayaustralia.com.au  wrote:
   

In light of the significant spam of late, it occurs to me that my former
subject line may have been a little sparse... :)

On 12/19/10 14:32, Da Rock wrote:
 

I can't seem to get my head on straight with the realtime scheduling in
FBSD despite all my googling. Can someone give me a pointer to the latest
info? As far as I can tell FBSD has it, but only root(?) can use it?

I'm interested in who can use it, and how to allow a user to obtain the
realtime access.
   

There's an ongoing discussion/debate between two very knowledgeable
and talented developers (plus a supporting cast) regarding the
real-time support in FreeBSD; it's happening on freebsd-arch@:

http://lists.freebsd.org/pipermail/freebsd-arch/2010-December/010835.html

I suggest giving it a read if you are planning on deploying some
real-time process (or are interested in reading about FreeBSD
internals from some very knowledgeable people).
   

Good show! I'll check that out.

I'm actually the latter... :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FBSD Realtime

2010-12-21 Thread Da Rock

On 12/21/10 14:39, Ian Smith wrote:

In freebsd-questions Digest, Vol 342, Issue 1, Message: 14
On Sun, 19 Dec 2010 19:49:08 -0600
Brandon Goochjamesbrandongo...@gmail.com  wrote:
On Sun, Dec 19, 2010 at 6:49 AM, Da Rock
freebsd-questi...@herveybayaustralia.com.au  wrote:

  I can't seem to get my head on straight with the realtime scheduling in
  FBSD despite all my googling. Can someone give me a pointer to the 
latest
  info? As far as I can tell FBSD has it, but only root(?) can use it?

  I'm interested in who can use it, and how to allow a user to obtain the
  realtime access.
  
There's an ongoing discussion/debate between two very knowledgeable
and talented developers (plus a supporting cast) regarding the
real-time support in FreeBSD; it's happening on freebsd-arch@:
  
http://lists.freebsd.org/pipermail/freebsd-arch/2010-December/010835.html
  
I suggest giving it a read if you are planning on deploying some
real-time process (or are interested in reading about FreeBSD
internals from some very knowledgeable people).

Brandon, thanks for the pointer; I love it when those guys talk dirty :)

Rock, I think that thread well explains why only root may assign rtprio.

It's encouraging seeing rtprio get some oil; realt...@freebsd.org has
been all but dead for years, its latest message scheduling euthanasia:
http://lists.freebsd.org/pipermail/freebsd-realtime/2010-November/35.html

cheers, Ian
   
Yeah I know, its why I asked here first. I'm hunting in the archives, 
but given its so sparse and so far mostly past history I wanted to see 
if there was any newer info/docs/lists where I could gain some 
understanding of it.


Thanks guys
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Realtime

2010-12-21 Thread Alejandro Imass
On Tue, Dec 21, 2010 at 7:21 AM, Da Rock
freebsd-questi...@herveybayaustralia.com.au wrote:
 On 12/19/10 23:57, RW wrote:

 On Sun, 19 Dec 2010 14:32:42 +1000
 Da Rockfreebsd-questi...@herveybayaustralia.com.au  wrote:

[...]


 Bugger! I was hoping there was more to it than that... I've read that
 already.


Yeah I was left with the same feeling after tagging your thread for
follow-up. The man says that it derives from the HP-UX model so maybe
there are some references to that, and we shoudl start there. I would
like to know what the exact differences are with nice. I was expecting
to find for example, the rtprio value to be in actual time units,
question: is there a correlation to the number and a concrete RT value
say cpu cycles or so? Is there a way to calculate the the minimum
expected timeslice or the maximum time to re-schedule. For example, in
PLC design you usually have to guarantee that you will evaluate a
certain number of ladder instruction in a maximum amount of time, say
1000 ladder instructions in a worst case of 100ms. So the question is
if this is rt scheduling then there must be a correlation with rt
units. I don't have much time but I will try to research this soon



 Thanks
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FBSD Realtime

2010-12-20 Thread Ian Smith
In freebsd-questions Digest, Vol 342, Issue 1, Message: 14
On Sun, 19 Dec 2010 19:49:08 -0600
Brandon Gooch jamesbrandongo...@gmail.com wrote:
  On Sun, Dec 19, 2010 at 6:49 AM, Da Rock
  freebsd-questi...@herveybayaustralia.com.au wrote:

   I can't seem to get my head on straight with the realtime scheduling in
   FBSD despite all my googling. Can someone give me a pointer to the latest
   info? As far as I can tell FBSD has it, but only root(?) can use it?
  
   I'm interested in who can use it, and how to allow a user to obtain the
   realtime access.
  
  There's an ongoing discussion/debate between two very knowledgeable
  and talented developers (plus a supporting cast) regarding the
  real-time support in FreeBSD; it's happening on freebsd-arch@:
  
  http://lists.freebsd.org/pipermail/freebsd-arch/2010-December/010835.html
  
  I suggest giving it a read if you are planning on deploying some
  real-time process (or are interested in reading about FreeBSD
  internals from some very knowledgeable people).

Brandon, thanks for the pointer; I love it when those guys talk dirty :)

Rock, I think that thread well explains why only root may assign rtprio.

It's encouraging seeing rtprio get some oil; realt...@freebsd.org has 
been all but dead for years, its latest message scheduling euthanasia: 
http://lists.freebsd.org/pipermail/freebsd-realtime/2010-November/35.html

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FBSD Realtime

2010-12-19 Thread Da Rock
In light of the significant spam of late, it occurs to me that my former 
subject line may have been a little sparse... :)


On 12/19/10 14:32, Da Rock wrote:
I can't seem to get my head on straight with the realtime scheduling 
in FBSD despite all my googling. Can someone give me a pointer to the 
latest info? As far as I can tell FBSD has it, but only root(?) can 
use it?


I'm interested in who can use it, and how to allow a user to obtain 
the realtime access.


Cheers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Realtime

2010-12-19 Thread RW
On Sun, 19 Dec 2010 14:32:42 +1000
Da Rock freebsd-questi...@herveybayaustralia.com.au wrote:

 I can't seem to get my head on straight with the realtime scheduling
 in FBSD despite all my googling. Can someone give me a pointer to the 
 latest info? As far as I can tell FBSD has it, but only root(?) can
 use it?
 
 I'm interested in who can use it, and how to allow a user to obtain
 the realtime access.

see rtprio(1). It has to be run as root so you would probably want use
sudo.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FBSD Realtime

2010-12-19 Thread Brandon Gooch
On Sun, Dec 19, 2010 at 6:49 AM, Da Rock
freebsd-questi...@herveybayaustralia.com.au wrote:
 In light of the significant spam of late, it occurs to me that my former
 subject line may have been a little sparse... :)

 On 12/19/10 14:32, Da Rock wrote:

 I can't seem to get my head on straight with the realtime scheduling in
 FBSD despite all my googling. Can someone give me a pointer to the latest
 info? As far as I can tell FBSD has it, but only root(?) can use it?

 I'm interested in who can use it, and how to allow a user to obtain the
 realtime access.

There's an ongoing discussion/debate between two very knowledgeable
and talented developers (plus a supporting cast) regarding the
real-time support in FreeBSD; it's happening on freebsd-arch@:

http://lists.freebsd.org/pipermail/freebsd-arch/2010-December/010835.html

I suggest giving it a read if you are planning on deploying some
real-time process (or are interested in reading about FreeBSD
internals from some very knowledgeable people).

-Brandon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Realtime

2010-12-18 Thread Da Rock
I can't seem to get my head on straight with the realtime scheduling in 
FBSD despite all my googling. Can someone give me a pointer to the 
latest info? As far as I can tell FBSD has it, but only root(?) can use it?


I'm interested in who can use it, and how to allow a user to obtain the 
realtime access.


Cheers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


realtime network replication

2008-11-27 Thread EforeZZ
Ansar Mohammed wrote:
Hello all,
I need to replicate /home between two freebsd servers in real time (no
scheduled rsyncs)
What are my options?

Hi,

The following configuration seems to do what you ask for:

Two NFS servers, each of them provides access to a huge equal-sized
file-container.
Third server mounts directories with files-containers from the
prevoius two servers.
GEOM RAID1 mirroring is used on the third server to create a /home
filesystem backed by two huge file-containers.

You will have a copy of your /home inside the GEOM file-container on
each of the two servers.
You will get realtime data replication.

Drop a note if the performance of such configuration is acceptable :)

Best regards,
EforeZZ
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: realtime network replication

2008-11-19 Thread Ivan Voras
Ansar Mohammed wrote:
 Hello all,
 
 I need to replicate /home between two freebsd servers in real time (no
 scheduled rsyncs)
 
  
 
 What are my options?

Maybe the best option for you would be
http://www.furquim.org/chironfs/index.en.html used in combination with NFS.

It's available as fusefs-chiron in ports.



signature.asc
Description: OpenPGP digital signature


Re: realtime network replication

2008-11-18 Thread Chuck Swiger

On Nov 17, 2008, at 5:32 PM, Ansar Mohammed wrote:
Ok, I have /home on one server, I need to REPLICATE /home to another  
server
in realtime. Kinda like a mirror, but over a network. I don't want  
to use

rsync because its not realtime.


Yeah, your problem description is clear enough.  If you want true  
redundancy and the data available from both machines, you're talking  
about more of a clustered filesystem like Veritas CFS or maybe Andrew  
FS / DFS from Transarc.


However, you might also find something like /usr/ports/net/unison a  
reasonable alternative:


  http://www.cis.upenn.edu/~bcpierce/unison/

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


realtime network replication

2008-11-17 Thread Ansar Mohammed
Hello all,

I need to replicate /home between two freebsd servers in real time (no
scheduled rsyncs)

 

What are my options?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: realtime network replication

2008-11-17 Thread Chuck Swiger

On Nov 17, 2008, at 5:25 PM, Ansar Mohammed wrote:

I need to replicate /home between two freebsd servers in real time (no
scheduled rsyncs)  What are my options?


Most people use a network file system (ie, NFS, Samba/CIFS, etc) for  
this sort of thing


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: realtime network replication

2008-11-17 Thread Ansar Mohammed
Ok, I have /home on one server, I need to REPLICATE /home to another server
in realtime. Kinda like a mirror, but over a network. I don't want to use
rsync because its not realtime.



 -Original Message-
 From: Chuck Swiger [mailto:[EMAIL PROTECTED]
 Sent: November 17, 2008 8:28 PM
 To: Ansar Mohammed
 Cc: freebsd-questions@freebsd.org
 Subject: Re: realtime network replication
 
 On Nov 17, 2008, at 5:25 PM, Ansar Mohammed wrote:
  I need to replicate /home between two freebsd servers in real time
 (no
  scheduled rsyncs)  What are my options?
 
 Most people use a network file system (ie, NFS, Samba/CIFS, etc) for
 this sort of thing
 
 --
 -Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: realtime network replication

2008-11-17 Thread Eric Schuele
On 11/17/2008 19:32, Ansar Mohammed wrote:
 Ok, I have /home on one server, I need to REPLICATE /home to another server
 in realtime. Kinda like a mirror, but over a network. I don't want to use
 rsync because its not realtime.

Something along the lines of this maybe:
http://phaq.phunsites.net/2006/08/11/realtime-file-system-replication-on-freebsd/

(Disclaimer I've not used the procedure above.)

 
 
 
 -Original Message-
 From: Chuck Swiger [mailto:[EMAIL PROTECTED]
 Sent: November 17, 2008 8:28 PM
 To: Ansar Mohammed
 Cc: freebsd-questions@freebsd.org
 Subject: Re: realtime network replication

 On Nov 17, 2008, at 5:25 PM, Ansar Mohammed wrote:
 I need to replicate /home between two freebsd servers in real time
 (no
 scheduled rsyncs)  What are my options?
 Most people use a network file system (ie, NFS, Samba/CIFS, etc) for
 this sort of thing

 --
 -Chuck
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 


-- 
Regards,
Eric




signature.asc
Description: OpenPGP digital signature


RE: realtime network replication

2008-11-17 Thread Ansar Mohammed
Ideally geom would have been perfect, except we cant have more than one host
writing to the mirror.

 -Original Message-
 From: Chuck Swiger [mailto:[EMAIL PROTECTED]
 Sent: November 17, 2008 8:28 PM
 To: Ansar Mohammed
 Cc: freebsd-questions@freebsd.org
 Subject: Re: realtime network replication
 
 On Nov 17, 2008, at 5:25 PM, Ansar Mohammed wrote:
  I need to replicate /home between two freebsd servers in real time
 (no
  scheduled rsyncs)  What are my options?
 
 Most people use a network file system (ie, NFS, Samba/CIFS, etc) for
 this sort of thing
 
 --
 -Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: realtime network replication

2008-11-17 Thread Dan
Ansar Mohammed([EMAIL PROTECTED])@2008.11.17 20:25:18 -0500:
 Hello all,
 
 I need to replicate /home between two freebsd servers in real time (no
 scheduled rsyncs)
 
  
 
 What are my options?

You might have to wait until DragonflyBSD has clustering capabilities.
It is quickly moving towards that goal. HAMMER
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: realtime network replication

2008-11-17 Thread Valentin Bud
On Tue, Nov 18, 2008 at 3:25 AM, Ansar Mohammed [EMAIL PROTECTED] wrote:
 Hello all,

 I need to replicate /home between two freebsd servers in real time (no
 scheduled rsyncs)

what about csync ?




 What are my options?

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-09 Thread Wojciech Puchar

well last night i tested it with SCHED_4BSD instead of sched_ule, reduced
quantum to 2 from 10 and for now - no voice chopping under high
load. but i will test it more.


What version of FreeBSD are you using for this?  Yes, it matters.


got RELENG_7 yesterday by cvs, now SCHED_ULE works fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-09 Thread Jeremy Chadwick
On Thu, Oct 09, 2008 at 10:00:16PM +0200, Wojciech Puchar wrote:
 well last night i tested it with SCHED_4BSD instead of sched_ule, reduced
 quantum to 2 from 10 and for now - no voice chopping under high
 load. but i will test it more.

 What version of FreeBSD are you using for this?  Yes, it matters.

 got RELENG_7 yesterday by cvs, now SCHED_ULE works fine.

Great!  Glad to hear it.  :-)  Thanks for following up!

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-07 Thread Wojciech Puchar

quantum to 2 from 10 and for now - no voice chopping under high
load. but i will test it more.


What version of FreeBSD are you using for this?  Yes, it matters.


7.0

please give me few days to make more precise reports from my users and me 
being on place today (not just testing this through echo).


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-07 Thread Wojciech Puchar

Well, basically you are the only one who can answer that. And that's not
a paradox or an attempt at humor. You should investigate. Maybe
interrupts aren't processed fast enough (hardware sharing an
interrupt?), or memory or kernel resources are low.


well last night i tested it with SCHED_4BSD instead of sched_ule, reduced 
quantum to 2 from 10 and for now - no voice chopping under high 
load. but i will test it more.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 11:18:32AM +0200, Wojciech Puchar wrote:
 Well, basically you are the only one who can answer that. And that's not
 a paradox or an attempt at humor. You should investigate. Maybe
 interrupts aren't processed fast enough (hardware sharing an
 interrupt?), or memory or kernel resources are low.

 well last night i tested it with SCHED_4BSD instead of sched_ule, reduced 
 quantum to 2 from 10 and for now - no voice chopping under high  
 load. but i will test it more.

What version of FreeBSD are you using for this?  Yes, it matters.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-07 Thread Wojciech Puchar

for example when lots of spam comes to server and lots of resource hungry
spamassassin processes are spawned our calls starts to be crappy.


And that's why I always have isolated my telephony servers from
normal-ISP tasks: They provide real-time tasks and should be running
in memory only.

i know that but it's not an answer to my question anyway.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


TRUE realtime priority

2008-10-06 Thread Wojciech Puchar

is it possible on FreeBSD

i run asterisk with realtime priority. it works perfectly no matter how 
much CPU is loaded by other non-telephony tasks.


but with lots of VM pressure it starts to so... like like tha..that...

what causes it to behave like that and how to fix it.

for example when lots of spam comes to server and lots of resource hungry 
spamassassin processes are spawned our calls starts to be crappy.


CPU load for asterisk rarely exceed few percent!

i think having separate computer just for this is stupid, i would do this 
having no other choice, but can it be done without this.


realtime priority is realtime priority anyway - it should work.


i understand that asterisk may stall requesting memory when VM pressure is 
high, but asterisk's thread that processes already set-up call - just 
moving voicepackets in and out - it doesn't need to allocate more memory 
so why it's stalled?



any network problems are eliminated, the effect happens even with 2 local 
phones.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TRUE realtime priority

2008-10-06 Thread Roland Smith
On Mon, Oct 06, 2008 at 10:21:01PM +0200, Wojciech Puchar wrote:
 is it possible on FreeBSD

No, I think.
 
 i run asterisk with realtime priority. it works perfectly no matter how 
 much CPU is loaded by other non-telephony tasks.
 
 but with lots of VM pressure it starts to so... like like tha..that...
 
 what causes it to behave like that and how to fix it.

Well, basically you are the only one who can answer that. And that's not
a paradox or an attempt at humor. You should investigate. Maybe
interrupts aren't processed fast enough (hardware sharing an
interrupt?), or memory or kernel resources are low.

 for example when lots of spam comes to server and lots of resource hungry 
 spamassassin processes are spawned our calls starts to be crappy.
 
 CPU load for asterisk rarely exceed few percent!

Yes, but FreeBSD isn't a _hard_ real-time OS (see below).
 
 i think having separate computer just for this is stupid, i would do this 
 having no other choice, but can it be done without this.
 
 realtime priority is realtime priority anyway - it should work.

It does depend what you mean by real-time. Usually real-time systems are
devided into the soft and hard categories. See the Wikipedia article
on real-time computing [http://en.wikipedia.org/wiki/Real-time_computing]
and operating systems [http://en.wikipedia.org/wiki/Real-time_operating_system].

Most hard real-time systems are embedded systems with a specific
function (say, ECU, FADEC, ABS, digital music player). I don't think
there are general use OS's which would classify as hard real-time
(AFAIK, RTLinux runs Linux as a low-priority task on a real-time
core). Most of them support soft real-time, as in we'll try to get
these tasks done before a specific deadline, but no promises.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpznmhwkzvAp.pgp
Description: PGP signature


Re: TRUE realtime priority

2008-10-06 Thread Unga
--- On Tue, 10/7/08, Wojciech Puchar [EMAIL PROTECTED] wrote:

Hello Wojciech

 is it possible on FreeBSD
 
Its soft RT. Try to use the latest ULE scheduler. 

 i run asterisk with realtime priority. it works perfectly
 no matter how 
 much CPU is loaded by other non-telephony tasks.
 
 but with lots of VM pressure it starts to so... like like
 tha..that...
 
 what causes it to behave like that and how to fix it.
 
VM (interrupt priority) runs higher priority than RT in FreeBSD. The interrupt 
priority preempts RT.

To fix it, don't have any VM activity. Increase your RAM.

 for example when lots of spam comes to server and lots of
 resource hungry 
 spamassassin processes are spawned our calls starts to be
 crappy.
 
 CPU load for asterisk rarely exceed few percent!
 
 i think having separate computer just for this is stupid, i
 would do this 
 having no other choice, but can it be done without this.
 
When a postman deliver mail, do you check whether are they to you before accept 
or just blindly accept all and check later? :)

Best regards
Unga


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


TRUE realtime priority

2008-10-06 Thread Edwin Groothuis
 for example when lots of spam comes to server and lots of resource hungry
 spamassassin processes are spawned our calls starts to be crappy.

And that's why I always have isolated my telephony servers from
normal-ISP tasks: They provide real-time tasks and should be running
in memory only.

Edwin

-- 
Edwin Groothuis Website: http://www.mavetju.org/
[EMAIL PROTECTED]   Weblog:  http://www.mavetju.org/weblog/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can a realtime process downgrade while running?

2008-01-25 Thread Unga
Hi all

I ran amarok and ossxmix in realtime.

Following is the display from the top command.

 PID USERNAME  THR PRI NICE   SIZERES STATE  C  
TIME   WCPU COMMAND
1047 test6  960 72524K 29776K ucond  0  
1:06  0.15% amarokapp
 940 root1  960   173M 45560K select 0  
1:36  0.00% Xorg
1065 test1  44   r0 14528K  7336K select 0  
0:12  0.00% ossxmix

Following are the rtprio output for those processes:
$ rtprio 1047   [for amarokapp ]
rtprio: realtime priority 0

$ rtprio 1065   [for ossxmix ]
rtprio: realtime priority 0

$ rtprio 940[ for Xorg ]
rtprio: normal priority

Why does it show 96 under the PRI column for
amarokapp? And it doesn't show r0 for NICE for
amarokapp. Does it mean amarokapp downgraded to normal
priority? But while amarok is playing rtprio shows it
is still realtime. which one is right?

Best Regards
Unga


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a port to 'copy' audio from one soundcard to another in realtime?

2007-12-12 Thread Lowell Gilbert
Steve Franks [EMAIL PROTECTED] writes:

 Say I have multiple usb audio devices, and I want to make a simple
 'mixer' - anyone know how to do that?

You could try just using cat(1) to copy between the devices...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


is there a port to 'copy' audio from one soundcard to another in realtime?

2007-12-11 Thread Steve Franks
Say I have multiple usb audio devices, and I want to make a simple
'mixer' - anyone know how to do that?

Thanks,
Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Realtime File System Replication On FreeBSD How reliable is it?

2007-06-01 Thread Antonio

Hi all,

I found this site with instructions to setup what is basically a network 
RAID-1:


http://phaq.phunsites.net/2006/08/11/realtime-file-system-replication-on-freebsd/

My question is:  What experience does anyone have using this solution on 
a production environment? 


I will appreciate any thoughts or advise you may provide.

Regards,

Antonio  Noriega
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Realtime File System Replication On FreeBSD How reliable is it?

2007-06-01 Thread Steve Bertrand
Antonio wrote:
 Hi all,
 
 I found this site with instructions to setup what is basically a network
 RAID-1:
 
 http://phaq.phunsites.net/2006/08/11/realtime-file-system-replication-on-freebsd/
 
 
 My question is:  What experience does anyone have using this solution on
 a production environment?
 I will appreciate any thoughts or advise you may provide.

I have used vinum for quite a while, never, ever had a problem. In fact,
in RAID-1, I had a motherboard and a disk fail simultaneously. I popped
the good drive into another box, and we were right back up after some
very minor modifications.

Of course, this is no solution to rotating backups though, but in
addition to it, it handles well, easy to set up, and easy to document
your setup.

I also use it on a backup machine that has 6 72GB SCSI drives to span
them together so that in addition to my tape backups, I have a 300GB
storage facility (running on an old CacheFlow 3000) that I run Amanda on
to hold my most critical information.

vinum (gvinum) has worked good for me for a good couple years, at least.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Realtime File System Replication On FreeBSD How reliable is it?

2007-06-01 Thread Francisco Reyes

Steve Bertrand writes:


I have used vinum for quite a while, never, ever had a problem. In fact,
in RAID-1, I had a motherboard and a disk fail simultaneously. I popped


He is not asking about disk RAID.

I found this site with instructions to setup what is basically a 
network RAID-1:

http://phaq.phunsites.net/2006/08/11/realtime-file-system-replication-on-freebsd/



Looking at the link it seems he is actually asking about geom_gate.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd realtime network usage limiter?

2007-01-23 Thread deeptech71
That is, I have a router connecting to the internet through PPP. There are 4 
computers (and a DSL modem) connected to the router. The router does not limit 
or share internet speed evenly, so if I download via TCP at full speed, others 
complain about slow loading web pages. My comp has a FreeBSD OS. How can I 
limit my upload and download speed to, say, 0.333 of the speed permitted by my 
provider? Also, if I had a FreeBSD router, how could I share speed evenly?


BTW: Is it true that are some types of traffic that need higher priority, such 
as games using UDP, so that data does not lag?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd realtime network usage limiter?

2007-01-23 Thread Andy Greenwood

On 1/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

That is, I have a router connecting to the internet through PPP. There are 4
computers (and a DSL modem) connected to the router. The router does not limit
or share internet speed evenly, so if I download via TCP at full speed, others
complain about slow loading web pages. My comp has a FreeBSD OS. How can I
limit my upload and download speed to, say, 0.333 of the speed permitted by my
provider? Also, if I had a FreeBSD router, how could I share speed evenly?



You can pretty easily set up a FBSD router to shpe bandwidth like
this. I have done exactly that using the PF firewall with ALTQ.
Unfortunately, ALTQ is not availible as a loadable module, so if you
want to use it, you'll have to recompile the kernel with support
enabled.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.html
http://www.openbsd.org/faq/pf/

that should get you started


BTW: Is it true that are some types of traffic that need higher priority, such
as games using UDP, so that data does not lag?


Absolutely it is true. I don't run any gaming through my firewall, but
one great example is TCP ACK packets. If you are on an asymmetrical
connection (up/down bandwith aren't equal) you should prioritize
outgoing TCP ACK packets to the highest level, since this will improve
download performance.

You might want to look at ports/security/pfw if you're not familiar
with pf syntax, and it can make building a ruleset a lot easier, at
least for the first time.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




--
--
I'm nerdy in the extreme and whiter than sour cream
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


binary called top not have realtime filter/search? [#SHAZBOTAA7235423352662A]

2007-01-12 Thread Peter aka SweetPete

I've red the manpage for top (from heh heh top to bottom...), and
I am amazed that there is not a feature to hit '/' or '?' in order to
search and display only processes which match a certain keyword/search
term.  For example, a user running top could hit '/' and enter fire,
which would display processes related to firefox.

What is the best way to get (such) a feature added to top?!  I know
I know, I'm always causing mayhem.  *grin*

--
Peter aka SweetPete!
La Jolla San Diego, CA, 92039, USA, EARTH
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binary called top not have realtime filter/search? [#SHAZBOTAA7235423352662A]

2007-01-12 Thread Dan Nelson
In the last episode (Jan 12), Peter aka SweetPete said:
 I've red the manpage for top (from heh heh top to bottom...), and
 I am amazed that there is not a feature to hit '/' or '?' in order to
 search and display only processes which match a certain keyword/search
 term.  For example, a user running top could hit '/' and enter fire,
 which would display processes related to firefox.
 
 What is the best way to get (such) a feature added to top?!  I know
 I know, I'm always causing mayhem.  *grin*

Submit a patch :)  It's a useful idea, though.

Usually filtering on username (u myuser), or sorting by size (o
size) works for me.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binary called top not have realtime filter/search? [#SHAZBOTAA7235423352662A]

2007-01-12 Thread Giorgos Keramidas
On 2007-01-12 14:02, Peter aka SweetPete [EMAIL PROTECTED] wrote:
 I've red the manpage for top (from heh heh top to bottom...),
 and I am amazed that there is not a feature to hit '/' or '?' in
 order to search and display only processes which match a certain
 keyword/search term.  For example, a user running top could hit '/'
 and enter fire, which would display processes related to
 firefox.

That's an excellent idea :)

Should we also allow for limiting by other stuff too, i.e. like the
'l' command in the mail/mutt mailer accepts a 'limit pattern' with a
syntax like:

Limiting by PID

~p minpid-maxpidonly show pids in [minpid...maxpid]
~p maxpid  only show pids less than maxpid
~p minpid  only show pids greater than minpid

Limiting by username or user ID

~u username only show processes of user `username'
~U uid  only show processes of user uid
~U uidmin-uidmaxonly show processes of users minuid-maxuid

Limiting by number of threads

~t minthr-maxthronly show processes with minthr-maxthr threads
~t maxthr  only show processes with less than maxthr threads
~t minthr  only show processes with more than minthr threads

Limiting by priority

~P minpri-maxprionly show processes with minpri-maxpri priority
~P maxpri  only show processes with less than maxpri priority
~P minpri

[...]

You get the idea...

 What is the best way to get (such) a feature added to top?! I know
 I know, I'm always causing mayhem.  *grin*

If you have a patch to submit, I'm sure we can find people who are
interested in reviewing, testing and committing it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binary called top not have realtime filter/search? [#SHAZBOTAA7235423352662A]

2007-01-12 Thread Philip Hallstrom

On 2007-01-12 14:02, Peter aka SweetPete [EMAIL PROTECTED] wrote:

I've red the manpage for top (from heh heh top to bottom...),
and I am amazed that there is not a feature to hit '/' or '?' in
order to search and display only processes which match a certain
keyword/search term.  For example, a user running top could hit '/'
and enter fire, which would display processes related to
firefox.


That's an excellent idea :)

Should we also allow for limiting by other stuff too, i.e. like the
'l' command in the mail/mutt mailer accepts a 'limit pattern' with a
syntax like:

...


Limiting by username or user ID

   ~u username  only show processes of user `username'
   ~U uid   only show processes of user uid
   ~U uidmin-uidmax only show processes of users minuid-maxuid



username is already there...

u  Display only processes owned by a specific username (prompt  for
username).   If  the username specified is simply +, then processes
belonging to all users will be displayed.


-philip
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: binary called top not have realtime filter/search? [#SHAZBOTAA7235423352662A]

2007-01-12 Thread Giorgos Keramidas
On 2007-01-12 19:27, Philip Hallstrom [EMAIL PROTECTED] wrote:
On 2007-01-12 14:02, Peter aka SweetPete [EMAIL PROTECTED] wrote:
I've red the manpage for top (from heh heh top to bottom...),
and I am amazed that there is not a feature to hit '/' or '?' in
order to search and display only processes which match a certain
keyword/search term.  For example, a user running top could hit '/'
and enter fire, which would display processes related to
firefox.

 That's an excellent idea :)

 Should we also allow for limiting by other stuff too, i.e. like the
 'l' command in the mail/mutt mailer accepts a 'limit pattern' with a
 syntax like:


 Limiting by username or user ID

~u username   only show processes of user `username'
~U uidonly show processes of user uid
~U uidmin-uidmax  only show processes of users minuid-maxuid

 username is already there...

 u  Display only processes owned by a specific username (prompt  for
 username).   If  the username specified is simply +, then processes
 belonging to all users will be displayed.

I know.  I was thinking loudly of a way to extend this without having
to hijack the entire keyboard.  If/when we have a more featureful
limiting mechanism, we can certainly leave 'u' as a key binding that
works exactly the same as before, for compatibility reasons.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: monitor bandwith realtime per IP

2005-08-12 Thread Abu Khaled
On 8/11/05, vladone [EMAIL PROTECTED] wrote:
 Hi!
 Know somebody an aplication who can monitor bandwith (real time) per IP?
 Something like bwm-ng but per IP?
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

I use these 2 programs for the console
net-mgmt/iftop
net/traffic

-- 
Regards.
Abu Khaled
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


monitor bandwith realtime per IP

2005-08-11 Thread vladone
Hi!
Know somebody an aplication who can monitor bandwith (real time) per IP?
Something like bwm-ng but per IP?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]