eliminating 166G limit (was Re: Problem with nr_nodes on large memory NUMA machine)
Quoted 9 lines
Quoted 4 lines
We saw this issue on our boxes too.
http://lists.xensource.com/archives/html/xen-devel/2007-08/msg00479.html
I am trying to figure out how to write the copy-to-low-memory path. Keir, could you give me some suggestions?In
gnttab_transfer(), if the foreign domain (e) is 32-on-64 and the page being stolen from the local domain (d) is above 166GB then allocate anothr domheap page for e, copy the stolen page contents to it. Then free the stolen page and the new page takes its place.
I think page allocation in this path isn't nice, at least not without success guarantee (not the least because because netback doesn't check return values). I would therefore rather see a solution in placing the burden of ensuring accessibility on the producer (netback) of the page, and fail the transfer if the destination domain can't access the page (whether to be nice and try an allocate-and-copy operation here is a secondary thing).
Netback would then need to determine the address size of netfront's domain (just like blkback and blktap do, except that HVM domains should also be treated as not requiring address restriction), and have two pools of pages for use in transfers - one unrestricted and one limited to 37 address bits (the two could be folded for resource efficiency if the machine has less than 128G). Besides that, netback would also start checking return values of the multicall pieces.
Jan
Quoted 7 lines · Jan Beulich
I think page allocation in this path isn't nice, at least not without success guarantee (not the least because because netback doesn't check return values). I would therefore rather see a solution in placing the burden of ensuring accessibility on the producer (netback) of the page, and fail the transfer if the destination domain can't access the page (whether to be nice and try an allocate-and-copy operation here is a secondary thing).
Quoted 8 lines
Netback would then need to determine the address size of netfront's domain (just like blkback and blktap do, except that HVM domains should also be treated as not requiring address restriction), and have two pools of pages for use in transfers - one unrestricted and one limited to 37 address bits (the
two could be folded for resource efficiency if the machine has less than 128G). Besides that, netback would also start checking return values of the multicall pieces.
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
-- Keir
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 27.11.07 09:56 >>>
Quoted 7 lines · Jan Beulich
I think page allocation in this path isn't nice, at least not without success guarantee (not the least because because netback doesn't check return values). I would therefore rather see a solution in placing the burden of ensuring accessibility on the producer (netback) of the page, and fail the transfer if the destination domain can't access the page (whether to be nice and try an allocate-and-copy operation here is a secondary thing).
Quoted 8 lines
Netback would then need to determine the address size of netfront's domain (just like blkback and blktap do, except that HVM domains should also be treated as not requiring address restriction), and have two pools of pages for use in transfers - one unrestricted and one limited to 37 address bits (the
two could be folded for resource efficiency if the machine has less than 128G). Besides that, netback would also start checking return values of the multicall pieces.
Quoted 4 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.
Oh, right, I mixed up old_mfn and new_mfn in netbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i already knows the destination domain.
Quoted 2 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user of the interface is better than introducing extra (possibly hard to reproduce/ recognize/debug) possibilities of failure.
Jan
Quoted 8 lines · Jan Beulich
Quoted 4 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i already knows the destination domain.
You may not know constraints on that domain's max_mfn though. We could add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside of Xen and the guest itself.
Quoted 10 lines
Quoted 2 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user of the interface is better than introducing extra (possibly hard to reproduce/ recognize/debug) possibilities of failure.
The interface is obsolete.
-- Keir
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 5 lines · Jan Beulich
Quoted 4 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.
Quoted 7 lines
Quoted 3 lines
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i already knows the destination domain.You may not know constraints on that domain's
max_mfnthough. We could add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside of Xen and the guest itself.
What constraints other than the guest's address size influence its max_mfn? Of course, if there's anything beyond the address size, then having a way to obtain the constraint explicitly would be desirable. But otherwise (and as fallback) using 37 bits (128G) seems quite reasonable.
Quoted 11 lines
Quoted 10 lines
Quoted 2 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user of the interface is better than introducing extra (possibly hard to reproduce/ recognize/debug) possibilities of failure.
Quoted 1 line
The interface is obsolete.
Then it should be clearly indicated as such, e.g. by a mechanism similar to deprecated_irq_flag() in Linux 2.6.22. And as a result, its use in netback should then probably be conditional upon an extra config option, which could at once be used to provide a note to Xen that the feature isn't being used so that the function could return -ENOSYS and the clipping could be avoided/reverted.
Jan
Has there been any more thought on this subject? The discussion seems to have stalled, and we're hoping to find a way past this 166G limit...
Quoted 63 lines · Jan Beulich
Quoted 13 lines
Quoted 3 lines
Quoted 3 lines
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 6 lines · Jan Beulich
Quoted 6 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.
Quoted 10 lines
Quoted 5 lines
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i already knows the destination domain.You may not know constraints on that domain's
max_mfnthough. We could add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside of Xen and the guest itself.What constraints other than the guest's address size influence its
max_mfn? Of course, if there's anything beyond the address size, then having a way to obtain the constraint explicitly would be desirable. But otherwise (and as fallback) using 37 bits (128G) seems quite reasonable.Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
Quoted 9 lines
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user of the interface is better than introducing extra (possibly hard to reproduce/ recognize/debug) possibilities of failure.
Quoted 3 lines
The interface is obsolete.
Then it should be clearly indicated as such, e.g. by a mechanism similar to
deprecated_irq_flag()in Linux 2.6.22. And as a result, its use in netback should then probably be conditional upon an extra config option, which could at once be used to provide a note to Xen that the feature isn't being used so that the function could return-ENOSYSand the clipping could be avoided/reverted.Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
Elizabeth Kon (Beth) IBM Linux Technology Center Open Hypervisor Team email: [email protected]
I'll get something in for 3.2.0.
-- Keir
Quoted 75 lines · beth kon
Has there been any more thought on this subject? The discussion seems to have stalled, and we're hoping to find a way past this 166G limit...
Quoted 69 lines · Jan Beulich
Quoted 20 lines
Quoted 3 lines
Quoted 3 lines
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 7 lines · Jan Beulich
Quoted 7 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it
did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.Quoted 6 lines
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i
already knows the destination domain.Quoted 5 lines
You may not know constraints on that domain's
max_mfnthough. We could add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside of Xen and the guest itself.What constraints other than the guest's address size influence its
max_mfn? Of course, if there's anything beyond the address size, then having a way to obtain the constraint explicitly would be desirable. But otherwise (and as fallback) using 37 bits (128G) seems quite reasonable.Quoted 15 lines
Quoted 4 lines
Quoted 4 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
Quoted 11 lines
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user
of the interface is better than introducing extra (possibly hard to reproduce/
recognize/debug) possibilities of failure.Quoted 3 lines
The interface is obsolete.
Then it should be clearly indicated as such, e.g. by a mechanism similar to
deprecated_irq_flag()in Linux 2.6.22. And as a result, its use in netback should
then probably be conditional upon an extra config option, which could at once be used to provide a note to Xen that the feature isn't being used so that the
function could return-ENOSYSand the clipping could be avoided/reverted.Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: eliminating 166G limit (was Re: Problem with nr_nodeson large memory NUMA machine)
In reply to beth konBeth,
I am working on it.
I spoke to Keir about it at the Xen summit.
I hope to have a patch that will fix the issue and have the high-to-low memory copy working soon.
Thanks
Raj
Quoted 99 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of beth kon
Sent: Monday, December 03, 2007 2:50 PM
Cc: [email protected]
Subject: Re: eliminating 166G limit (was Re: [Xen-devel] Problem withnr_nodesonlarge memory NUMA machine)Has there been any more thought on this subject? The discussion seems to have stalled, and we're hoping to find a way past this 166G limit...
Quoted 13 lines · Jan Beulich
Quoted 13 lines
Quoted 3 lines
Quoted 3 lines
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 6 lines · Jan Beulich
Quoted 6 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i already knows the destination domain.You may not know constraints on that domain's
max_mfnthough. We could
Quoted 2 lines
Quoted 2 lines
add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside of Xen and the
guest itself.
Quoted 4 lines
Quoted 2 lines
What constraints other than the guest's address size
influence its
max_mfn?Quoted 12 lines
Of course, if there's anything beyond the address size, then having a way to obtain the constraint explicitly would be desirable. But otherwise (and as
fallback) using 37 bits (128G) seems quite reasonable.Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
I'm not just concerned about netback here. The interface
exists, and
Quoted 13 lines
Quoted 9 lines
Quoted 9 lines
other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user of the interface is better than introducing extra (possibly hard to reproduce/ recognize/debug) possibilities of failure.
Quoted 3 lines
The interface is obsolete.
Quoted 6 lines
Then it should be clearly indicated as such, e.g. by a mechanism similar to
deprecated_irq_flag()in Linux 2.6.22. And as a result, its use in netback should then probably be conditional upon an extra config option, which could at once be used to provide a note to Xen that the feature isn't being used so that the function could return
-ENOSYSand the clipping could be avoided/reverted.Quoted 10 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel--
Elizabeth Kon (Beth)
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Try xen-unstable changeset 16548.
-- Keir
Quoted 75 lines · beth kon
Has there been any more thought on this subject? The discussion seems to have stalled, and we're hoping to find a way past this 166G limit...
Quoted 69 lines · Jan Beulich
Quoted 20 lines
Quoted 3 lines
Quoted 3 lines
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 7 lines · Jan Beulich
Quoted 7 lines
I don't get how your netback approach works. The pages we transfer do not originate from netback, so it has little control over them. And, even if it
did, when we allocate pages for network receive we do not know which domain's packet will end up in each buffer.Quoted 6 lines
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i
already knows the destination domain.Quoted 5 lines
You may not know constraints on that domain's
max_mfnthough. We could add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside of Xen and the guest itself.What constraints other than the guest's address size influence its
max_mfn? Of course, if there's anything beyond the address size, then having a way to obtain the constraint explicitly would be desirable. But otherwise (and as fallback) using 37 bits (128G) seems quite reasonable.Quoted 15 lines
Quoted 4 lines
Quoted 4 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
Quoted 11 lines
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent future users of the transfer mechanism, or set proper requirements on its use. I think that placing extra requirements on the user
of the interface is better than introducing extra (possibly hard to reproduce/
recognize/debug) possibilities of failure.Quoted 3 lines
The interface is obsolete.
Then it should be clearly indicated as such, e.g. by a mechanism similar to
deprecated_irq_flag()in Linux 2.6.22. And as a result, its use in netback should
then probably be conditional upon an extra config option, which could at once be used to provide a note to Xen that the feature isn't being used so that the
function could return-ENOSYSand the clipping could be avoided/reverted.Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: eliminating 166G limit (was Re: Problem withnr_nodes on large memory NUMA machine)
I tested this changeset on Unisys ES7000 with 256G ram and 64 processors and it works:
xentop - 06:30:59 Xen 3.2-unstable
1 domains: 1 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 268172340k total, 7669456k used, 260502884k free CPUs: 64 @
3400MHz
I will be running our full test suite on this configuration today.
Thanks,
Sue Krysan
Linux Systems Group
Unisys Corporation
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Thursday, December 06, 2007 8:40 AM
To: [email protected]
Cc: [email protected]
Subject: Re: eliminating 166G limit (was Re: [Xen-devel] Problem withnr_nodes on large memory NUMA machine)
Try xen-unstable changeset 16548.
-- Keir
Quoted 1 line · beth kon
Has there been any more thought on this subject? The discussion seems
to
Quoted 12 lines
have stalled, and we're hoping to find a way past this 166G limit...
Quoted 8 lines · Jan Beulich
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 1 line · Jan Beulich
Quoted 1 line
I don't get how your netback approach works. The pages we transfer
do not
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
originate from netback, so it has little control over them. And,
even if
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
it
did, when we allocate pages for network receive we do not know
which
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
domain's packet will end up in each buffer.
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag().
Nevertheless
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
netback could take care of this by doing the copying there, as at
that
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
point i
already knows the destination domain.You may not know constraints on that domain's
max_mfnthough. We
could add
Quoted 1 line
Quoted 1 line
Quoted 1 line
an interface to Xen to interrogate that, but generally it's not
something we
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
probably want to expose outside of Xen and the guest itself.
What constraints other than the guest's address size influence its
max_mfn?
Quoted 1 line
Quoted 1 line
Of course, if there's anything beyond the address size, then having a
way to
Quoted 1 line
Quoted 1 line
obtain the constraint explicitly would be desirable. But otherwise
(and as
Quoted 5 lines
Quoted 5 lines
fallback) using 37 bits (128G) seems quite reasonable.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Personally I think doing it in Xen is perfectly good enough for
supporting
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
this very out-of-date network receive mechanism.
I'm not just concerned about netback here. The interface exists,
and other
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
users might show up and/or exist already. Whether it would be
acceptable
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
for them to do allocation and copying is unknown. You'd therefore
either
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
need a way to prevent future users of the transfer mechanism, or
set proper
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
requirements on its use. I think that placing extra requirements on
the
Quoted 11 lines
Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
user
of the interface is better than introducing extra (possibly hard to reproduce/
recognize/debug) possibilities of failure.The interface is obsolete.
Then it should be clearly indicated as such, e.g. by a mechanism
similar to
Quoted 1 line
Quoted 1 line
deprecated_irq_flag()in Linux 2.6.22. And as a result, its use in
netback
Quoted 2 lines
Quoted 2 lines
should
then probably be conditional upon an extra config option, which could
at once
Quoted 1 line
Quoted 1 line
be used to provide a note to Xen that the feature isn't being used so
that
Quoted 2 lines
Quoted 2 lines
the
function could return-ENOSYSand the clipping could be
avoided/reverted.
Quoted 11 lines
Quoted 10 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: eliminating 166G limit (was Re: Problem withnr_nodes on large memory NUMA machine)
Quoted 26 lines · Susan
I tested this changeset on Unisys ES7000 with 256G ram and 64 processors and it works:
xentop - 06:30:59 Xen 3.2-unstable
1 domains: 1 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 268172340k total, 7669456k used, 260502884k free CPUs: 64 @
3400MHzI will be running our full test suite on this configuration today.
Thanks,
Sue Krysan
Linux Systems Group
Unisys Corporation-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Thursday, December 06, 2007 8:40 AM
To: [email protected]
Cc: [email protected]
Subject: Re: eliminating 166G limit (was Re: [Xen-devel] Problemwithnr_nodeson large memory NUMA machine)
Quoted 1 line
Try xen-unstable changeset 16548.
Susan,
how about TOM? i mean MMIO size...
my system with 256g/32cores, and 0xe0000000 - 0x100000000 is mmio mtrr
reg00: base=0x00000000 ( 0MB), size=2048MB: write-back, count=1
reg01: base=0x80000000 (2048MB), size=1024MB: write-back, count=1
reg02: base=0xc0000000 (3072MB), size= 512MB: write-back, count=1
TOM: 00000000e0000000 aka 3584M
TOM2: 0000004020000000 aka 262656M
only can work with mem=200g
mem=224g, xen kernel will say alloc_bootmem_low can not get range..
xen kernel is from
http://people.redhat.com/dzickus/el5/92.el5/x86_64/
YH
RE: Re: eliminating 166G limit (was Re: Problem withnr_nodes on large memory NUMA machine)
In reply to Keir FraserKeir,
We were able to bring up a 250G machine with this changeset. Raj
Quoted 108 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Thursday, December 06, 2007 8:40 AM
To: [email protected]
Cc: [email protected]
Subject: Re: eliminating 166G limit (was Re: [Xen-devel] Problemwithnr_nodeson large memory NUMA machine)Try xen-unstable changeset 16548.
-- Keir
Quoted 1 line · beth kon
Has there been any more thought on this subject? The
discussion seems
Quoted 1 line
to have stalled, and we're hoping to find a way past this
166G limit...
Quoted 11 lines
Quoted 8 lines · Jan Beulich
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Keir Fraser <[email protected]> 27.11.07 10:21 >>>
Quoted 1 line · Jan Beulich
Quoted 1 line
I don't get how your netback approach works. The pages
we transfer
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
do not originate from netback, so it has little control
over them.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
And, even if it did, when we allocate pages for network
receive we
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 3 lines
do not know which domain's packet will end up in each buffer.
Oh, right, I mixed up
old_mfnandnew_mfninnetbk_gop_frag(). Nevertheless netback could take care of this by doing the copying there, as at that point i already knows the destination domain.You may not know constraints on that domain's
max_mfnthough. We could add an interface to Xen to interrogate that, but generally it's not something we probably want to expose outside ofXen and the guest itself.
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
What constraints other than the guest's address size
influence its
max_mfn?Quoted 1 line
Quoted 1 line
Of course, if there's anything beyond the address size,
then having a
Quoted 6 lines
Quoted 6 lines
way to obtain the constraint explicitly would be desirable. But otherwise (and as
fallback) using 37 bits (128G) seems quite reasonable.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Personally I think doing it in Xen is perfectly good enough for supporting this very out-of-date network receive mechanism.
I'm not just concerned about netback here. The interface exists, and other users might show up and/or exist already. Whether it would be acceptable for them to do allocation and copying is unknown. You'd therefore either need a way to prevent
future users
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
of the transfer mechanism, or set proper requirements on
its use. I
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
think that placing extra requirements on the user of the
interface
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
is better than introducing extra (possibly hard to reproduce/ recognize/debug) possibilities of failure.
The interface is obsolete.
Quoted 5 lines
Quoted 5 lines
Then it should be clearly indicated as such, e.g. by a mechanism similar to
deprecated_irq_flag()in Linux 2.6.22. And as a result, its use in netback should then probably be conditional upon an extra config option, which could at once be used to provide a note toXen that the
Quoted 6 lines
Quoted 6 lines
feature isn't being used so that the function could return
-ENOSYSand the clipping could be avoided/reverted.Jan
Quoted 7 lines
Quoted 6 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel