From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261686AbULaGIx (ORCPT ); Fri, 31 Dec 2004 01:08:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261694AbULaGIx (ORCPT ); Fri, 31 Dec 2004 01:08:53 -0500 Received: from web60609.mail.yahoo.com ([216.109.119.83]:39332 "HELO web60609.mail.yahoo.com") by vger.kernel.org with SMTP id S261686AbULaGIq (ORCPT ); Fri, 31 Dec 2004 01:08:46 -0500 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Lmf26PcC0CnqKSOoLH13nJEKx8Tslsi/yGQyq8WQZDQ3EVqzrQOs7i4kUOOuZTuI+yynxVLSciOwuns95QwmctLKJsuoablhMDpc0SpYp8GiF33mOxgM0rSLfuBI52ywCjT2nOE66W48rxCPgDLsaUEUC8+wnkoeUb0I7kBfrSk= ; Message-ID: <20041231060845.72677.qmail@web60609.mail.yahoo.com> Date: Thu, 30 Dec 2004 22:08:45 -0800 (PST) From: selvakumar nagendran Subject: Resource unavailabilty on a syscall To: bert hubert Cc: linux-kernel@vger.kernel.org In-Reply-To: <20041230221356.GB15202@outpost.ds9a.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Thanks for ur help, For a syscall to complete successfully, a process should acquire the particular resource like filelock,semaphore key etc. Now, I want to determine whether a process blocked only due to the unavailability of a semaphore key or a file lock etc. I accept a process may block on a syscall for many reasons. But I want to determine it for resource starvation alone. How can I do that? Do u have any suggestions regarding this? Regards, selva --- bert hubert wrote: > On Wed, Dec 29, 2004 at 08:52:36PM -0800, selvakumar > nagendran wrote: > > > A process can be blocked while executing a > syscall > > in the light of some resources needed. Now, I want > to > > find out whether a process has been blocked while > > executing a particular syscall or it has finished > it > > successfully? If it was blocked I want to perform > some > > operation on it. Can anyone help me regarding > this? > > This question is fraught with difficulty. For one > thing, many many system > calls will block for a short time, which you would > probably not describe as > 'blocked', even though this was true for a few > milliseconds. > > You did not entirely specify why you want to do > this, there may be better > solutions to your problem. > > bert > > -- > http://www.PowerDNS.com Open source, database > driven DNS Software > http://lartc.org Linux Advanced Routing & > Traffic Control HOWTO > __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com