All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chulmin Kim <cmkim@core.kaist.ac.kr>
To: xen-devel@lists.xen.org
Subject: Re: maximum memory size allocated by _xmalloc
Date: Mon, 13 Aug 2012 17:08:35 +0900	[thread overview]
Message-ID: <5028B603.9010306@core.kaist.ac.kr> (raw)
In-Reply-To: <008601cd5f45$6eff7530$4cfe5f90$@core.kaist.ac.kr>

Though the issue has been written one month ago,
I post my own experience on it.

Unfortunately, it was not the matter of the requested mem size or 
xmalloc function.
The problem was due to the free memory scrubbing.

I set my xmalloc code in the middle of the bootup code of xen after the 
free memory scrubbing function.
But the placement was wrong.

After i relocated the code line before the scrubbing function,
it worked perfectly.

Thanks for your help!


2012-07-11 오후 6:13, Chulmin Kim 쓴 글:
> Hi all,
>
> I'm currently inserting my own code to adjust the several existing memory
> ballooning works.
>
> To accomplish it, I manage some kind of statistics in Xen memory area.
>
> Using _xmalloc, I've allocated certain size of memory chunk for the data
> structure. ( I varied it from 10kb to 24 MB.)
>
> When the size is equal to 24 MB, xen won't boot anymore.  (stuck during the
> xmalloc, according to my debugging. _xmalloc returns NULL.)
> There was no problem when the size is below 12MB.
>
> Is there any limitation such as max memory size for _xmalloc?
>
> I suspected xen heap size, but, it is no longer adjustable. Right?
>
> I hope somebody can give me a clue.  Thanks.
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel


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

  parent reply	other threads:[~2012-08-13  8:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11  9:13 maximum memory size allocated by _xmalloc Chulmin Kim
2012-07-11  9:48 ` Andrew Cooper
2012-07-12  0:01   ` Chulmin Kim
2012-07-12  9:07     ` Andrew Cooper
2012-07-12  9:24       ` FW: " Chulmin Kim
2012-08-13  8:08 ` Chulmin Kim [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-12  9:28 Chulmin Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5028B603.9010306@core.kaist.ac.kr \
    --to=cmkim@core.kaist.ac.kr \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.