is paging_new_log_dirty_page alloc page harmfull?
Hi:
I've been testing on memory overcommit on Xen by using balloon driver.
On our stress test, it is possilbe that heap memory in xen is use up. Thus the serial port will show log as below:
(XEN) paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN) paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN) paging_log_dirty_range: 138 failed page allocs while logging dirty pages
I am asking is it harmfull to domain?
If so, I might need find a way to reserve some memory for xen, which looks kinds of difficult.
Thanks.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 11 lines · MaoXiaoyun
Hi:
I've been testing on memory overcommit on Xen by using balloon driver.
On our stress test, it is possilbe that heap memory in xen is use up. Thus the serial port will show log as below:(XEN)
paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN)paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN)paging_log_dirty_range: 138 failed page allocs while logging dirty pagesI am asking is it harmfull to domain?
It means that the log-dirty code wasn't able to extend its bitmap and callers have to assume that all pages are dirty. It's bad for performance but should be OK.
If you rebase to the latest 4.1 RC, this particular message should go away as log-dirty bitmaps are no longer pulled from common memory.
Quoted 2 lines
If so, I might need find a way to reserve some memory for xen, which looks kinds of difficult.
I think you might find you need to do this anyway - there are other dynamic allocations in Xen which might not fail so gracefully (in particular around setting up new domains).
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Thanks Tim.
Do you have suggestion on how many memory I should reserved, is 512M enough?
There is a balloon daemon process in dom0 do the memory management, the striaght way to reserve memory is after recycle memory form domains which no need memory , then give the memory to those domains who need memory. What do you think of this?
Quoted 26 lines
Date: Fri, 4 Mar 2011 11:16:59 +0000
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Xen-devel] ispaging_new_log_dirty_pagealloc page harmfull?Quoted 11 lines · MaoXiaoyun
Hi:
I've been testing on memory overcommit on Xen by using balloon driver. On our stress test, it is possilbe that heap memory in xen is use up. Thus the serial port will show log as below:
(XEN)
paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN)paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN)paging_log_dirty_range: 138 failed page allocs while logging dirty pagesI am asking is it harmfull to domain?
It means that the log-dirty code wasn't able to extend its bitmap and callers have to assume that all pages are dirty. It's bad for performance but should be OK.
If you rebase to the latest 4.1 RC, this particular message should go away as log-dirty bitmaps are no longer pulled from common memory.
Quoted 13 lines
Quoted 2 lines
If so, I might need find a way to reserve some memory for xen, which looks kinds of difficult.
I think you might find you need to do this anyway - there are other dynamic allocations in Xen which might not fail so gracefully (in particular around setting up new domains).
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · MaoXiaoyun
Thanks Tim.
Do you have suggestion on how many memory I should reserved, is 512M enough? There is a balloon daemon process in dom0 do the memory management, the striaght way to reserve memory is after recycle memory form domains which no need memory , then give the memory to those domains who need memory. What do you think of this?
Maybe the people who have been working on the toolstack can answer this one - 512MiB free sounds like more than enough to me but I could be wrong.
Tim.
Quoted 39 lines
Quoted 39 lines
Date: Fri, 4 Mar 2011 11:16:59 +0000
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Xen-devel] ispaging_new_log_dirty_pagealloc page harmfull?Quoted 11 lines · MaoXiaoyun
Hi:
I've been testing on memory overcommit on Xen by using balloon driver. On our stress test, it is possilbe that heap memory in xen is use up. Thus the serial port will show log as below:
(XEN)
paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN)paging_log_dirty_range: 138 failed page allocs while logging dirty pages (XEN)paging_log_dirty_range: 138 failed page allocs while logging dirty pagesI am asking is it harmfull to domain?
It means that the log-dirty code wasn't able to extend its bitmap and callers have to assume that all pages are dirty. It's bad for performance but should be OK.
If you rebase to the latest 4.1 RC, this particular message should go away as log-dirty bitmaps are no longer pulled from common memory.
Quoted 2 lines
If so, I might need find a way to reserve some memory for xen, which looks kinds of difficult.
I think you might find you need to do this anyway - there are other dynamic allocations in Xen which might not fail so gracefully (in particular around setting up new domains).
Tim.
--
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Quoted 9 lines · Tim Deegan
Quoted 7 lines · MaoXiaoyun
Thanks Tim.
Do you have suggestion on how many memory I should reserved, is 512M enough? There is a balloon daemon process in dom0 do the memory management, the striaght way to reserve memory is after recycle memory form domains which no need memory , then give the memory to those domains who need memory. What do you think of this?
Quoted 3 lines
Maybe the people who have been working on the toolstack can answer this one - 512MiB free sounds like more than enough to me but I could be wrong.
give a look at how freememslack is set in
tools/libxl/libxl.c:libxl__fill_dom0_memory_info:
free_mem_slack_kb = (uint32_t) (PAGE_TO_MEMKB(physinfo.total_pages) -
info.current_memkb);
/* From empirical measurements the free_mem_slack shouldn't be more
* than 15% of the total memory present on the system. */
if (free_mem_slack_kb > PAGE_TO_MEMKB(physinfo.total_pages) * 0.15)
free_mem_slack_kb = PAGE_TO_MEMKB(physinfo.total_pages) * 0.15;libxl__xs_write(gc, t, free_mem_slack_path, "%"PRIu32, free_mem_slack_kb);
the memory left free in the system is never more than 15% of the total memory available and is calculated as the difference between physinfo.total_pages (total pages in the system) and info.current_memkb (memory currently used by dom0 at boot).
Thank stefano.
It looks like free_mem_slack_kb refer to dom0, right?
But, in my situation, since I use a balloond to management the memory resources between all domains(except dom0, for performance consideration), it is possible all memory is given to domU, which will cause some unexpect problems.
So am ask is there a considerable memory amout need to be reserved for Xen itself. thanks.
Quoted 31 lines
Date: Mon, 7 Mar 2011 16:16:55 +0000
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] ispaging_new_log_dirty_pagealloc page harmfull?Quoted 9 lines · Tim Deegan
Quoted 7 lines · MaoXiaoyun
Thanks Tim.
Do you have suggestion on how many memory I should reserved, is 512M enough? There is a balloon daemon process in dom0 do the memory management, the striaght way to reserve memory is after recycle memory form domains which no need memory , then give the memory to those domains who need memory. What do you think of this?
Quoted 3 lines
Maybe the people who have been working on the toolstack can answer this one - 512MiB free sounds like more than enough to me but I could be wrong.
give a look at how freememslack is set in
tools/libxl/libxl.c:libxl__fill_dom0_memory_info:
free_mem_slack_kb= (uint32_t) (PAGE_TO_MEMKB(physinfo.total_pages)- info.current_memkb);
/* From empirical measurements thefree_mem_slackshouldn't be more
* than 15% of the total memory present on the system. */
if (free_mem_slack_kb>PAGE_TO_MEMKB(physinfo.total_pages)* 0.15)free_mem_slack_kb=PAGE_TO_MEMKB(physinfo.total_pages)* 0.15;libxl__xs_write(gc, t, free_mem_slack_path, "%"PRIu32, free_mem_slack_kb);
Quoted 4 lines
the memory left free in the system is never more than 15% of the total memory available and is calculated as the difference between physinfo.total_pages (total pages in the system) and info.current_memkb (memory currently used by dom0 at boot).
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 10 lines · MaoXiaoyun
Thank stefano.
It looks like free_mem_slack_kb refer to dom0, right?
But, in my situation, since I use a balloond to management the memory resources between alldomains(except dom0, for performance consideration), it is possible all memory is given to domU, which will cause some unexpect problems.
So am ask is there a considerable memory amout need to be reserved for Xen itself. thanks.
free_mem_slack_kb is the amount of memory to be left free in the system for Xen.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel