linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Wichert, Gerhard" <Gerhard.Wichert@pdb.siemens.de>
To: 'Matthew Wilcox' <Matthew.Wilcox@genedata.com>
Cc: "'linux-kernel@vger.rutgers.edu'" <linux-kernel@vger.rutgers.edu>,
	"'linux-mm@kvack.org'" <linux-mm@kvack.org>
Subject: AW: [bigmem-patch] 4GB with Linux on IA32
Date: Wed, 18 Aug 1999 10:43:07 +0200	[thread overview]
Message-ID: <A91A08D00A4FD2119BD500104B55BDF6021A6694@pdbh936a.pdb.siemens.de> (raw)


> > -----Ursprungliche Nachricht-----
> > Von: Matthew Wilcox [mailto:Matthew.Wilcox@genedata.com]
> > Gesendet am: Dienstag, 17. August 1999 16:32
> > An: Wichert, Gerhard
> > Cc: linux-kernel@vger.rutgers.edu; linux-mm@kvack.org
> > Betreff: Re: [bigmem-patch] 4GB with Linux on IA32
> > 
> > On Mon, Aug 16, 1999 at 06:29:30PM +0200, Andrea Arcangeli wrote:
> > > Performance degradation:
> > > 
> > > 	Close to zero.

So, here are some additional nubers based on this little worst case bench
from Andrea Arcangeli.

#define SIZE (700*1024*1024)

main()
{
	unsigned long start, stop;
	int i;
	char *buf = (char *)malloc(SIZE);

	if (!buf)
		perror("malloc");

	i = 0;

	__asm__ __volatile__ ("rdtsc" :"=a" (start)::"edx");
	for (; i < SIZE; i += 4096, buf += 4096)
		*(int *)buf = 0;

	__asm__ __volatile__ ("rdtsc" :"=a" (stop)::"edx");

	printf("ticks %ul\n", stop-start);
}

This bench shows the overhead for establishing the temporary kernel mapping
for the bigmem page.

Linux-2.3.13:
run 1
ticks 1313001994l
run 2
ticks 1310999320l
run 3
ticks 1309894069l
run 4
ticks 1313788902l
run 5
ticks 1308360521l

Linux-2.3.13 with bigmem support:
run 1
ticks 1331834802l
run 2
ticks 1332486766l
run 3
ticks 1332231641l
run 4
ticks 1332125591l
run 5
ticks 1333419476l

This shows that we get only approx. 2% overhead in the worst case. In
real-world applications you won't probably see any performance degradation.

Gerhard
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

             reply	other threads:[~1999-08-18  8:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-18  8:43 Wichert, Gerhard [this message]
1999-08-18  8:55 ` Rik van Riel
  -- strict thread matches above, loose matches on Subject: below --
1999-08-19 14:01 Wichert, Gerhard
1999-08-17 14:58 Wichert, Gerhard
1999-08-17  8:17 Wichert, Gerhard

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=A91A08D00A4FD2119BD500104B55BDF6021A6694@pdbh936a.pdb.siemens.de \
    --to=gerhard.wichert@pdb.siemens.de \
    --cc=Matthew.Wilcox@genedata.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox