/srv/irclogs.ubuntu.com/2023/08/25/#ubuntu-server.txt

=== shokohsc51088 is now known as shokohsc5108
=== oerheks is now known as P01135809
=== P01135809 is now known as oerheks
=== shokohsc51085 is now known as shokohsc5108
faekjarzHow would i benchmark SWAP memory space? I want at least avg throughput, perhaps IOPS. I'm sure, i'm not the 1st to attempt this - there must be a ready-to-use tool/procedure, right? ;) 15:38
faekjarz…can i mount my swap file as a block dev, and DD it? …that'd do it, i think15:40
=== alchemist__ is now known as alchemist
znffaekjarz, why would you want to do that?18:35
faekjarz@znf: because i'd like to benchmark my SWAP mem18:59
znfIt's swap, not memory 18:59
faekjarz…in my particular case, i've got a dm-crypt layer, in between NVMe Storage, and the actual SWAP FILE19:01
faekjarz…i'd like to benchmar it19:01
faekjarz← is perfectly aware of all the layers - the dude just wants to benchmark his SWAP19:03
faekjarzthere must be a "swap mem" benchmark tool! Logic dictates, i'm NOT the 1st to attempt such an endeavour19:05
znfThere is not 19:08
faekjarzperhaps, we can StarFleet this issue ;) <3 19:08
faekjarzyou sure about that, @znf? …i might just inquire  Linus himself …nuffing rong with that … LUL 19:10
faekjarzI'd like a SWAP benchmarking tool! -.-19:11
znfI'm very sure 19:11
faekjarzk19:11
znfAlso Linus hasn't touched those parts of the kernel in years 19:11
znfThere's other people that are much more appropriate to ask about swap performance that work on the Linux kernel these days 19:12
znfEither way, if you just want to test encrypted VS unencrypted performance, just test that directly 19:13
znfAlso depending în what you're testing, I can tell you that a swap file is better than a dedicated swap partition these days 19:14
=== Adri2000_ is now known as Adri2000
faekjarzthank you, @znf, technically, i just want to "benchmark" my SWAP (file) - i want throughput, perhaps IOPS. I wonder, can i mount it as a block dev, and get DD results?19:18
faekjarz…following the everything-is-a-file doctrine, i should be able to mount and DD-benchmark my swap thing, shouldn't i? …how would i do that?19:24
sarnoldfaekjarz: https://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-filename19:58
faekjarz@sarnold: i'm not quite sure, how that contributes to benchmarking THE SWAP. Perhaps, if you don't mind, please elaborate, how i'd tune my Ubuntu boo params, accordingly. I'm certainly not a "please-bro", i'm happy to RTFM… why is your fedora example applicaple to my Ubuntu?20:19
sarnoldfaekjarz: fio is the most commonly used block IO benchmarking tool. it has a command line option to let you specify a file; I don't know if it can use your existing swap file, or if you'll just need to give it a path to where your swapfile is located, but that shouldn't give results too different from the existing swapfile20:22
faekjarz@sarnold: hmm, yeah, a file is a file - everything is a file - why wouldn't SWAP be A FILE …(loop?)mountable as a block dev? …the Kernel MUST grant me the power to write directly to SWAP, right? Do i need to run custom C-code?20:57
sarnoldfaekjarz: you could use losetup to mount it as a block device if you really must21:29
sarnoldfaekjarz: I'm hopeful that fio's --filename argument is enough to say that you don't need to :)21:29
znfstill wasted time21:37
znfjust get more ram21:37
sarnoldyes21:43
faekjarzoh, of course - silly me - i could've just downloaded more RAM! LUL 21:45
faekjarzMAKE MY DAY!21:45
faekjarz<321:45
faekjarzwell, while we're all so intimate - my use case is:  swap file on a dm-crypt volume. CPU has more AES 512b prowess than  PCIe/NVMe Gen3 x4 bandwidth allows.21:48
faekjarzi still like to obtain actual, real-world, benchmarkable, performance figures. …i want to stress my SWAP …HOW TO? …anyone, bueller, bueller21:51
faekjarz;) 21:52
sarnoldfaekjarz: what errors did you get with fio?21:55
faekjarz…i'm certainly not afraid of admitting insufficient education - this is NOT the barrier we're talking about! I intend to do SCIENCE, here! …I request your assistance!21:56
faekjarzi did not run fio, yet, @sarnold21:57
sarnoldah :) you should at least try the thing I suggested you to try two hours ago. You might have already had your answer had you tried. :)21:57
faekjarzok, i'm sorry - i apologize - it's the local booze day (i'm a bit tipsy) - i might not magnificise at the extremity of my potential, today! I shall increase my strive towards perfection. (i hope, you'd enjoy this overly grande ductus) 22:09
sarnoldah, happy imbibing :)22:13
faekjarzimbibi-what? …my phasers are set to inebriate …yet, i still attempt to figure out complicasted stith …oof, i shouldn't be bothering with …uhm … wasting yourt 'ime 22:18
faekjarz…sorry 'bout that22:19
znfYou're still wasting your time. You're eventually just benchmarking the file system, at best 22:29
znfNobody made a swap benchmark because it's a stupid and unreliable test 22:30
znfput it this way: if nobody *probably* smarter than us ever bothered making a benchmark...22:35
sarnoldyeah the whole point of swap is that it should be rarely used22:35
sarnoldstuff that's not important gets shoved there, so memory can be used for something that is used22:35
znfand because this is the *-server channel, heck, there can be an argument to never really having swap enabled anyway22:36
znfthe most I do on servers lately is to have zram 22:37
znfon the server that I do have swap, it's like 1-2 megabytes used22:37
znflooking at a 128GB server, with 8GB swap, I'm using 022:37
znfon a 131 day uptime22:37
=== bbezak1 is now known as bbezak

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!