{
    "content": [
        {
            "type": "text",
            "text": "# sraw(8) (man)\n\n**Summary:** sraw - benchmark raw scsi I/O performance under linux\n\n**Synopsis:** sraw [ -fiv6 ] scsi-device [ bstart [ bstep ] ]\n\n## See Also\n\n- sgdd(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (18 lines)\n- **OPTIONS** (16 lines)\n- **ERRORS** (3 lines)\n- **AUTHOR** (3 lines)\n- **SEE ALSO** (2 lines)\n- **AVAILABILITY** (1 lines) — 1 subsections\n  - ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/ (1 lines)\n\n## Full Content\n\n### NAME\n\nsraw - benchmark raw scsi I/O performance under linux\n\n### SYNOPSIS\n\nsraw [ -fiv6 ] scsi-device [ bstart [ bstep ] ]\n\n### DESCRIPTION\n\nThis  program  basically  reads  the specified scsi device and measures the throughput.  Note\nthat the filesystem *AND* the buffer cache are bypassed by this code, this  program  was  de‐\nsigned  to benchmark the naked scsi drivers by themselves without the need to account for the\noverhead of any other portion of the kernel. It also could be used  to  benchmark  disk  read\nthroughput.\n\nThis  program  does a series of reads of the disk, of consecutive areas on the disk.  The de‐\nvice is first queried to determine the sector size for the device, and  then  the  series  of\nreads  is  begun.  About 5.0 Mb is read from the device, and then the performance numbers are\nreported.  Note that since the buffer cache is completely bypassed, there is no  need  to  be\nconcerned about cache hits or anything.\n\nOutput  of  sraw  is a set of lines, 4 numbers per line: blocksize, elapsed time, nblocks and\nthroughput (in bytes per second).\n\nscsi-device is either a block device (e.g. /dev/sda, /dev/scd0)  or  a  generic  SCSI  device\n(e.g. /dev/sg0).\n\n### OPTIONS\n\n-f     set  FUA  (Force Unit Access) bit during read. Data is then read from media instead of\ninternal drive cache.\n\n-i     use legacy ioctl instead of new SG I/O layer (will not work on 2.6  kernel  and  block\ndevices).\n\n-v     more verbose output.\n\n-6     use  6-bytes instead of 10-bytes read command. In this case, only the first GB of data\ncould be read from media.\n\nbstart starting block to check different zones on ZBR discs\n\nbstep  factor for sequential stepping, default 1.  Use 0 for reading always the  same  blocks\n(from cache)\n\n### ERRORS\n\nsraw  could  issue  input/output  errors when reading too many blocks at the same time from a\nblock device like /dev/sda. To get rid of them, use /dev/sgN instead.\n\n### AUTHOR\n\nsraw was first written by Eric Youngdale.  Extensions (-v, -f, -6,  SG  IO,  man  page)  were\nwritten by Eric Delaunay.\n\n### SEE ALSO\n\nsgdd(8) from sg3-utils package.\n\n### AVAILABILITY\n\nsraw is available at\n\n#### ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/\n\nNov 1993                                       SRAW(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "sraw",
        "section": "8",
        "mode": "man",
        "summary": "sraw - benchmark raw scsi I/O performance under linux",
        "synopsis": "sraw [ -fiv6 ] scsi-device [ bstart [ bstep ] ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "sgdd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/sgdd/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "ERRORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 1,
                "subsections": [
                    {
                        "name": "ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/",
                        "lines": 1
                    }
                ]
            }
        ]
    }
}