Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "T. Daniel Crawford" <crawdad@vt.edu>
To: <axp-list@redhat.com>
Subject: Re: Interesting SCSI Performance Problems
Date: Sat, 17 Mar 2001 09:25:32 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.30.0103170920470.26971-100000@orion.chem.vt.edu> (raw)
In-Reply-To: <m3wv9o8q5a.fsf@home.com>

On Sat, 17 Mar 2001, Alan P. Kennedy, Sr wrote:

> >>>>> "T" == T Daniel Crawford <crawdad@vt.edu> writes:
>
>  T> I find this bothersome, to be frank. I can understand the need for
>  T> safety in the driver, but the performance I observed was pitiful.
>  T> Since many of us purchase alpha's for fast, fast, fast
>  T> calculations, this kind of problem strikes me as a serious
>  T> problem.
>
> This has been a most interesting thread. I would concur with the above
> statement. Could you please post your patch for qlogic driver. I would
> like to give it a try here.
>
> Thanks
>

The change to the driver is so trivial it can't even be classified as
interesting.:)

In /usr/src/linux/drivers/scsi/qlogicisp.c, change:

#define USE_NVRAM_DEFAULTS      0

to:

#define USE_NVRAM_DEFAULTS      1

Also, here is a write-only I/O test program that does nothing but write PI
in an 8k buffer to a file to fill up a 2.4 GB file.  There is an
fdatasunc() call at the end so that the timings will not include buffering.

----------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <math.h>

int main(int argc, char *argv[])
{
  int i;
  int fd;
  double *junk;

  fd = open("BIGFILE", O_WRONLY|O_CREAT, 0644);

  junk = (double *) malloc(1024*sizeof(double));
  for(i=0; i < 1024; i++) junk[i] = acos(-1.0);

  /* This should write out 2.4 GB of data to BIGFILE */
  for(i=0; i < 300000; i++)
      write(fd, (char *) junk, 1024*sizeof(double));

  fdatasync(fd);
  close(fd);

  exit(0);
}
----------------------------------------------------------------------

-- 
T. Daniel Crawford                           Department of Chemistry
crawdad@vt.edu                                    Virginia Tech
www.chem.vt.edu/chem-dept/crawford    Voice: 540-231-7760  FAX: 540-231-3255




  reply	other threads:[~2001-03-17 14:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-16 22:36 Interesting SCSI Performance Problems KirkE
2001-03-16 22:57 ` Interesting SCSI Performance Problems - discussions where ? Andrei A. Dergatchev
2001-03-17  6:17 ` Interesting SCSI Performance Problems T. Daniel Crawford
2001-03-17 13:46   ` Alan P. Kennedy, Sr
2001-03-17 14:25     ` T. Daniel Crawford [this message]
2001-03-18  2:21     ` /usr/sbin/mke2fs: error in loading shared libraries J. Hart
2001-03-18  5:10       ` Alexey Chupakhin
2001-03-18 11:09         ` J. Hart
2001-03-18 17:12       ` Michal Jaegermann
2001-03-17 15:24   ` Interesting SCSI Performance Problems Jay Estabrook
2001-03-17 15:55     ` T. Daniel Crawford
  -- strict thread matches above, loose matches on Subject: below --
2001-03-18 18:36 KirkE
2001-03-16 21:42 T. Daniel Crawford
read-only archive

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