Activity for hdparm

  • Mark Lord Mark Lord posted a comment on ticket #28

    I actually ran into this myself last fall, when I got a new notebook computer and then tested various NVMe drives for use with it. There are existing Linux utilities to do various configurations of multi-threaded I/O benchmarks, and they do it reasonably well. Eg. KDiskMark on KDE/Plasma, or the Gnome disk utility. The subject of benchmarking drives is sufficiently complex, I don't think it belongs in a low-level utility like hdparm, which is used on everything from small micro-controllers, RaspberryPi's,...

  • Ralf Naujokat Ralf Naujokat posted a comment on ticket #28

    Your points about real life and caching are of course valid, but to me it looks as if a single thread cannot achieve the full possible utilization, and therefore the test actually returns too low values. At least lower than the advertising promises. ;-) But it's up to you.

  • Mark Lord Mark Lord modified a comment on ticket #28

    I dunno. I'm kinda torn by this request. How would an extreme multi-threaded read test measure anything relevant to Real Life? The existing -t flag is for measuring sequential read speed, giving an indication of the throughput that real apps might expect to achieve. Eg. KVM or virtualbox saving a multi-GB VM state. Doing simultaneous over-lapping runs of the exact same data blocks from the drive isn't going to be relevant, and might just end up with most threads reading from the on-drive cache, rather...

  • Mark Lord Mark Lord posted a comment on ticket #28

    I dunno. I'm kinda torn by this request. How would an extreme multi-threaded read test measure anything relevant to Real Life? The existing -t flag is for measuring sequential read speed, giving an indication of the throughput that real apps might expect to achieve. Doing simultaneous over-lapping runs of the exact same data blocks from the drive isn't going to be relevant, and might just end up with most threads reading from the on-drive cache, rather than the flash memory.

  • Ralf Naujokat Ralf Naujokat created ticket #28

    Add a multi thread option for -t

  • Mark Lord Mark Lord posted a comment on ticket #14

    Unfortunately, SATA Port Multipliers are surprisingly difficult. They never really got the "love" they deserved from chip makers and manufacturers, and the result is that getting FIS based switching (FBS) to work, end-to-end, is a rare thing. The chipset inside the port-multiplier itself (aka. "the dock"), and its firmware, both have to support FBS without any chip-specific quirks (aka. "secret bug fixes"). Then the host controller (the "card") also has to have FBS and NCQ support, and its firmware...

  • hdparmuser hdparmuser posted a comment on ticket #14

    Both cards I'm testing with state they utilise FIS. Startech PEXESATA2 - Silicon Image - SiI3132 and Startech PEXESAT322I - ASMedia - ASM1061 According to Startech's documentation, both support FIS

  • Mark Lord Mark Lord modified ticket #14

    Unable to run multiple hdparm secure erase actions in parallel against multiple drives using port multiplier

  • Mark Lord Mark Lord posted a comment on ticket #14

    Not all SATA Port-Multiplier chips are capable of running multiple commands simultaneously. That is likely the issue you see here -- hardware, not software. Command-Based-Switching (CBS) is the most common type, and those can only control a single drive at any point in time. FIS-Based-Switching (FBS) are the better kind of port-multipler, and those can treat each drive completely independently, with multiple commands in-flight to multiple drives simultaneously. Cheers

  • hdparmuser hdparmuser created ticket #14

    Unable to run multiple hdparm secure erase actions in parallel against multiple drives using port multiplier

  • Clarence Risher Clarence Risher created ticket #57

    Replace ultrabayd unsafe echo of BEL character with printf

  • Mark Lord Mark Lord modified ticket #93

    set-sector-size and -Istdout woes with TOSHIBA MG09ACA18TE

  • Mark Lord Mark Lord posted a comment on ticket #93

    The datasheet clearly shows that only the models with an "S" as the 5th character support changing the sector size. Yours has an "A". Drive doesn't support it.

  • Fabian V. Thobe Fabian V. Thobe created ticket #27

    Migration to a more collaboration friendly codebase

  • Jaakko Hintsala Jaakko Hintsala posted a comment on ticket #93

    This issue happens also on TOSHIBA MG10ACA20TA.

  • Jaakko Hintsala Jaakko Hintsala posted a comment on ticket #93

    Thank you so much! This worked for me too on TOSHIBA MG10ACA20TA

  • Mark Lord Mark Lord modified ticket #13

    HDparm creating sdX:sdX1 spurious logs in kernel log

  • Mark Lord Mark Lord posted a comment on ticket #13

    Rejected. This is a distro bug, not an hdparm bug. Fix your distro's scripts.

  • Anthony Desmarais Anthony Desmarais created ticket #13

    HDparm creating sdX:sdX1 spurious logs in kernel log

  • Jari Aalto Jari Aalto created ticket #97

    hdparm 9.65 / remove extra EOL whitesapce from the output

  • Jari Aalto Jari Aalto created ticket #26

    hdparm 9.65 / add --long option suport for all options

  • Mark Lord Mark Lord posted a comment on discussion Open Discussion

    No. Keeping this away from Microsoft.

  • Mark Lord Mark Lord modified ticket #56

    fdevname memory leak

  • Mark Lord Mark Lord modified ticket #56

    fdevname memory leak

  • Mark Lord Mark Lord posted a comment on ticket #56

    Not a real issue with anything. The memory involved is tiny, and everything is freed when the program exits.

  • Mark Lord Mark Lord posted a comment on ticket #12

    Try that and report back.

  • Mark Lord Mark Lord posted a comment on ticket #12

    --- hdparm-9.65/hdparm.c 2022-09-06 13:02:56.000000000 -0400 +++ hdparm/hdparm.c 2024-03-25 20:30:28.873285139 -0400 @@ -2,7 +2,7 @@ * hdparm.c - Command line interface to get/set hard disk parameters. * - by Mark Lord (C) 1994-2022 -- freely distributable. */ -#define HDPARM_VERSION "v9.65" +#define HDPARM_VERSION "v9.65+" #define _LARGEFILE64_SOURCE /*for lseek64*/ #define _BSD_SOURCE /* for strtoll() */ @@ -3040,16 +3040,18 @@ static void get_security_password (int h } else if (!handle_NULL ||...

  • Robert Pena Robert Pena posted a comment on ticket #12

    I get this output even when using -q (quite) when setting the SATA drive password or similar when issuing the erase command. Issuing SECURITY_SET_PASS command, password=...

  • Robert Pena Robert Pena created ticket #12

    Prevent password in output

  • Carlos Lopez Carlos Lopez posted a comment on ticket #93

    I had the same issue both with a Toshiba and a Seagate driver. In the end I ended using the tool openSeaChest_FormatUnit and with that I was able to correctly change the logical sector size on both HDDs. You can download the tool from here: https://github.com/Seagate/ToolBin (binaries avail here: https://github.com/Seagate/ToolBin/tree/master/openSeaChest/bin-build/22.07.26/ ) And there is a quick guide on how to use it here: https://wiki.archlinux.org/title/Advanced_Format#Seagate The tool its from...

  • Laurent Bonnaud Laurent Bonnaud created ticket #96

    hdparm -t does not display accurate bandwidth for fast SSD

  • Philipp Gühring Philipp Gühring created ticket #56

    fdevname memory leak

  • Neustradamus Neustradamus posted a comment on discussion Open Discussion

    Dear @hdparm team, @ideguy, It is possible to put the project on GitHub? Thanks in advance.

  • Tomasz Kłoczko Tomasz Kłoczko posted a comment on discussion Open Discussion

    Hi, Is it anywhere hdparm VCS repo? If not .. is it possible to create such repo best on github/giltlab? (because SF git interface sucks)

  • Nikos Barkas Nikos Barkas created ticket #55

    Add missing SATA and ACS/AST/APT revisions to identify

  • Nikos Barkas Nikos Barkas posted a comment on ticket #95

    Please close/delete this ticket, I have created an entry in patches.

  • Nikos Barkas Nikos Barkas created ticket #54

    Patch to add missing ssd form factors on NOMINAL FORM FACTOR

  • Nikos Barkas Nikos Barkas created ticket #95

    Add missing SSD Form Factor values on the NOMINAL FORM FACTOR

  • Zibri Zibri created ticket #94

    sanitize crypto scramble not correct

  • David Okamoto David Okamoto created ticket #11

    hdparm -C Update to display EPC check power mode states

  • dgcampea dgcampea created ticket #93

    set-sector-size and -Istdout woes with TOSHIBA MG09ACA18TE

  • Beren Scott Beren Scott created ticket #25

    Security as a background process

  • Mark Lord Mark Lord posted a comment on ticket #92

    I have no idea what you are asking. Both '-y' and '-Y' work as intended for me -- I use them regularly, and one can even verify them by using '-C' afterward to read back the (new) drive state.

  • Mark Lord Mark Lord modified ticket #92

    Sleep Now and Stand By Now.

  • Mark Lord Mark Lord posted a comment on ticket #92

    I have no idea what you are asking. Both '-y' and '-Y' work as intended for me -- I use them regularly, and one can even verify them by using '-C' afterward to read back the (new) drive state.

  • Beren Scott Beren Scott created ticket #92

    Sleep Now and Stand By Now.

  • Ratio Ratio posted a comment on ticket #53

    Parsing in other software: https://github.com/doug-gilbert/sg3_utils/blob/main/lib/sg_lib.c#L1840 Note about incorrect byte order i fixed there: https://github.com/doug-gilbert/sg3_utils/pull/25

  • Ratio Ratio created ticket #53

    Fix parsing sense data

  • Mark Lord Mark Lord created a blog post

    hdparm-9.65 is released

  • hdparm hdparm released /hdparm/hdparm-9.65.tar.gz

  • Mark Lord Mark Lord modified ticket #52

    Fix built with glibc 2.36

  • Mark Lord Mark Lord posted a comment on ticket #52

    Okay, I'll put that #ifndef in place for v9.65 and hope that it does more good than harm. Thanks

  • Mark Lord Mark Lord modified ticket #91

    `set-sector-size` out of range

  • Mark Lord Mark Lord posted a comment on ticket #91

    Yes, that got fixed ages ago! :)

  • copyliu copyliu posted a comment on ticket #91

    oh , debian stable provided hdparm version is 9.60, update to newest hdparm everything is good :)

  • copyliu copyliu created ticket #91

    `set-sector-size` out of range

  • Dirk Mueller Dirk Mueller posted a comment on ticket #52

    one option is to make an ifdef around the include of linux/fs.h: #ifndef FSCONFIG_SET_FLAG #include <linux/fs.h> #endif

  • Dirk Mueller Dirk Mueller posted a comment on ticket #52

    if at all this depends on the glibc version I think. the patch looks good to me. I have tested the following patch against glibc 2.19 and gcc 4.8, which is the oldest I still have around, and it compiles flawless. I have removed all linux/ includes as they should come via glibc (via sys/) instead: --- hdparm-9.64/hdparm.c +++ hdparm-9.64/hdparm.c @@ -24,9 +24,6 @@ #include <sys/mount.h> #include <sys/mman.h> #include <sys/user.h> -#include <linux/types.h> -#include <linux/fs.h> -#include <linux/major.h>...

  • Timo Gurr Timo Gurr posted a comment on ticket #52

    This shouldn't have anything to do with GCC(?). At least for my tests hdparm 9.64 with the patch applied compiled fine on two systems, one with glibc 2.35 and one with glibc 2.36 where it failed to build without the patch.

  • Mark Lord Mark Lord posted a comment on ticket #52

    Thanks. But doing this will break builds with older versions. Can you make it conditional upon the version of GCC ?

  • Khem Raj Khem Raj posted a comment on ticket #52

    proposed fix

  • Khem Raj Khem Raj created ticket #52

    Fix built with glibc 2.36

  • Mark Lord Mark Lord created a blog post

    hdparm-9.64 is released

  • hdparm hdparm released /hdparm/hdparm-9.64.tar.gz

  • Jose Maria Mauro Jose Maria Mauro created ticket #10

    Issue trying to secure erase.

  • getsnoopy getsnoopy created ticket #51

    Fix for some unit formatting issues

  • Mark Lord Mark Lord created a blog post

    hdparm-9.63 is released

  • hdparm hdparm released /hdparm/hdparm-9.63.tar.gz

  • Mark Lord Mark Lord posted a comment on ticket #90

    I have renamed the new flag to be "--sanitize-overwrite-passes" to avoid confusion with existing flags where "-pass" refers to a password. Otherwise, applied for hdparm-9.63.

  • Michal Grzedzicki Michal Grzedzicki posted a comment on ticket #90

    Hi Mark, did you have a time to look at the path bellow ?

  • Michal Grzedzicki Michal Grzedzicki posted a comment on ticket #90

    adding patch adding option to specify the pass count

  • Mark Lord Mark Lord modified ticket #90

    hdparm --sanitize-overwrite do not have an option to change the count parameter and default value

  • Mark Lord Mark Lord posted a comment on ticket #90

    Not a bug. It does what one asks it to do. If one wants just a single-pass erase, then use "--security-erase" instead. But I'm totally open to anyone who wants to submit a patch which adds a command-line option to specify the exact number of sanitize cycles. Cheers

  • Beren Scott Beren Scott posted a comment on discussion Open Discussion

    I'm looking through the source code, and I see provisions such as: switch (sanitize_feature) { case SANITIZE_STATUS_EXT: printf("Sanitize status:\n"); sanitize_state = get_sanitize_state(r.hob.nsect); sanitize_normal_output(sanitize_state, &r); break; When I run an enhanced secure erase command, I simply get nothing, it states that it's performing the erase, but nothing changes, then eventually at 30 minutes the process ends. Am I doing something wrong? How do I monitor this process?

  • Michal Grzedzicki Michal Grzedzicki created ticket #90

    hdparm --sanitize-overwrite do not have an option to change the count parameter and default value

  • stoatwblr stoatwblr posted a comment on ticket #89

    addendum, this looks mpt3sas specific, the sata interfaces aren't timing out after all

  • stoatwblr stoatwblr created ticket #89

    scsi timeouts in latest ubuntu kernels

  • Martin Guy Martin Guy posted a comment on ticket #88

    On 22/09/2021, Mark Lord ideguy@users.sourceforge.net wrote: Applied, thanks. I especially like how it nicely handles "0" as well as "1". :) Oh yes :) The second case instead always has plural hours and never 1 minute. If it ever gets internationalized this will all need reworking, but for now... Blessings & thanks M

  • Mark Lord Mark Lord posted a comment on ticket #88

    Applied, thanks. I especially like how it nicely handles "0" as well as "1". :)

  • Mark Lord Mark Lord modified ticket #88

    hdparm -I 12 says "(1 minutes)" and -I 242 "(1 hours)"

  • Norman Diamond Norman Diamond posted a comment on ticket #87

    "I have no idea why the compiler is treating bit shift output as signed value performing sign extension instead of zero extension." The reason is that unsigned short promotes to signed int unless short and int have the same length. ISO C language standard, section 6.3.1.1. Mr. Lord fixed hdparm but C is unfixable.

  • Martin Guy Martin Guy created ticket #88

    hdparm -I 12 says "(1 minutes)" and -I 242 "(1 hours)"

  • Mark Lord Mark Lord modified ticket #84

    hdparm -I /dev/sda crashes device

  • Mark Lord Mark Lord posted a comment on ticket #84

    Kernel (libata) bug, not hdparm.

  • Siegfried Schnieders Siegfried Schnieders posted a comment on ticket #84

    The error still exists in versoin 9.62.

  • Mark Lord Mark Lord modified ticket #87

    hdparm --dco-identify reports invalid value for Real max sectors

  • Mark Lord Mark Lord posted a comment on ticket #87

    Fix this and similar bugs elsewhere in the code. hdparm-9.62 now available.

  • Mark Lord Mark Lord created a blog post

    hdparm-9.62 is released

  • hdparm hdparm released /hdparm/hdparm-9.62.tar.gz

  • Michal Grzedzicki Michal Grzedzicki created ticket #87

    hdparm --dco-identify reports invalid value for Real max sectors

  • Mark Lord Mark Lord created a blog post

    hdparm-9.61 is released

  • hdparm hdparm released /hdparm/hdparm-9.61.tar.gz

  • hdparm hdparm released /hdparm/hdparm-9.61.tar.tz

  • Mark Lord Mark Lord posted a comment on ticket #10

    -J Get/set Western DIgital "Idle3" timeout for a WDC "Green" drive (DANGEROUS) There is support in there, but this was written many years ago, and WD may have changed the protocol. So it might still work, or it might brick your drive. Your call. WD doesn't tell us how it works, so that's the best shot at it for now.

  • mirh mirh posted a comment on ticket #10

    This should have been added in version 9.38. Though documentation claims it's not somehow as good as it could. Is idle3ctl also lacking in this regard?

  • Mark Lord Mark Lord created a blog post

    hdparm-9.60 is released

  • hdparm hdparm released /hdparm/hdparm-9.60.tar.gz

  • hdparm hdparm released /hdparm/hdparm-9.60.tar.gz

  • Mark Lord Mark Lord created a blog post

    hdparm-9.59 is released

  • hdparm hdparm released /hdparm/hdparm-9.59.tar.gz

1 >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.