Reading/Writing to ports.

Reading/Writing to ports.

Post by Josh Piepe » Fri, 25 Apr 1997 04:00:00

I have just recently changed from running MS-DOS on my computer to Linux
and have been trying to port a parallel port program I originally wrote
in Borland C++.  However I can't seem to find which include
files/libraries I need to use out/outb and in/inb.  I tried an assembler
routine, but I'm not very proficient, and I kept getting "Segmentation
Fault Core Dumped".  Thanks in advance for any help.

-Josh Pieper


1. Reading/writing /usr/ports is VERY slow

Sysinstall reports a throughput of <10 KB/s when installing
the FreeBSD 2.2.7 ports collection from my 2x SCSI CD-ROM.
This is at least 10x slower than the throughput reported for
most other distributions.  Also, my streaming tape starts and
stops a lot when backing up /usr/ports.  When reading/writing
/usr/ports my disk drive sounds like a coffee grinder
(constantly seeking).  Do other folks notice the same things?
I don't think there's anything wrong with my system in
particular, but I would like confirmation.

My system is an all-SCSI P90 with 32 MB and an Adaptec 2940.
/usr is on a Seagate Barracuda.

I suspect that this is an inherent performance problem with
FFS and large sparsely-populated directory trees.  FFS
places each newly created directory in a different cylinder
group than its parent.  If the directories have very little
in them (true for /usr/ports) this results in more time
spent seeking than reading/writing, which seems to be
what I am seeing.
Carl Mascott


2. Networking Linux and Win98

3. How to read/write com ports on PC?

4. Cscope-like beasts

5. read/write serial port

6. How can I use X with 640x480 resolution instead of 800x600?

7. How do you read/write serial port registers directly?

8. Riva TNT AGP ???

9. read/write serial port

10. Help needed -- Reading/writing serial ports

11. read/write serial ports in c

12. howto READ/WRITE serial ports?