Skip to contentSkip to conversation

Making hotremovable attribute with memory section[0/4]

Lhms-devel Yasunori Goto 4 participants 6 messages Aug 16, 2004 – Aug 17, 2004 Memory management

lore
Share & tools
lore
#0 lore raw

Hello.

I made new patches for Memory hotplug.
Dave Hansen-san recommeded me I should forward these to LKML or linux-mm.
So, I'll forword these.

Please comment.

Thanks.

Forwarded by Yasunori Goto <[email protected]> ----------------------- Original Message -----------------------

 From:    Yasunori Goto <[email protected]>
 To:      [email protected]
 Date:    Mon, 16 Aug 2004 14:35:29 -0700

Subject: [Lhms-devel] Making hotremovable attribute with memory section[0/4]
----

Hello.

Previous hot-removable attribute in my patches was only for node. I made new patches to create hot-removable attribute for memory section.

This patches are for patch-2.6.8-rc4-mm1-mhp3.
(This is in http://sprucegoose.sr71.net/patches/)

Please comment.

Thanks.

Signature · 26 lines
Yasunori Goto <ygoto at us.fujitsu.com>




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Lhms-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lhms-devel

--------------------- Original Message Ends --------------------

-- 
Yasunori Goto <ygoto at us.fujitsu.com>


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw
Quoted 4 lines · Yasunori Goto

I made new patches for Memory hotplug.
Dave Hansen-san recommeded me I should forward these to LKML or linux-mm.
So, I'll forword these.

I think I suggested that you forward _one_ ;)

In any case, the question of the day is, does anyone have any suggestions on how to create 2 separate pools for pages: one representing hot-removable pages, and the other pages that may not be removed?

Yasunori's patch takes the approach of creating a new free_area struct inside each zone. Another approach might be to actually create new 'struct zones' for the new areas. The new zones one seems cleaner to me, but the implementation might end up rippling in to a lot of different areas of code.

-- Dave

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw
Quoted 4 lines · Dave Hansen

In any case, the question of the day is, does anyone have any suggestions on how to create 2 separate pools for pages: one representing hot-removable pages, and the other pages that may not be removed?

How do you define the split. There are lots of circumstances where user pages can be pinned for a long (near indefinite) period of time and used for DMA.

Consider
- Video capture
- AGP Gart
- AGP based framebuffer (intel i8/9xx)
- O_DIRECT I/O

There are also things like cluster interconnects, sendfile and the like involved here.

Alan

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#3 lore raw

Hello.

Quoted 9 lines · Dave Hansen
Quoted 4 lines

In any case, the question of the day is, does anyone have any suggestions on how to create 2 separate pools for pages: one representing hot-removable pages, and the other pages that may not be removed?

How do you define the split. There are lots of circumstances where user pages can be pinned for a long (near indefinite) period of time and used for DMA.

Basically, kernel have to wait of completion of I/O.

Quoted 4 lines

Consider
- Video capture
- AGP Gart
- AGP based framebuffer (intel i8/9xx)

I didn't consider deeply about this, because usually enterprise server doesn't need Video capture feature or AGP. It is usually controlled from other machine.

If it is really necessary, kernel might have to wait I/O completion or driver modification is necessary.

Quoted 1 line

- O_DIRECT I/O

I can use page remmaping method by Iwamoto-san. (See: http://people.valinux.co.jp/~iwamoto/mh.html#remap)
I guess that many case can be saved by this.

Quoted 2 lines

There are also things like cluster interconnects, sendfile and the like involved here.

In sendfile case, kernel will wait too. Sooner or later, it will be timeout.

Thank you for your comment.
Bye.

Signature · 8 lines
Yasunori Goto <ygoto at us.fujitsu.com>


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#5 lore raw
In reply to Alan Cox
Quoted 7 lines · Alan Cox
Quoted 4 lines · Dave Hansen

In any case, the question of the day is, does anyone have any suggestions on how to create 2 separate pools for pages: one representing hot-removable pages, and the other pages that may not be removed?

How do you define the split.

We would hope not to have to define the split explicitly. Since we're hotplugging memory and resizing zones anyway, it shouldn't be a real functional problem to balance memory between the 2 states, no matter how it is implemented.

Quoted 3 lines

There are lots of circumstances where user
pages can be pinned for a long (near indefinite) period of time and used for DMA.

For simple cases, anything tricky like DMA will simply be in an unremovable area. However, some platforms like ppc64 logical partitions, require firmware notification of DMA areas. The ppc64 firmware provides consistent remapping functionality for these DMA areas if they ever need to be hot-swapped.

Quoted 8 lines

Consider
- Video capture
- AGP Gart
- AGP based framebuffer (intel i8/9xx)
- O_DIRECT I/O

There are also things like cluster interconnects, sendfile and the like involved here.

When we get to trying to forcefully migrate the kinds of memory that you reference above, we'll likely need firmware support like ppc64 has. The other option is to have some driver callbacks to tell them to reallocate their buffers into new areas, if that's even possible. But, even that's not something I see ever happening to the entire tree, more likely a small subset of the drivers that really need it.

-- Dave

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#4 lore raw
In reply to Yasunori Goto
Quoted 7 lines · Yasunori Goto
Quoted 4 lines

Consider
- Video capture
- AGP Gart
- AGP based framebuffer (intel i8/9xx)

I didn't consider deeply about this, because usually enterprise server doesn't need Video capture feature or AGP.

AMD64's IOMMU is implemented using the AGP GART. This feature is certainly used in server environments.

Dave

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>