xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Memory Sharing
@ 2011-07-26  7:33 Lakshitha Harshan
  2011-07-26  9:51 ` Tim Deegan
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-07-26  7:33 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 577 bytes --]

Hi,

I'm doing a research project related to memory sharing. In my project I'm
trying to share the memory pages in kernel code segments. These kernels are
identical.
I have carried out some experiments to analyze these memory pages. Results
concluded that no modifications occurs on these memory pages at runtime.

But after sharing these pages using nominate and share functions, 5 memory
pages calls unshare() operation just after sharing the code pages.

So my question is, if no modifications occurs at runtime, how could be
possible to call "unshare()"?

Thanks,

Harshan

[-- Attachment #1.2: Type: text/html, Size: 731 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* memory sharing
@ 2016-04-18 16:19 sepanta s
  0 siblings, 0 replies; 21+ messages in thread
From: sepanta s @ 2016-04-18 16:19 UTC (permalink / raw)
  To: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 85 bytes --]

hi,
what is the difference between memory sharing in Xen and memory
de-duplication ?

[-- Attachment #1.2: Type: text/html, Size: 125 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2016-02-04 21:04 hanji unit
  2016-02-05  0:29 ` Tamas K Lengyel
  2016-02-05 10:40 ` David Vrabel
  0 siblings, 2 replies; 21+ messages in thread
From: hanji unit @ 2016-02-04 21:04 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

Hello, does Xen support sharing memory pages between multiple domains
(such as as Dom0, DomU1, DomU2)? The Grant Table hypercalls seem
limited to:

IOCTL_GNTALLOC_ALLOC_GREF
IOCTL_GNTALLOC_DEALLOC_GREF
IOCTL_GNTALLOC_SET_UNMAP_NOTIFY

Is there any mechanism to not allocate, but only share existing pages?

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-06-16 14:15 Lakshitha Harshan
  2011-06-19 23:34 ` Jui-Hao Chiang
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-06-16 14:15 UTC (permalink / raw)
  To: xen-devel

Hi,er

I am playing with memory sharing functions (nominate & share), for my
research project. In my project, i get the GFNs of starting & ending
pages of kernel code segment using xc_translate_foreign_address and
then using a loop i nominate the memory pages of kernel code segment &
share them.

Both nominate & share() functions returns 0, on most sharing requests
(almost 99%).
My problem is that after sharing the memory, all of the other domUs
except the domU which is used for getting the handles (shandles) for
sharing memory pages are frozen, if i start one VM after another and
try to share code pages after VMs have logged in. If i try to run the
same procedure on already started set of guest domains, the VMs will
be restarted (except the shandle domU).

So what could be the reason for this?
I'm using Xen -4.1.1-rc3-pre.

Thanks,
Harshan

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-06-14  5:04 Lakshitha Harshan
  2011-06-14  8:10 ` Tim Deegan
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-06-14  5:04 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 95 bytes --]

Hi,

Is there a way to find out the amount of memory shared in-between domUs?

Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-06-01  3:45 Lakshitha Harshan
  2011-06-01  9:46 ` Tim Deegan
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-06-01  3:45 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 390 bytes --]

Hi,

This is regarding memory page sharing.
I traced the code for page_sharing_nominate. But couldn't find the exact
location
which requires HAP. So if somebody could tell me the location it would be a
great help for me.
My other questions are,
I don't understand the role HAP plays in page sharing?
Why can't we use the shadow page tables with page sharing?

Please help.

Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 606 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-05-24  7:17 Lakshitha Harshan
  2011-05-24  9:19 ` Tim Deegan
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-05-24  7:17 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1462 bytes --]

Hi,

I'm using Xen 4.1.1-rc1-pre on linux-xen-2.6.32.39-g057b171. I'm trying to
use memory sharing functions. In my code i call,

uint64_t shandle, chandle;
 xc_memshr_nominate_gfn(xc_handle,dom1,4200,&shandle); //dom1 & dom2 are
Debian Squeeze domUs
 xc_memshr_nominate_gfn(xc_handle,dom2,4200,&shandle); // gfn 4200 is a
memory page in kernel code segment
xc_memshr_share(xc_handle, shandle, chandle);

I use xl dmesg and following is the output.

(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn
42f01: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn
42f01: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn
9c502: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn
42f02: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn
42f02: c=8000000000000002 t=8400000000000001
(XEN) printk: 2695593 messages suppressed.
(XEN) mm.c:907:d1 Error getting mfn 9c625 (pfn fffffffffffffffe) from L1
entry 000000009c625021 for l1e_owner=1, pg_owner=1
(XEN) printk: 2768333 messages suppressed.

After this operations the cpu usage of domUs goes to 97-100% and I can't
shutdown them. So when i issue "xl destroy""the system reboots.

What could be the reason? Any help greatly appreciated.

Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 1975 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-05-03  4:49 Lakshitha Harshan
  2011-05-03 12:05 ` Tim Deegan
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-05-03  4:49 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 236 bytes --]

Hi all,

I'm doing some tests on memory sharing feature. Current version i'm having
is not working (Xen -4.0.2-rc3 on Debian Dom0 (linux 2.6.32.27)).

So can anybody please send me the details of working configuration?

Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 344 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-04-26  9:52 Lakshitha Harshan
  0 siblings, 0 replies; 21+ messages in thread
From: Lakshitha Harshan @ 2011-04-26  9:52 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 627 bytes --]

Hi,

I'm trying to create a code which invokes xc_memshr_nominate_gfn() and
xc_memshr_share().

In my testing code I use,

uint64_t handle; int y;
y = xc_memshr_nominate_gfn(xc_handle,dom,1500,&handle);

It returns -1 even if I use another gfn number instead of 1500. So my
question is why does i returns -1 every time. My guest VMs are HVM (64-bit),
PAE & HAP enabled. I'm using Xen-4.0.2-rc3.

Is it  possible to use these memory sharing functions in this manner
 without any support from blktap2?

If someone could provide me some sample code on how to invoke this functions
it would be a great help to me.

Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 1069 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory Sharing
@ 2011-04-09  6:37 Lakshitha Harshan
  2011-04-09  8:36 ` Keir Fraser
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-04-09  6:37 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 622 bytes --]

Hi guys,

I'm receiving following errors when trying to create a VM.

Error: Failed to create device.
    stdout:
    stderr: MEMSHR support not compiled in.
Check that target "home/images/ubuntuX.img" exists and that blktap2 driver
installed in dom0.

In configuration file this is how i specify my disks.

 disk = ['tap2:tapdisk:aio:home/images/ubuntuX.img,hda,w',
'phy:/dev/sr0,hdc:cdrom,r' ]

But if I use
 tapdisk2  -n aio:/home/images/ubuntuX.img  command it executes and returns
"/dev/xen/blktap-2/tapdev0".

What I want is to test the memory sharing feature. So can anybody tell me
how to do that?
Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 897 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Memory sharing
@ 2011-04-03  8:28 Lakshitha Harshan
  2011-04-03  8:58 ` Keir Fraser
  0 siblings, 1 reply; 21+ messages in thread
From: Lakshitha Harshan @ 2011-04-03  8:28 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 290 bytes --]

Hi,

Currently i'm going through the source codes of tools/blktap2. I need to
find-out where blktap2 calls
1. mem_share_nominate()
2. mem_sharing_share_page() functions to do the memory sharing on HVM
guests.

Can someone please provide me some guidance on blktap2 driver.

Thanks,
Harshan

[-- Attachment #1.2: Type: text/html, Size: 1211 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-04-18 16:19 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26  7:33 Memory Sharing Lakshitha Harshan
2011-07-26  9:51 ` Tim Deegan
  -- strict thread matches above, loose matches on Subject: below --
2016-04-18 16:19 memory sharing sepanta s
2016-02-04 21:04 Memory Sharing hanji unit
2016-02-05  0:29 ` Tamas K Lengyel
2016-02-05 10:40 ` David Vrabel
2011-06-16 14:15 Lakshitha Harshan
2011-06-19 23:34 ` Jui-Hao Chiang
2011-06-14  5:04 Lakshitha Harshan
2011-06-14  8:10 ` Tim Deegan
2011-06-01  3:45 Lakshitha Harshan
2011-06-01  9:46 ` Tim Deegan
2011-05-24  7:17 Lakshitha Harshan
2011-05-24  9:19 ` Tim Deegan
2011-05-03  4:49 Lakshitha Harshan
2011-05-03 12:05 ` Tim Deegan
2011-04-26  9:52 Lakshitha Harshan
2011-04-09  6:37 Lakshitha Harshan
2011-04-09  8:36 ` Keir Fraser
2011-04-03  8:28 Memory sharing Lakshitha Harshan
2011-04-03  8:58 ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).