71000+ entries in 0.459s

mircea_popescu: the noion that hdd is usable or useful is
a cute pipe-dream of the web generation, unsupported in cold reality.
☟︎ Framedragger: mircea_popescu: but if you read further down, we were saying that it may be possible to just access
a raw block device without kernel module :)
a111: Logged on 2017-03-10 17:16 asciilifeform: the Right Thing would probably be to have
a very simple kernel driver that takes
a specially-marked disk partition and gives userland trb linear use of it, as plain array
mircea_popescu: asciilifeform usg really can't make anything. you're basically saying "siliconed botoxed cali chick could cook
a decent meal." of course she could. of course she won't.
mircea_popescu: not unlike tv advertising to my chained girl, "
a better life". really ? i think if she wanted that "better" she'd have found her way by now.
Framedragger: well, *in principle* deeper traversal should really not be
a problem at all. in practice - guess we shall see
a111: Logged on 2017-03-10 16:55 asciilifeform: ... so that
a 256-bit turd, e.g., 3ec455a2a84e978687a3990cec73f36b324fbd28e03603c6d9fc52018b001558, can be taken and matched to
a block # where said tx lives.
mircea_popescu: the people who actually have to work for their accomplishments
a la beerbohm would no doubt be quite upset.
Framedragger: apparently calling fclose() while syscall is running on that descriptor in another thread is 'not
a good idea' (outcome maybe platform/implementation specific), but that's an avoidable corner case.
Framedragger: (anyway, will share tool i wrote if only because couldn't find anything fitting the task out there, but need to polish
a bit first, etc.)
Framedragger: some (very initial) symlink stats - more stuff will have to wait - given
a "here are 1mn 'transactions' which symlink to files, resolve links and read from linked files in random order for 100mn times" setup, with one-folder-deep structure, like so: "simple_f1/e5/e5edc34c57d5ea2ea99cfe16d04655aa000c3d7f268022d2b21f95928fa34674 -> /files_f1/99997.txt", most basic stats are:
☟︎ trinque: there's what,
a million or so in the stash? plenty to build asciilifeform's fab.
trinque: I would, in fact, at this point drop postgresql for
a persistence layer for CLOS that did not use the thing under the hood.
Framedragger: yeah, i see what you mean, and everything. i'm not convinced that phuctor db is using the most it can from postgres, but neither you nor me have time to investigate this presently, i guess (and i may not be able to do
a great job there anyway)
a111: Logged on 2017-02-19 03:54 asciilifeform: (iirc we had
a thread where i described how corporate ameritards, if given
a problem like phuctor, would happily soak up
a few $mil and megawatt of iron)
Framedragger: tree rebalance is
a feature of
a balance binary tree which is sometimes the right tool for the job, cmon :)
Framedragger: yes, but how to cheaply ensure the latter. you won't have
a shitload of locks now will you
Framedragger: well, 'disk' could just be partition which isn't
a bad thing anyway, right?
Framedragger: also, wonder if there could be
a relevant linux cap'ability for allowing raw access to given /dev/block. but maybe not.
Framedragger: asciilifeform: yeah! i may have time / want to do this in ~april. just to be clear, there's really no way to have underlying userland fs allocate
a contiguous block, right?
trinque: if you want
a reciprocal wire lemme know
Framedragger: that's
a horrible idea for sure, but hey, free space to cheat in
Framedragger: aha, so there's high probability that there will *be*
a collision across the entire space.
Framedragger: and yeah, this 'generate collisions' scenario seems like
a harder version of 'just mine'
Framedragger: there's an assumption as max num of collisions here, of course, but obvs in practical terms it's
a very safe assumption...
trinque: that's right, it's doing
a sleep or two of several minutes
trinque: god forbid the disk always be in
a coherent state, eh?
☟︎ Framedragger: i guess one can imagine
a single sequence of tx then, simply.
Framedragger: it's
a really Good Thing that the hashing function which spits out transaction hashes gives *uniform distribution*. no congestion / too many collisions expected, and this scheme leverages that.
Framedragger: (i see how good it is to be aware of how actual disks read data here. some theoretician would propose
a pointer-exact-location scheme instead...)
Framedragger: well *that sounds like
a very decent idea*. :)
Framedragger: right! ahh that's nice. (so just to clarify, the 1024 byte block trick wouldn't work if there's
a collision (unless additional budget / w/e))
Framedragger: bear with my slowness, can you clarify how it looks like if there's
a collision in the initial lookup?
Framedragger: this is quite nice, and as you say, seek operation already gives
a small chunk which should cover most/all tx for current state of affairs (total number of transactions)...
Framedragger: oh i finally understood, literally all there is when one seeks to location 3ec455a2 is
a list of block numbers. (or single block number.)
Framedragger: trinque: it's just
a kindergarten way of wrapping up some syscalls. will obviously benchmark outside it later. i wasn't completely certain that my tool wouldn't trash the host fs. :)
Framedragger: aha, right! so it's basically
a (small) hashtable.
Framedragger: will get
a way to test real disk soon, didn't want to run on personal trashy PC, hence shitty server
Framedragger spent longer than wants to admit sorting out his heap and valgrind'ing. too much python is bad for
a person
Framedragger: getting ~4000-7000ns for symlink resolution to real path for
a 1mn symlink dir structure, e.g.
mircea_popescu: yeah, it's not lost on me that i'm the loudest preacher of continence in
a cloister of monks muchly more restrained and disciplined than myself.
Framedragger: i like my rc airplanes. "the will of history necessitates you to X" has
a marx'ified hegelian vibe :p
☟︎☟︎☟︎ mircea_popescu: well, anyway, i suppose it is
a good thing the intelligent people involved could you know, pursue their own self-determined will and etcetera. who knows how many glorious flights of amateur rc airplanes this obviously reasonable arrangement gave the world!