log☇︎
93200+ entries in 0.027s
asciilifeform: let the WRITER pad.
asciilifeform: read 77 bytes ? write 77, motherfucker
asciilifeform: could just the same do this without the padding.
asciilifeform: 'new jersey philosophy' : 'silent failure is just about as good as success'
asciilifeform: it inserts 0 silently in place of what failed to read.
asciilifeform: except that the idiocy in question doesn't preserve any data.
asciilifeform: bbbbutthatwouldntbePOSIX!111
asciilifeform: if you omit the 'h', you get output in martian units
asciilifeform: ^ that one is at least plain to naked eye
asciilifeform: doppler: once you figure out this puzzler, you will grasp what the thread was about
asciilifeform: and laugh/cry
asciilifeform: then ls -l out
asciilifeform: yes | dd of=out bs=1024k count=10 ☟︎
asciilifeform: btw, here's a lulzy:
asciilifeform: THAT very same SCO.
asciilifeform: the 'standard' in question is actually quasi-mythological work, and (yes) SCO's.
asciilifeform: 2001.
asciilifeform: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html
asciilifeform: mircea_popescu: nope
asciilifeform: mircea_popescu: ' i only implemented the standard ' has roughly same cachet as ' i was only following orders!11'
asciilifeform: ( spoiler : plan9's is the 'correct' one )
asciilifeform: ^ we had this on 2+ threads
asciilifeform: on 'modern unix'.
asciilifeform: nooseflash: even, e.g., 'cat', has megatonne of liquishit.
asciilifeform: aaaha.
asciilifeform: barfalicious.
asciilifeform: why the FUCK would anyone specify 'count ATTEMPTS' rather than reads !
asciilifeform: Framedragger: picture if 'this util will format your hdd unless you supply the iflag=dontformatmyhdd option' buried somewhere deep in docs.
asciilifeform: Framedragger: almost like somebody thought about rng.
asciilifeform: 'unix philosophy' my arse.
asciilifeform: but apparently doesn't like kB/s variable thing.
asciilifeform: mircea_popescu: e.g., dd, worx 100% of the time when copying multi-TB ssd, say.
asciilifeform: http://nosuchlabs.com/hardware.html has been updated.
asciilifeform: mircea_popescu: apparently everything is 'fine' until you find the magic corner case.
asciilifeform: ikr?
asciilifeform: ^ mircea_popescu, mod6 , ben_vulpes , everybody ^
asciilifeform: holy FUCK the sheer gangrene.
asciilifeform: 'oh i'ma pad with zeros'
asciilifeform: on what planet was this considered acceptable?!!!
asciilifeform: MOTHERFUCKERS
asciilifeform: the cure, apparently, is option ' iflag=fullblock ' which for some reason is NOT DEFAULT
asciilifeform: apparently, when reading slow or variable-speed source ( such as FUCKGOATS ) dd will sometimes fail to fill an entire block (default block size is 512 on most boxes) and PAD WITH MOTHERFUCKING ZEROS
asciilifeform: of the worst sort, the 'folx in the know, know about it, and it will never be fixed'
asciilifeform: i may have found a bug in dd.
asciilifeform: in other noose!
asciilifeform: put'em on an old hdd.
asciilifeform: i quite often refer to the raw blox.
asciilifeform: handy for experiments and what-ifs of many sorts.
asciilifeform: they are quite handy.
asciilifeform: mod6: i recommend to keep'em around
asciilifeform: anyway this is not essential.
asciilifeform: then where the shutdown routine is, print it.
asciilifeform: and dbTotal += res ; say, after the print.
asciilifeform: int64 dbTotal = 0; somewhere,
asciilifeform: make a, e.g.,
asciilifeform: so we find out total % of the node's bringup time spent waiting for bdb
asciilifeform: (optional) make it print total odometers on shutdown
asciilifeform: one more thing
asciilifeform: mod6: you need asciilifeform_blackhole_odometer.vpatch + above, aha.
asciilifeform: roughly.
asciilifeform: also fwiw his total block delays (red) match the ones on my ssd node (zoolag)
asciilifeform: mircea_popescu: that's what mod6 was doing. except that he forgot the 'read' patch ^ and only had total and write.
asciilifeform: http://therealbitcoin.org/ml/btc-dev/attachments/20170226/asciilifeform_blackhole_reads.vpatch
asciilifeform: aha!
asciilifeform: i posted a bunch of these.
asciilifeform: ProcessBlock (res == 1) took : 167839ms; db write wait: 130117ms; db read wait: 21201ms
asciilifeform: e.g.,
asciilifeform: thread is in the logs.
asciilifeform: and i instrumented it.
asciilifeform: there's exactly 1 segment that accounted for ~99% of time.
asciilifeform: omfg
asciilifeform: mircea_popescu: i DID THIS
asciilifeform: ( the overall db wait time is ~= the total )
asciilifeform: mod6: also legend oughta read 'db write wait time'
asciilifeform: mod6: can haz one moar plot -- just 300,000 and up, plox ?
asciilifeform: 'we'
asciilifeform: eventually (given the extant turdball) it'll be >10min, and party's over.
asciilifeform: you can trivially derive the fact of it being not at all linear.
asciilifeform: aha.
asciilifeform: mircea_popescu: didn't i tellya it'll be geometric ?
asciilifeform: ( folx playing with mining 'db-pessimized' blocks... ? )
asciilifeform: 'stress tests' ?
asciilifeform: gotta wonder, what happened in the spikes
asciilifeform catches up with l0gz
asciilifeform: lol
asciilifeform: looks like mod6 already has
asciilifeform: oh nm
asciilifeform: ( the one i used for the plots )
asciilifeform: mod6: see ye olde http://therealbitcoin.org/ml/btc-dev/2015-July/000107.html << there is a pythong and gp script in there
asciilifeform: anything else -- waste of time
asciilifeform: strictly.
asciilifeform: http://btcbase.org/log/2017-04-18#1645539 << gnuplot ☝︎
asciilifeform: mats: if you're an aficionado, you'll like http://btcbase.org/log/2014-06-22#728931 ☝︎
asciilifeform: 'The man accused of fatally shooting five people in a Washington state mall last year has been found dead in his jail cell, authorities said Monday. ... When police confronted the suspect, he froze and complied ... was unarmed and silent, "kind of zombie-like," ... emigrated from Turkey and was a legal permanent resident'
asciilifeform: https://archive.is/ts6e4 << in other manchurian candidates.
asciilifeform: the one in http://qntra.net/2017/04/easter-manhunt-in-us .
asciilifeform: some d00d
asciilifeform: PA state police.
asciilifeform: in other noose, 'Steve Stephens was spotted this morning by PSP members in Erie County. After a brief pursuit, Stephens shot and killed himself.' -- re: recent desperado
asciilifeform: and be unaffected by local liquishit.