* [uml-devel] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) @ 2005-03-17 18:52 itamar 2005-03-17 19:00 ` [uml-devel] Re: [uml-user] " Chris Wedgwood 0 siblings, 1 reply; 8+ messages in thread From: itamar @ 2005-03-17 18:52 UTC (permalink / raw) To: user-mode-linux-devel; +Cc: user-mode-linux-user I am running a uml machine, and I am getting this errors. __alloc_pages: 0-order allocation failed (gfp=0xf0/0) __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) my host is a 2.6.11.4 kernel with skas-2.6.11-v8-rc5 my guest machine is a 2.4.27 kernel with uml-patch-2.4.27-1.bz2 Itamar Reis Peixoto +55 (34) 3238 3845 e-mail : itamar@ispbrasil.com.br http://vps.ispbrasil.com.br ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
* [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-17 18:52 [uml-devel] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) itamar @ 2005-03-17 19:00 ` Chris Wedgwood 2005-03-17 19:13 ` itamar 0 siblings, 1 reply; 8+ messages in thread From: Chris Wedgwood @ 2005-03-17 19:00 UTC (permalink / raw) To: itamar; +Cc: user-mode-linux-devel, user-mode-linux-user On Thu, Mar 17, 2005 at 03:52:53PM -0300, itamar wrote: > I am running a uml machine, and I am getting this errors. > > __alloc_pages: 0-order allocation failed (gfp=0xf0/0) > __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) > __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) > __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) > __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) add more memory ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-17 19:00 ` [uml-devel] Re: [uml-user] " Chris Wedgwood @ 2005-03-17 19:13 ` itamar 2005-03-17 19:25 ` Chris Wedgwood 2005-03-17 19:57 ` Paul Warren 0 siblings, 2 replies; 8+ messages in thread From: itamar @ 2005-03-17 19:13 UTC (permalink / raw) To: Chris Wedgwood; +Cc: user-mode-linux-devel, user-mode-linux-user In the host I have 512 mb of ram I am running the guest kernel with mem=256M Itamar Reis Peixoto +55 (34) 3238 3845 e-mail : itamar@ispbrasil.com.br http://vps.ispbrasil.com.br > >> I am running a uml machine, and I am getting this errors. >> >> __alloc_pages: 0-order allocation failed (gfp=0xf0/0) >> __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) >> __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) >> __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) >> __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) > > add more memory > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-17 19:13 ` itamar @ 2005-03-17 19:25 ` Chris Wedgwood 2005-03-17 19:49 ` Blaisorblade 2005-03-17 19:57 ` Paul Warren 1 sibling, 1 reply; 8+ messages in thread From: Chris Wedgwood @ 2005-03-17 19:25 UTC (permalink / raw) To: itamar; +Cc: user-mode-linux-devel, user-mode-linux-user On Thu, Mar 17, 2005 at 04:13:37PM -0300, itamar wrote: > I am running the guest kernel with mem=256M does it sound reasonable that 256MB of memory is in use? if so can you trim that down? if this seems too high we need to see if there is a leak somewhere ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-17 19:25 ` Chris Wedgwood @ 2005-03-17 19:49 ` Blaisorblade 2005-03-20 22:25 ` Paul Warren 0 siblings, 1 reply; 8+ messages in thread From: Blaisorblade @ 2005-03-17 19:49 UTC (permalink / raw) To: user-mode-linux-devel, Paul Warren Cc: Chris Wedgwood, itamar, user-mode-linux-user On Thursday 17 March 2005 20:25, Chris Wedgwood wrote: > On Thu, Mar 17, 2005 at 04:13:37PM -0300, itamar wrote: > > I am running the guest kernel with mem=256M > > does it sound reasonable that 256MB of memory is in use? if so can > you trim that down? > > if this seems too high we need to see if there is a leak somewhere Paul Warren said that there is a leak in 2.4 UML related to hostfs stuff.. and I already saw this message from some 2.4 recent UMLs. I hope Paul Warren can explain what he saw and help us... In case we have confirmation it's hostfs-related, we only need to go back to the stable 2.4.24-1um hostfs code (i.e. pre-humfs), as I already do in the 2.4-bs tree. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-17 19:49 ` Blaisorblade @ 2005-03-20 22:25 ` Paul Warren 2005-03-22 17:41 ` Blaisorblade 0 siblings, 1 reply; 8+ messages in thread From: Paul Warren @ 2005-03-20 22:25 UTC (permalink / raw) To: Blaisorblade; +Cc: user-mode-linux-devel, Chris Wedgwood, itamar [-- Attachment #1: Type: text/plain, Size: 1075 bytes --] [ trimmed cc to just -devel list] On Thu, Mar 17, 2005 at 08:49:38PM +0100, Blaisorblade wrote: > Paul Warren said that there is a leak in 2.4 UML related to hostfs stuff.. and > I already saw this message from some 2.4 recent UMLs. I hope Paul Warren can > explain what he saw and help us... > > In case we have confirmation it's hostfs-related, we only need to go back to > the stable 2.4.24-1um hostfs code (i.e. pre-humfs), as I already do in the > 2.4-bs tree. OK, our setup is that we have a load of distribution mirrors that are NFS mounted onto the host server. The guests then mount these using hostfs. We first noticed that a nightly updatedb was causing the amount of memory that could be malloced to decrease. We found that doing a "find" across the entire hostfs mount also did the trick. I've attached the script and program that we used to meause the maximum amount of memory that can be malloced. We then ran: while : ; do ./maxalloc ; updatedb ; done ... and watched the memory leak away. Please let me know if you want some more info. Paul [-- Attachment #2: maxalloc --] [-- Type: text/plain, Size: 284 bytes --] #!/bin/sh hi=64 lo=1 while [ $[ $hi - $lo ] -gt 1 ] ; do mid=$[ ($hi + $lo) / 2 ] echo -n "trying $mid MB..." if /tmp/alloc $[ $mid * 1024 * 1024 ] ; then lo=$mid echo "OK" else hi=$mid fi echo "$lo $hi $[ $hi - $lo ]" done echo $hi MB [-- Attachment #3: alloc.c --] [-- Type: text/plain, Size: 384 bytes --] #include <sys/types.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { size_t amt; char *a, *p; if (argv[1]) amt = (size_t)atoi(argv[1]); else amt = 1024 * 1024; if (!(a = malloc(amt))) { fprintf(stderr, "failed to malloc %u bytes\n", amt); return 1; } for (p = a; p < a + amt; ++p) *p = (char)p; return 0; } ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-20 22:25 ` Paul Warren @ 2005-03-22 17:41 ` Blaisorblade 0 siblings, 0 replies; 8+ messages in thread From: Blaisorblade @ 2005-03-22 17:41 UTC (permalink / raw) To: user-mode-linux-devel; +Cc: Paul Warren, Chris Wedgwood, itamar On Sunday 20 March 2005 23:25, Paul Warren wrote: > [ trimmed cc to just -devel list] > > On Thu, Mar 17, 2005 at 08:49:38PM +0100, Blaisorblade wrote: > > Paul Warren said that there is a leak in 2.4 UML related to hostfs > > stuff.. and I already saw this message from some 2.4 recent UMLs. I hope > > Paul Warren can explain what he saw and help us... > > > > In case we have confirmation it's hostfs-related, we only need to go back > > to the stable 2.4.24-1um hostfs code (i.e. pre-humfs), as I already do in > > the 2.4-bs tree. > > OK, our setup is that we have a load of distribution mirrors that are > NFS mounted onto the host server. The guests then mount these using > hostfs. We first noticed that a nightly updatedb was causing the amount > of memory that could be malloced to decrease. We found that doing a > "find" across the entire hostfs mount also did the trick. > > I've attached the script and program that we used to meause the maximum > amount of memory that can be malloced. We then ran: > > while : ; do ./maxalloc ; updatedb ; done > > ... and watched the memory leak away. > Please let me know if you want some more info. In priority order: 1) Try it on 2.6 and/or 2.4.27-bs (either bs1 or bs2-pre6, whichever you prefer and gives you less problems). 2) Try finding the item in /proc/meminfo (and if it's from Slab, inside /proc/slabinfo) which is increasing in the memory leak... > Paul -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] Re: [uml-user] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) 2005-03-17 19:13 ` itamar 2005-03-17 19:25 ` Chris Wedgwood @ 2005-03-17 19:57 ` Paul Warren 1 sibling, 0 replies; 8+ messages in thread From: Paul Warren @ 2005-03-17 19:57 UTC (permalink / raw) To: itamar; +Cc: Chris Wedgwood, user-mode-linux-devel, user-mode-linux-user On Thu, Mar 17, 2005 at 04:13:37PM -0300, itamar wrote: > In the host I have 512 mb of ram > > I am running the guest kernel with mem=256M > Do you make significant use of hostfs filesystems? Paul ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-03-22 17:42 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-03-17 18:52 [uml-devel] uml help __alloc_pages: 0-order allocation failed (gfp=0xf0/0) itamar 2005-03-17 19:00 ` [uml-devel] Re: [uml-user] " Chris Wedgwood 2005-03-17 19:13 ` itamar 2005-03-17 19:25 ` Chris Wedgwood 2005-03-17 19:49 ` Blaisorblade 2005-03-20 22:25 ` Paul Warren 2005-03-22 17:41 ` Blaisorblade 2005-03-17 19:57 ` Paul Warren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox