12/23/2015cse 60641: operating systems1. resource containers: a new facility for resource management...

6
08/25/22 CSE 60641: Operating Systems 1

Upload: sara-ferguson

Post on 21-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 12/23/2015CSE 60641: Operating Systems1. Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel,

04/21/23 CSE 60641: Operating Systems 1

Page 2: 12/23/2015CSE 60641: Operating Systems1. Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel,

CSE 60641: Operating Systems

• Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel, and Jeffrey C. Mogul, OSDI'99– What is the problem being addressed?

Apr 21, 2023 CSE 60641: Operating Systems 2

Page 3: 12/23/2015CSE 60641: Operating Systems1. Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel,

OS as a resource manager…

• Operating systems manage resource consumption: keeps track of how much a particular application has used in order to decide on how much to allocate in the future– If a process is CPU intensive (measure CPU), then less

aggressively schedule process

• Problem: Resource management is conflated with process/thread– Many scenarios (servers: web, file, …), many

processes/threads perform same operation, many operations performed by same process/thread

04/21/23 CSE 60641: Operating Systems 3

Page 4: 12/23/2015CSE 60641: Operating Systems1. Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel,

Resource container…

• Make resource accounting explicit and separate from process/thread– Create a resource container, assign it to a operation.

Every time this operation consumed resources, the OS will charge it. The OS schedulers will use this resource consumption metric to provide appropriate service (QoS)

– Each process is endowed with a certain amount of “resources” which it can then split among many operations.

• Lottery scheduling is one such mechanism• LAR is another work from these authors will allows

network operations to be charged to a RC early

04/21/23 CSE 60641: Operating Systems 4

Page 5: 12/23/2015CSE 60641: Operating Systems1. Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel,

Issues

• What is a resource, how do you unify various resources (e.g. CPU, network, memory etc.)– Defining resources is a perennial problem. OS makes

decisions on whether one resource is more important than another

• In traditional OS, kernel resource consumption is (approximately) added to the process which it relates to. Why do we need to muck with it?– Soon so that disk/network requests can get better QoS– So that we can be fair.

• What if we take it all the way? What happens to operations that are shared by multiple RC?

04/21/23 CSE 60641: Operating Systems 5

Page 6: 12/23/2015CSE 60641: Operating Systems1. Resource Containers: A New Facility for Resource Management in Server Systems. Gaurav Banga, Peter Druschel,

Challenges

• What about other forms of distributed computing?– Grid computing?

• Can this be used to fight denial of service attacks?– What about interrupt overhead?

• Performance cost of too many RC

04/21/23 CSE 60641: Operating Systems 6