Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [RFA/testsuite] Some feedback about bigcore.exp...
@ 2004-03-19  0:09 Michael Elizabeth Chastain
  2004-03-13  2:08 ` Michael Elizabeth Chastain
  2004-03-19  0:09 ` Joel Brobecker
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Elizabeth Chastain @ 2004-03-19  0:09 UTC (permalink / raw)
  To: brobecker, gdb-patches

My thoughts ...

It's really more of a per-site thing, which to me means an environment
variable.  I know the dejagnu way would be to set a variable in site.exp
but I really prefer to work with environment variables.

The default is to run the test in order to flush out more bugs on more
architectures but perhaps we could have an easy way to suppress this
test and then document that way.  It's tough to run a regression test
suite when one of the 300 test scripts bangs so many operating systems
so hard.

The core file should not fill up the disk as long as the operating
system and the file system dump core files as sparse files.
(Cheat sheet: think of a file as an array of blocks.  For a "sparse
file", the file system does not store blocks which are all 0's.
All the system calls like read(2) and write(2) work normally but there
are less blocks needed on the disk than the size of the file.)

I'm running red hat linux 8 with kernel 2.4.8-14 on an ext3 file system
and my core files are sparse.  What kernel/file-system do you have
where the core files actually take up that much space?

I wish there were a portable way to compress sparse files quickly and
easily.  I'm using "tar cSf ..." to manage these files followed by bzip2
but that is gnu-specific.

Michael C


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [RFA/testsuite] Some feedback about bigcore.exp...
@ 2004-03-19  0:09 Joel Brobecker
  2004-03-12 22:21 ` Joel Brobecker
  2004-03-19  0:09 ` Andrew Cagney
  0 siblings, 2 replies; 10+ messages in thread
From: Joel Brobecker @ 2004-03-19  0:09 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

Hello,

Just FYI, in case others may feel the same way?

We have now run this test pretty much on most of our Unix native
platforms, and have found that the bigcore.exp testcase is usually quite
stressful for the host where the testing is being conducted. For
instance, on sparc-solaris, the system ran out of virtual memory and
swap space, and started killing processes at random. It also requires a
very large amount of disk space to be available for the core file (2GB
on x86-linux). So I was told by other fellow machine users to please
stop running this test on our build machines.

One thing I would recommend is to delete the core file once the test is
finished. I had a testsuite run that got ruined because the core file
filled up all my disk, and left no space available for the rest of the
run...

2004-03-12  J. Brobecker  <brobecker@gnat.com>

        * gdb.base/bigcore.exp: Delete core file after test has completed.

Sounds reasonable?

-- 
Joel

[-- Attachment #2: bigcore.exp --]
[-- Type: text/plain, Size: 506 bytes --]

Index: bigcore.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/bigcore.exp,v
retrieving revision 1.4
diff -u -r1.4 bigcore.exp
--- bigcore.exp	27 Feb 2004 16:48:03 -0000	1.4
+++ bigcore.exp	12 Mar 2004 22:17:59 -0000
@@ -190,3 +190,7 @@
 
 check_heap next $next_heap
 check_heap prev $prev_heap
+
+# The generated core file uses a large amount of disk-space, so we
+# delete it now that we're done.
+remote_exec build "rm -f $corefile"

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-03-15 16:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19  0:09 [RFA/testsuite] Some feedback about bigcore.exp Michael Elizabeth Chastain
2004-03-13  2:08 ` Michael Elizabeth Chastain
2004-03-19  0:09 ` Joel Brobecker
2004-03-13  4:42   ` Joel Brobecker
2004-03-19  0:09   ` Daniel Jacobowitz
2004-03-13 16:58     ` Daniel Jacobowitz
2004-03-19  0:09 Joel Brobecker
2004-03-12 22:21 ` Joel Brobecker
2004-03-19  0:09 ` Andrew Cagney
2004-03-15 16:26   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox