From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751126AbWDQPzG (ORCPT ); Mon, 17 Apr 2006 11:55:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751131AbWDQPzG (ORCPT ); Mon, 17 Apr 2006 11:55:06 -0400 Received: from pproxy.gmail.com ([64.233.166.181]:56977 "EHLO pproxy.gmail.com") by vger.kernel.org with ESMTP id S1751126AbWDQPzF convert rfc822-to-8bit (ORCPT ); Mon, 17 Apr 2006 11:55:05 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eAZhKJz8moQgptCZtVQYhXDr5SKbm3j0yPvRnJN3tw1m1fz71zkyC2J3Ulae4XxSRZbP18nx7DEM3N+lvTNFNiacU5lbmH2AB2w2hJ6mTH+qHAeur32hhgMK7zcndo+5C56RYSXKXLai9LLhk/0Vnq9NDZg1NLVGzKOjK02Oc/I= Message-ID: <728201270604170855t7a4257e7o28d70ea9f1a1c7ce@mail.gmail.com> Date: Mon, 17 Apr 2006 10:55:04 -0500 From: "Ram Gupta" To: "Jan Engelhardt" Subject: Re: select takes too much time Cc: "linux-os (Dick Johnson)" , "Michal Schmidt" , "linux mailing-list" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <728201270604130801l377d7285y531133ee9ee56e8c@mail.gmail.com> <443E9A17.4070805@stud.feec.vutbr.cz> <728201270604131251h5296dd41o7d0e0dd8f2f1ac63@mail.gmail.com> <443EC09C.2050409@stud.feec.vutbr.cz> <728201270604140754g7bf955d6y5e06bc5ce4f86c7b@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 4/14/06, Jan Engelhardt wrote: > >> So it seems that the only solution to return back right away after > >> timeout is to play around with the scheduler or put the process doing > >> select at the front of the queue so it get a chance to run first. > >> Is there any other better way to do it? > >> > > nice(-19); > > sched_setscheduler(0, SCHED_FIFO, > (struct sched_param){.sched_priority = 99}); > > That should probably beat anything, with the exception of IRQs. Thanks a lot. I will give it a try. regards Ram Gupta