[mythtv-users] Software changes required when switching CPU from single-core to multi-core?

Craig Huff huffcslists at gmail.com
Fri May 27 11:22:29 UTC 2011


On May 27, 2011 5:50 AM, "Douglas Clowes" <dclowes1 at optusnet.com.au> wrote:
>
> On 2011-05-27 05:37, Craig Huff wrote:
>>
>> > >> the mythtv wiki has good info on XFS,
>>
>> I'm afraid I didn't make myself clear. My video drives are all formatted
with Journalling File System (JFS), _not_ XFS.
>>
>> Can anyone answer any of the questions I raised in my last post in this
thread? Sorry, not to restate them, but I don't have the dexterity (or is it
the patience?) to do cut & paste in Android email.
>>
>> Craig.
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> Gee Craig, I picked that up and I wasn't even paying attention. So it must
have been at least a little bit clear.
>
> The program filefrag can give an indication of file fragmentation. Works
on XFS and EXT, so probably works on JFS. Try it.
>
> For example, to find the topp 100 fragmented files over 1G:
>
> # find /storage/mythtv  -type f -size +1G -exec filefrag {} \; | sort -t:
-nk2 | tail -n100
>
> and "if it aint broke, don't fix it"!
>
> If you have one or more heavily fragmented files, according to your
taste/laziness, I have a remap.sh script that I use when xfs_fsr doesn't do
the job on my heavily fragmented and very full disks:
>
> #!/bin/bash
> file="$*"
> if [ ! -e "${file}" ]
> then
>   echo "\"${file}\" does not exist"
>   exit 1
> fi
> echo "\"${file}\""
> #ls -lh "${file}"
> old_size=`ls -ld ${file} | cut -d ' ' -f 5`
> old_frag="`filefrag "${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2`"
> old_rate=`expr $old_size \/ $old_frag`
> mv "${file}" "${file}.bck"
> cp -a "${file}.bck" "${file}"
> #ls -lh "${file}"
> new_size=`ls -ld ${file} | cut -d ' ' -f 5`
> new_frag="`filefrag "${file}" | cut -d ':' -f 2 | cut -d ' ' -f 2`"
> new_rate=`expr $new_size \/ $new_frag`
> echo "${old_size} => ${new_size} bytes"
> echo "${old_frag} => ${new_frag} extents"
> echo "${old_rate} => ${new_rate} ratio"
> echo "diff \"${file}\" \"${file}.bck\""
> echo "ls -l \"${file}\" \"${file}.bck\""
> echo "rm -i \"${file}.bck\""
>
> This renames the file to <name>.bck, copies it back to the original file,
shows you how it went and gives you a selection of commands. Your level of
paranoia will determine whether you compare the files, "ls -l" them or just
remove the original file.
>
> As usual on linux, there are at least sixteen ways to do anything - this
has been one of them.
>
> And, as for the DMA timeout - sorry, can't help you :(
>
> Cheers,
>
> Douglas

Douglas,
Thanks for your advice. Shiny new tools to try!  :-)

Craig.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110527/52fdae74/attachment.html 


More information about the mythtv-users mailing list