Lazy Process Switching

نویسندگان

  • Jochen Liedtke
  • Horst Wenske
چکیده

Although IPC has become really fast it is still too slow on certain processors. Two examples motivating even faster IPC, critical sections in real-time applications and multi-threaded servers, are briefly discussed below. Critical sections in real-time applications suffer from the wellknown priority-inversion problem [7]. Multiple solutions have been proposed, e.g. priority inheritance (which is generally not sufficient), priority ceiling [7], and stack-based priority ceiling [2]. All methods need to modify a thread’s priority while the thread executes the critical section. In the stack-based priority-ceiling protocol, for example, a thread has to execute the critical section always with the maximum priority of all threads that might eventually execute the critical section, regardless of its original priority. A very natural solution for stack-based priority ceiling in a thread/IPC-based system is to have a dedicated thread per critical section. This thread’s priority is set to the (static) ceiling priority. Any “client” thread calls the critical section through RPC (two IPCs). Priorities are automatically updated through the undelying thread switch. The synchronous IPC mechanism also serializes threads automatically that compete for the critical section. Provided that simultaneously pending request IPCs are delivered in prioritized order, we have a simple and elegant implementation of stack-based priority ceiling. However, this method of implementing critical section requires very lightweight threads. In particular, IPC should be very fast. 180 cycles which is the current L4 time on a Pentium III is too expensive. Such costs are acceptable when real synchronization actions are necessary such as entering the invoker into a wait queue if the critical-section thread is blocked on a page fault. However, typically a critical-section thread can be called directly. 180 cycles are inacceptable in this case. Therefore, we need much faster IPC! For achieving highest performance, multi-threaded servers often need customized policies how to distribute incoming requests to worker threads. For instance, a server might want to handle up to 3 requests in parallel but queue further requests. The natural solution is one distributor thread which also implements a request queue and 3 worker threads that communicate through IPC with the distributor. Again, 180 cycles are inacceptable. Therefore, we need much faster IPC! In general, we see that the availability of fast IPC lets people think about fine-grain system componentization. Once they are on this path they ask for mechanisms that enable even more fine-grain componentization, in particular infinitely fast IPC. Therefore, we need much faster IPC!

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Lazy Queueing and Direct Process Switch — Merit or Myths?

The L4 microkernel, like many first and second generation microkernels, was designed to maximise best-effort performance. One component of its functionality critical to overall system performance is its interprocess communication primitive. L4 uses two techniques to minimise communication costs: direct process switching and lazy queue management. These techniques improve performance at the expe...

متن کامل

Performance comparison of hinted- and advertisement-based movement detection methods for mobile IP hand-offs

In this study Hinted Cell Switching is introduced as a new alternative to the Mobile IP advertisement based movement detection methods. It is a method that relies on “hints” generated during subnetwork layer hand-offs for reacting faster to Mobile IP hand-offs. In this study the performance of Hinted Cell Switching is compared through the use of simulations against those of advertisement based ...

متن کامل

Performance Analysis of Mobile Ip Handoffs

The aim of this paper is to study the performance of Mobile IP hand-offs. It is determined that the key issue is the movement detection method (i.e. Lazy Cell Switching, Prefix-Matching, Eager Cell Switching). For this paper all three movement detection methods are studied. The study involves single agent subnetworks and simple movement patterns, i.e. straight movement from one subnetwork to an...

متن کامل

Bayesian Optimal Control of Smoothly Parameterized Systems

We study Bayesian optimal control of a general class of smoothly parameterized Markov decision problems (MDPs). We propose a lazy version of the so-called posterior sampling method, a method that goes back to Thompson and Strens, more recently studied by Osband, Russo and van Roy. While Osband et al. derived a bound on the (Bayesian) regret of this method for undiscounted total cost episodic, f...

متن کامل

Performance Evaluation of Tcp over Mobile Ip

The aim of this paper is to study the effects of Triangle Routing and Mobile IP handoffs on TCP Performance. The majority of Internet hosts today do not comply with the considerations for routing optimisation. This means that until the wide deployment of next generation Internet hosts, triangle routing will be a permanent effect to Internet mobile communications. For Mobile IP handoffs it is de...

متن کامل

Movement detection delay analysis in mobile IP

This paper firstly analyzes two movement detection schemes—eager cell switching scheme and lazy cell switching scheme. Then, aiming at their drawbacks, two improved solutions—region adjustment algorithm and improved region adjustment algorithm are proposed. In our solutions, the region is dynamically adjusted by current information of the link bandwidth in order to reduce the unnecessary increa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2001