Unix Technical Forum

Re: UVM - why no user process submaps? [OpenBSD/TECH]

This is a discussion on Re: UVM - why no user process submaps? [OpenBSD/TECH] within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Reason why I am asking is that this would be a nice way for userland processes to create a ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:44 AM
Jason Kim
 
Posts: n/a
Default Re: UVM - why no user process submaps? [OpenBSD/TECH]

Reason why I am asking is that this would be a nice way for userland
processes to create a region of memory - (a subspace, if you would ;-)
that can be shared across processes. Instead of creating discrete pages
to be shared (ala SYSV SHM), why not allow userland processes to create
(and thus share) discrete sub-regions - which can independently have
pages allocated/freed within that subspace?

This would be most useful for creating a "growable" (and thus
shrinkable) region of CONTIGUOUS virtual memory that can be shared
across processes - (much like what currently happens in the kernel ?)
In contrast SYSV SHM doesn't support contiguous regions across shmget()
calls, save the "accidental" shmat() of two or more shmid'd regions next
to each other in the client process's address space.

Is there an alternate way to add in this functionality besides using
submaps?

Thanks,

-Jason Kim.


Michael Shalayeff wrote:
> Making, drinking tea and reading an opus magnum from Jason W. Kim:
> [Charset ISO-8859-1 unsupported, filtering to ASCII...]
>
>>Hi, all
>>
>>I'm looking through the uvm code in 3.6, and ran across a puzzling
>>comment -
>>
>>near uvm_map.c:2108
>>/*
>> * uvm_map_submap: punch down part of a map into a submap
>> *
>> * => only the kernel_map is allowed to be submapped
>> * => the purpose of submapping is to break up the locking granularity
>> * of a larger map
>>
>>My question is, why is the creation of submaps limited to only the
>>kernel? (Neither the tech archives nor cranor's thesis answers this
>>question so ...)
>>
>>Secondly, what would it take to get the submap functionality working for
>>userland? Are there any specific "gotcha"'s that I need to be aware of
>>for getting the submap stuff working in userland?

>
>
> the question is: why?
>
> cu


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com