Subject: Re: signal(SIGSEGV, SIG_IGN) -> 100% CPU
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Gandhi woulda smacked you <greywolf@starwolf.com>
List: tech-kern
Date: 06/14/1999 13:03:35
On Mon, 14 Jun 1999, der Mouse wrote:

# Yeah.  Which would mean that pipe(3) would take three syscalls instead
# of the one it presently takes.  Whether this would matter, of course,
# is another issue.
# 

I think it would matter since 3 system calls = at least 6 context switches.

At least with a single call you're probably only going to csw twice.

This gets expen$ive on multiple-stage pipes.

(...or is this just me living in the dark ages again?)


# pipe() returned a bidirectional pipe.  Portable code couldn't rely on
# it, obviously, but portable code is unlikely to do anything that cares
# whether the pipe is bidirectional or not.
# 
# 					der Mouse
# 
# 			       mouse@rodents.montreal.qc.ca
# 		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
# 


				--*greywolf;
--
	     A _Real_ Operating System for _Real_ Hackers.

	     ____ __   _  ____ __ __ ___  ___   ___
	     ___ /  | / /__  _/ /_  /   |/ __\ / _ |
	     __ /   |/ // _\/_  _/ / ' / \_ \ / /  /
	     _ / /|   // __/ / /_ / , | __/ // / ,/
	      /_/ |__/_\__/__\__//___/__\__//___'

	     With many thanks to the core team and UCB CSRG.