Reputation
1,226
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
12 10
Newest
 Yearling
Impact
~61k people reached

  • 0 posts edited
  • 0 helpful flags
  • 31 votes cast
Feb
8
comment In linux, how do you check if a disk is fragmented?
Non-privileged users can execute e4defrag to their own file, but the score is not printed if -c option is specified -- man e4defrag
Feb
7
comment In linux, how do you check if a disk is fragmented?
Here's an accelerated alternative that doesn't use system() at all, and uses Path::Iterator::Rule for traversal and uses FS_IOC_FIEMAP ioctls to extract the number of extents instead of a system(filefrags) call, which should be much faster due to the lack of elf startup overhead. gist.github.com/kentfredric/ede160396eb96aea37dc
Feb
6
comment In linux, how do you check if a disk is fragmented?
I forgot about the stupid review queue. You don't need to quote things manually, you can use an array of arguments and that avoids the problem entirely by avoiding the shell call, as shown here: gist.github.com/kentfredric/12cf408ce32215b2e3f4
Nov
23
awarded  Yearling
Oct
21
awarded  Guru
Jul
18
awarded  Yearling
Apr
17
answered Firefox's spell check defaulting (and reverting) to the wrong language
Mar
17
awarded  Good Answer
Nov
10
revised What is the best method to remove duplicate image files from your computer?
deleted 4 characters in body
Nov
10
comment What does load average mean in unix/linux?
I know a process running at 100% doesn't sound very "efficient", but if the process arbitrarily limited itself to use only 20%, it would take 5 times as long. So here efficiency means "optimal resource utilization".
Nov
10
comment What does load average mean in unix/linux?
@Geek Because context switching ( alternating between processes ) is not "free", so 2 processes on one CPU running at 50% each will lose a bit of efficiency due to the context switching. Which means that 1 process at 100% means that process completes as-soon-as-possible in the process of completing its task, and no additional effort is wasted other than completing the task itself.
Jul
18
awarded  Yearling
May
2
awarded  Enlightened
May
2
awarded  Nice Answer
Jul
24
awarded  Enlightened
Jul
18
awarded  Yearling
Jul
17
comment How to boost system sound output?
"Most likely this is a hardware limitation" sometimes the problem is the source media you are playing has low signal levels, and its insane to expect fully pre-processing all media before playing it just so the volume is satisfactory. Also, a "loudness" filter at runtime could be nice on a system-wide scale.
Jul
15
comment Access a ZFS volume in Windows?
+1 just because although I haven't tried the ZFS support, I've been looking for something like this for ages. Native SFTP mount support without having to pay some nasty big company? I'm all over it like hyenas on a downed water buffalo.
Oct
11
awarded  Nice Answer
Jul
19
awarded  Yearling