AminetAminet
Search:
85043 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/NOP-Handler.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Handler for instant reads and writes
Author:Patrik Axelsson
Uploader:patrik bo gmail com
Type:util/misc
Version:1.0
Architecture:m68k-amigaos; ppc-amigaos; ppc-morphos; i386-aros; ppc-warpup
Date:2025-11-22
URL:https://github.com/patrikaxelsson/NOP-Handler
Download:util/misc/NOP-Handler.lha - View contents
Readme:util/misc/NOP-Handler.readme
Downloads:7

This handler serves reads and writes instantly, without touching the data.
Additionally, the size can be specified. This is useful for performance
testing, as it can be used to remove the overhead of the underlaying I/O
solution.


Installation:

- Copy the correct NOP-Handler file for your system to L:NOP-Handler.
- Copy the NOP DOSDriver definition to SYS:Storage/DOSDrivers/ for
  manual mount or DEVS:DOSDrivers/ if you want it to automount.


Usage:

Specify no name to get an unlimited stream, or a number of Bytes followed by
an optional multiplier to get a stream limited to that size. The following
multipliers are supported:
K = 2^10 = 1024
M = 2^20 = 1048576
G = 2^30 = 1073741824
T = 2^40 = 1099511627776


Examples:

Copy from various sizes to drive:
> copy NOP:1 Work:testfile-1
> copy NOP:123 Work:testfile-123
> copy NOP:1K Work:testfile-1K
> copy NOP:1M Work:testfile-1M
> copy NOP:1G Work:testfile-1G
> list NOHEAD NODATES Work:testfile#?
testfile-123                    123 ----rwed
testfile-1                        1 ----rwed
testfile-1K                    1024 ----rwed
testfile-1G              1073741824 ----rwed
testfile-1M                 1048576 ----rwed

Attempt to fill RAM: by copying from unlimited size: 
> copy NOP: RAM:testfile
Error in writing - disk is full
Destination file "RAM:testfile" removed.


Comparing difference between I/O plus computation and just computation, on
same computer, running different OSs:

A4000 CSPPC 68060@50MHz, 604e@200MHz, CSPPC SCSI, AmigaOS 3.9 + WarpOS 16.1:
> UHC:C/time asum Work:test100M.bin
2f282b84e7e608d5852449ed940bfc51  Work:test100M.bin
9.077366s
> UHC:C/time asum NOP:100M
2354e80cdd59e14be436e528284206fe  NOP:100M
5.517848s

A4000 CSPPC 68060@50MHz, 604e@200MHz, CSPPC SCSI, MorphOS 1.4:
> UHC:C/time asum Work:test100M.bin
2f282b84e7e608d5852449ed940bfc51  Work:test100M.bin
9.358638s
> UHC:C/time asum NOP:100M
9b0dc2b68a2a9938a09bf19d588b2960  NOP:100M
4.998199s

A4000 CSPPC 68060@50MHz, 604e@200MHz, CSPPC SCSI, AmigaOS 4.1 FE Update 3:
> UHC:C/time asum Work:test100M.bin
2f282b84e7e608d5852449ed940bfc51  Work:test100M.bin
10.452084s
> UHC:C/time asum NOP:100M
5b6369aeb2cffd6a641e2f9af2bd894e  NOP:100M
4.983489s



Contents of util/misc/NOP-Handler.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                    270     628  43.0% -lh5- 4e9d Nov 22 15:39 NOP-Handler.info
[Amiga]                    273     628  43.5% -lh5- 83c0 Nov 22 15:30 NOP-Handler/Devs.info
[Amiga]                    270     628  43.0% -lh5- 63d2 Nov 22 15:30 NOP-Handler/Devs/DOSDrivers.info
[Amiga]                     94     103  91.3% -lh5- 6268 Nov 22 13:59 NOP-Handler/Devs/DOSDrivers/NOP
[Amiga]                    261     479  54.5% -lh5- 0076 Nov 22 15:30 NOP-Handler/Devs/DOSDrivers/NOP.info
[Amiga]                    271     628  43.2% -lh5- df5b Nov 22 15:30 NOP-Handler/L.info
[Amiga]                   1189    1588  74.9% -lh5- 0372 Nov 22 13:56 NOP-Handler/L/NOP-Handler
[Amiga]                   1226    2332  52.6% -lh5- 8fb0 Nov 22 13:56 NOP-Handler/L/NOP-Handler.aros-i386
[Amiga]                   1370    2592  52.9% -lh5- 7f31 Nov 22 13:56 NOP-Handler/L/NOP-Handler.mos
[Amiga]                   1412    2756  51.2% -lh5- 743f Nov 22 13:56 NOP-Handler/L/NOP-Handler.os4
[Amiga]                   2673    4400  60.8% -lh5- 88b0 Nov 22 13:56 NOP-Handler/L/NOP-Handler_debug
[Amiga]                   2531    5232  48.4% -lh5- 95c4 Nov 22 13:56 NOP-Handler/L/NOP-Handler_debug.aros-i386
[Amiga]                   3312    7924  41.8% -lh5- b8dc Nov 22 13:56 NOP-Handler/L/NOP-Handler_debug.mos
[Amiga]                   4253    9216  46.1% -lh5- 6606 Nov 22 13:56 NOP-Handler/L/NOP-Handler_debug.os4
[Amiga]                   1128    2498  45.2% -lh5- 9de2 Nov 22 15:37 NOP-Handler/NOP-Handler.readme
[Amiga]                    217     464  46.8% -lh5- 8eb2 Nov 22 15:29 NOP-Handler/NOP-Handler.readme.info
[Amiga]                    785    3761  20.9% -lh5- 0b81 Nov 22 13:57 NOP-Handler/source/Debug.c
[Amiga]                    131     180  72.8% -lh5- f024 Nov 22 13:57 NOP-Handler/source/Debug.h
[Amiga]                    363    1647  22.0% -lh5- e66d Nov 22 13:57 NOP-Handler/source/Makefile
[Amiga]                   2266    7989  28.4% -lh5- 127d Nov 22 13:57 NOP-Handler/source/NOP-Handler.c
[Amiga]                    379     703  53.9% -lh5- bbd4 Nov 22 13:57 NOP-Handler/source/OS4Compatibility.h
[Amiga]                    122     183  66.7% -lh5- f710 Nov 22 13:57 NOP-Handler/source/Startup.c
[Amiga]                    153     233  65.7% -lh5- 6809 Nov 22 13:57 NOP-Handler/source/StartupAROS.c
[Amiga]                    147     231  63.6% -lh5- d15a Nov 22 13:57 NOP-Handler/source/StartupMOS.c
[Amiga]                    208     352  59.1% -lh5- 2650 Nov 22 13:57 NOP-Handler/source/StartupOS4.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        25 files   25304   57375  44.1%            Nov 22 23:36
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>