From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 20:41:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5558106568B for ; Mon, 6 Oct 2008 20:41:31 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9882E8FC12 for ; Mon, 6 Oct 2008 20:41:29 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m96KfMh4013798 for ; Mon, 6 Oct 2008 22:41:22 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m96KL1KD012972 for ; Mon, 6 Oct 2008 22:21:01 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 6 Oct 2008 22:21:01 +0200 (CEST) From: Wojciech Puchar To: freebsd-questions@freebsd.org Message-ID: <20081006221523.P3921@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: TRUE realtime priority X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 20:41:31 -0000 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.