All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lamia Youseff <lyouseff@cs.ucsb.edu>
To: xen-devel@lists.xensource.com
Subject: limitation in the process address space size,
Date: Wed, 12 Sep 2007 01:34:23 -0700	[thread overview]
Message-ID: <46E7A48F.5020006@cs.ucsb.edu> (raw)

Hi ,
I am performing some experimentation with Xen paravirtualization impact 
on computational workloads, when i observed a strange behavior of the 
domains (dom0 with 256MB, but i did not verify it for domU yet).

As I request more pages to my process address space (through regular 
malloc calls), Xen places a limitation on the process address space size 
in real memory. Above this threshold, the process would swap like crazy, 
and hurt the computational performance of my code.  To be more specific, 
my program pseudo code is shown below. My dom0 is allocated 256 MB at 
initialization.  I then run my code and measure its performance in 
MFLOPS, as well as the swap activity as the process requests more memory.
I observed that when the process resident set size (pages in real 
memory) reaches about 78.39 MB (or 20,070  pages), the process starts 
swapping memory pages. I did not see the same performance degradation 
when i allocate 756MB for dom0. This was not definitely the same 
behavior I get from the native kernel on the same machine (I get no 
performance degradation).
I will appreciate if some one can shed some light on this kernel 
behavior for me. Please ask me if i don't give enough details of the 
problem here.
Thank you,
Lamia Youseff


while (){
    malloc more X bytes;
    fill new bytes  with random numbers;
    do some floating point operations, and measure performance;
    measure swapped pages and RSS (resident set size);
}

             reply	other threads:[~2007-09-12  8:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-12  8:34 Lamia Youseff [this message]
2007-09-12  8:37 ` limitation in the process address space size, Keir Fraser
2007-09-12  8:57   ` Lamia Youseff
2007-09-12  8:59     ` Keir Fraser

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=46E7A48F.5020006@cs.ucsb.edu \
    --to=lyouseff@cs.ucsb.edu \
    --cc=xen-devel@lists.xensource.com \
    /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.