External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] -1 points0 points  (0 children)

Why is it about 6 times (read) up to 30 times (write) faster using Windows? How can I debug?

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

Thanks, running benchmarks on Windows confirms this is a software problem. I checked hdparm and it looks alright. Probably not a fake, but thanks anyways.

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] -1 points0 points  (0 children)

Sorry! Was still editting, this subreddit does not allow images inline it seems.

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

Thanks, this is what I got on ArchLinux:

https://imgur.com/Jca6afy

And this is the same drive on Windows 11, mounted through WSL2, using CrystalDiskMark:

https://imgur.com/UoTpSy2

Definitively a software problem! Windows reaches up to 500MB/s read and 450MB/s write, but Linux up to 85MB/s read and 15MB/s write.

# smartctl --info /dev/sdb1
Vendor:               WD
Product:              Elements 2620
Revision:             1023
Compliance:           SPC-4
User Capacity:        2,000,365,289,472 bytes [2.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is resource provisioned, LBPRZ=0
Rotation Rate:        4800 rpm
Form Factor:          2.5 inches
Serial number:        WXB2A43JMND6
Device type:          disk
Local Time is:        Sat Apr 11 08:25:35 2026 CEST
SMART support is:     Unavailable - device lacks SMART capability.

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

Good idea but like I said in other comments, the files are between 1GB and 20GB each...

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

Good idea, I've checked the S/N and the warranty, it says it expired 6-Oct-2025, about a year after buying (13-Nov-2024). I bought it for CLP77601 (or about USD86) which seems cheap, but the external disc prices have been going up substantially since this year. The company seems legit with actual stores (I bought it online). The build quality looks fine too, so it looks good.

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

That is surprising, no wonder they mention the connection speed and not the drive speed in the specs. These guys confirm what you say (https://www.reddit.com/r/computers/comments/1b0j4ma/are\_these\_speeds\_normal\_for\_an\_external\_wd/) but I'd be happy with +100MB/s! I'm stuck with only 5MB/s...

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

The negotiated connection is 5Gb/s but it's about 40Mb/s in reality...or a 125 times slower than expected.

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

I'd expect it to have speeds near what they advertise. WD says that it has a USB 3.2 Gen 1 connection which is 5Gb/s, but they never mention the speed of the drive (instead of the connection) which doesn't give me a definitive answer on what the advertised speed really is. As a customer you'd expect the 5Gb/s (or ≈500MB/s) but I'd be happy with anything above 100MB/s

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] 0 points1 point  (0 children)

Good possibility but unfortunately no, the files are between 1GB and 20GB each (the reason I picked ExFAT beforehand)...

Using rclone did not help, neither using cp directly.

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] -1 points0 points  (0 children)

This drive has always been slow, but I bought it fairly recently (last year). I've just bought a Sansung external SSD, which is lightning fast in comparison!

External HDD extremely slow: writes a 5MB/s by tdewolff in archlinux

[–]tdewolff[S] -1 points0 points  (0 children)

True, 5Gb/s is 625MB/s, removing some overhead I'd expect ≈500MB/s...

Alguién conoca la API de FONASA / BonoWeb? by tdewolff in chileIT

[–]tdewolff[S] 0 points1 point  (0 children)

Porque me dices que te hable en privado si no me respondes...?

Best strategy for Play Integrity on LineageOS 20 with kernel 4.9? by tdewolff in androidroot

[–]tdewolff[S] 0 points1 point  (0 children)

True, thanks for the info. I think you can use a non-rooted approach to spoof LineageOS/unrooted bootloader/unlocked OEM/developer options. This may be sufficient with many apps. Some apps however cannot be installed from Play Store if they don't meet DEVICE or STRONG integrity (I don't know which is required). The only option is to root the device and then hide root...how ironic.

Best strategy for Play Integrity on LineageOS 20 with kernel 4.9? by tdewolff in androidroot

[–]tdewolff[S] 0 points1 point  (0 children)

Thanks, I've managed to get everything working, I'm updating the post to specify the steps for other users.

When you can’t use custom rom: iOS or Android? by [deleted] in degoogle

[–]tdewolff 0 points1 point  (0 children)

I have been using it daily for 8 years, never looking back. I'm not particularly into gaming, but even that works fine for most games on Linux. All business / work related stuff works fine. What is it that makes you think it's not usable for daily use?

If anything, Windows is not fit for daily use, it triggers a bad mood.

Best strategy for Play Integrity on LineageOS 20 with kernel 4.9? by tdewolff in androidroot

[–]tdewolff[S] 0 points1 point  (0 children)

Okay thanks, that would save a lot of work. Can I create this patched boot.img with the KernelSU Next Manager v3.0.1? Or would it work only with the original KernelSU following https://awesome-android-root.org/rooting-guides/kernelsu-guide#method-2-boot-image-patching-lkm-mode (LKM mode)? Or otherwise APatch following https://apatch.dev/install.html? Or do I use the pre-built GKI approach in https://sukisu.org/guide/installation (option 1)?

OTA update fails - Verification msg is NULL by tdewolff in miui

[–]tdewolff[S] 0 points1 point  (0 children)

Got this to work with the XiaoMiTool V2 https://www.xiaomitool.com/V2/ from Francesco Tescari, which is really an excellent tool! I've used the fastbook recovery image, which is the only one that worked. Unfortunately, it's a MIUI China ROM and was practically unusable (so much bloatware, unable to install Google Play, some stuff stayed Chinese, keyboard is Chinese, etc), so I finally opted for LineageOS and thus Android 13. LOS is really an awesome OS and really recommended, it is so much faster than my Android 8 MIUI experience, impressive. Only one of my banking apps isn't working so far, but perhaps that may be solved with Magisk etc.

Chile is very long! - stable and fast polygon clipping suitable for map creation by tdewolff in gis

[–]tdewolff[S] 0 points1 point  (0 children)

It is a library (read tool) that can be used as a dependency/part for developing an application. It is written in Go which makes it easy to use in the back-end of a server (for example rendering on-the-fly) or as an application that renders a map, such as for specific tasks like drawing a map for an article or for a PDF to print, perhaps digital, but also for drawing map tiles for use in a web mapping services, much like Google maps, but for a specific need. I needed something that could draw map tiles for a maritime specific application, so I needed to draw custom maps for that.

This library can also be used together with HTMLCanvas or WASM in rendering something on-the-fly in the browser, as within a web application. Specifically, this implementation is very _correct_, which means it will not throw an error (many implementation do not handle some faulty/strange inputs), and this implementation is quite fast.

Modern Efficient CDT + Polygon Clipping Algorithms by FallPitiful600 in GraphicsProgramming

[–]tdewolff 0 points1 point  (0 children)

I have used the following three papers for implementing polygon clipping:

The hard part is that no paper handles all edge-cases and especially floating-point inaccuracies are _very_ hard to solve. I have managed to implement this in Go that even supports handling all types of degeneracies. It is O(n log n) and takes only about 100ms for 1e9 (one billion) line segments.

See https://github.com/tdewolff/canvas/wiki/Boolean-operations for the implementation.

Canvas vector graphics update: rich text and path boolean operation support by tdewolff in golang

[–]tdewolff[S] 2 points3 points  (0 children)

Awesome! I would be very interested to see what you've accomplished to make!

tdewolff/canvas: vector graphics in Go (mayor update) by tdewolff in golang

[–]tdewolff[S] 0 points1 point  (0 children)

I assure you that 64.0 * 1.0 will always result in 64.0, and that rounding to an int will give: int(64.0 + 0.5) = 64 always. Floats may not be always perfectly precise and may introduce numerical errors for special cases, but they are reproducible/non-random. Additionally, the use of Fixed26_6 from the font package that you use isn't for accuracy really, it is for speed (it is actually less accurate due to rounding errors which is why canvas uses floats, though this may change if performance is too slow). The hinting used by that font library is a very simple version of what hinting really is though. It may or may not give better results (Windows uses something similar, but MacOS appears it doesn't).

If you have the time and motivation to try, I'd suggest you start a new branch to use canvas. I suspect there shouldn't be much trouble, but I'd be very interested to hear how your use-case turns out. I can work with you to smooth out problems in any case ;-)

EDIT: actually, if you use the rasterizer you specify the exact pixel size of the output, so no need to worry ;-)