🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #820

I/O calls on the transputer.

#820
From: Vandana Rungta
Date: Thu, 26 Jul 1990 20:52
57 lines
1785 bytes
	This I/O benchmark iocall.c was executed on different systems:

1) Sun 4/110
2) Sun 3/160
3) INMOS's T800 TRAM in a B411 module on INMOS's B014 transputer board using
   their parallel C compiler.

******************************************************************************

iocall.c

	Author:   Jan Stubbs, NCR, ..!sdcsvax!ncr-sd!stubbs

This benchmark tests speed of Unix system call interface and speed of cpu doing
common Unix io system calls.

Under normal circumstances, this benchmark will not actually cause any physical disk activity, but will just cause system buffer activity.


The source code for this benchmark:


#include <stdio.h>

char buf[512];
int fd, count, i, j;

main()
{
	fd = creat("/tmp/testfile",0777);
	close(fd);
	fd = open("/tmp/testfile",2);
	unlink("/tmp/testfile");
	for (i=0;i<=1000;i++) {
		lseek(fd,0,0);
		count = write(fd,buf,500);
		lseek(fd,0,0);
		for (j=0;j<=3;j++)
			count = read(fd,buf,100);
	}
	exit(0);
}

******************************************************************************
		
The results I got in terms of time taken on each system are:

1) Sun 4/110            0.067 sec
2) Sun 3/160            0.133 sec
3) T800 on B014        31.604 sec


Does anyone have any ideas as how to improve the performance on transputers?


Vandana Rungta         vandana@multi.ee.usu.edu
Technical Details
Message-ID: <9007262052.AA01490@multi.ee.usu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!MULTI.EE.USU.EDU!vandana

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!MULTI.EE.USU.EDU!vandana
From: vandana@MULTI.EE.USU.EDU (Vandana Rungta)
Newsgroups: comp.sys.transputer
Subject: I/O calls on the transputer.
Message-ID: <9007262052.AA01490@multi.ee.usu.edu>
Date: 26 Jul 90 20:52:06 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 57