public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: David Chinner <dgc@sgi.com>
Cc: xfs-oss <xfs@oss.sgi.com>
Subject: Re: qa 166 failure on f8 kernel
Date: Tue, 07 Aug 2007 23:11:05 -0500	[thread overview]
Message-ID: <46B94259.6060309@sandeen.net> (raw)
In-Reply-To: <20070808040804.GJ52011508@sgi.com>

David Chinner wrote:

> On Tue, Aug 07, 2007 at 09:58:50PM -0500, Eric Sandeen wrote:
>   
>> yeah, figured it had something to do w/ the ia64 weenies when I saw the
>> 32 vs. 8, factor of 4 ... fine, fine, my bad.  :)
>>     
>
> No, not your bad. Mine if anyones because I wrote the test.
>
> Cheers,
>
> Dave.
>   
Well, I was going to look at it more closely before I sent it off :)

What do you think of a patch like this, to munmap 16k chunks regardless
of page size:


--- src/unwritten_mmap.c.orig	2007-08-07 22:53:08.962031839 -0500
+++ src/unwritten_mmap.c	2007-08-07 23:02:05.939112618 -0500
@@ -12,6 +12,7 @@
  */
 int main(int argc, char **argv) {
 	unsigned long long o;
+	int minsize;
 	int fd, i;
 	struct xfs_flock64 space;
 	unsigned char *buf;
@@ -23,6 +24,13 @@
 
 	errno = 0;
 	o = strtoull(argv[1], NULL, 0);
+
+	minsize = 3*16384; /* 3 ia64 pages */
+	if (o < minsize) {
+		fprintf(stderr, "count must be at least %d\n", minsize);
+		exit(1);
+	}
+
 	if (errno) {
 		perror("strtoull");
 		exit(errno);
@@ -55,9 +63,9 @@
 			perror("mmap()");
 			exit(5);
 		} else {
+			memset(buf, 0, 16384);
+			memset(buf+o/2, 0, 16384);
+			memset(buf+o-16384, 0, 16384);
 			munmap(buf, o);
 		}

-Eric
 

  reply	other threads:[~2007-08-08  4:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08  1:39 qa 166 failure on f8 kernel Eric Sandeen
2007-08-08  2:56 ` David Chinner
2007-08-08  2:58   ` Eric Sandeen
2007-08-08  4:08     ` David Chinner
2007-08-08  4:11       ` Eric Sandeen [this message]
2007-08-08  4:16         ` Eric Sandeen
2007-08-08  4:19         ` David Chinner
2007-08-08  4:28           ` Eric Sandeen
2007-08-08  4:57             ` Barry Naujok
2007-08-08  5:00               ` Eric Sandeen
2007-08-08 13:13       ` Christoph Hellwig
2007-08-08 13:17         ` David Chinner
2007-08-08  4:13   ` Alex Elder
     [not found]     ` <D59801BCA402F5418C040937230AF7E00B9A8E@mtv-amer002e--3.americas.sgi.c om>
2007-08-08  5:47       ` nscott
2007-08-08  4:19 ` Barry Naujok
2007-08-08  4:18   ` Eric Sandeen

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=46B94259.6060309@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=dgc@sgi.com \
    --cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox