Friday 28 September 2012

Nvidia Optimus and Bumblebee

I have been using Bumblebee on my Dell Vostro 3750 for about 6 weeks now and have found it reliable and performant.  My only niggles are the following:

1.) The need to run or configure optirun prior to the graphics card being initialised.  It would be nice if Bumblebee could detect an application making a 3d call and enabling the card automatically.

2.) The fact that my display would cut out whenever Ubuntu 12.04.1 started up.  This was recently resolved by discovering that acpi=off fixed the issue which led me to find the following post:

https://github.com/Bumblebee-Project/Bumblebee/issues/255

This led to

https://bugzilla.redhat.com/show_bug.cgi?id=734041

and finally

https://wiki.archlinux.org/index.php/Backlight#ACPI

I updated /etc/default/grub with the following GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor"
and ran sudo update-grub.  My machine is now working perfectly.  Yay.


Bumblebee is an incredibly promising development and I am proud of the work that the team has done.  3 cheers for open source developers and their hard work !












Tuesday 15 May 2012

SD card testing


Tested 2 class 10 GB SDHC cards a PNY and a Transcend using CrystaldiskMark 3.01 over and average of 5 test runs writing 1000MB.  Test completed using a Sandisk Micromate SDHC USB adapter.

PNY       read was Sequential:19.75MB/s, 512K :19.90MB/s, 4K:4.577MB/s, 4K QD32:5.173MB/s
PNY       write was Sequential:15.21MB/s, 512K :.65MB/s,  4K:.005MB/s, 4K QD32:.006MB/s

Transcend read was Sequential:19.54MB/s, 512K :19.39MB/s, 4K:3.166MB/s, 4K QD32:3.333MB/s
Transcend write was Sequential:17.98MB/s, 512K :.903MB/s, 4K:.009MB/s, 4K QD32:.009MB/s

PNY faster read, transcend faster write.  All non sequential writes were dire.  Since the most important aspect of a camera is taking photos, write speed is the most important.  The Transcend wins.....just.

Tuesday 20 March 2012

Handbrake - My thoughts

Handbrake is a brilliant application doing transcoding in an automated and convenient way.  The only problems that I have with it are as follows:



So I now rip my blu-rays using OSFMount and Handbrake using a MKV container including the all important DTS and/or DTS-HD soundtracks.

Time will tell if I've wasted my time cos I sure as hell don't know.

Simon


Wednesday 7 March 2012

Is Darwin's Theory of Evolution still relevant ?

I've thought about this quite a bit over the past few months.  On the basis that humanity is ensuring old age for the infirm, unstable, disabled and injured can Darwin's theory still hold as the majority of the populous is getting more and more 'unfit' ?

There are many examples of this, for example, according to Darwin's theory death would ensue from the following problems, which humans deal with on a routine basis:
  • Caesarian birth
  • Appendicitis
  • cardiac arrest ...the list goes on
So as we're getting more obese and dealing with issues like Aid's, Cancer, stroke & dementia (The top 10 causes of death) we need to ask are we bypassing evolution and therefore preventing the human race from progression ?

I don't think so.  I used to think that we were doomed (and we still might be.  Read 'Breeds There a Man…?' by Isaac Asimov) but not for the reasons I thought originally.

Because I believe that the survival of the fittest is still relevant when measured by a different yard stick.  If you consider intelligence,creativity and cunning then we're still up there.  Society at large is getting more educated and the more successful people are either creative or cunning (or both).  We're still a success story in spite of the sedentary masses.

You can (possibly) deal with cancer in one of two ways

1.) Let cancer take it's course and over millennia we (may) beat it (or we may not).  This is Darwins theory by the measure of strength.

2.) Try drugs and other forms of radiation therapy etc until we (possibly) find a medicinal way to beat cancer.  This is Darwin's theory by the measure of intelligence.

The same goes for Aids, aging, dementia and everything else. It depends on perspective and interpretation of the theory.


Just my thoughts.

Friday 10 February 2012

Linux fragmentation.

So I've been running Linux a while.  My unorthodox (read non standard) install is a single ext4 partition (320GB) with a 2GB pagefile.

I do a LOT of DVD ripping, transcoding (using handbrake), and moving of files on to NAS on this machine.

A few people will say that since you're deleting or moving all the files the fragmentation will be minimal, except I do them in batches on an as and when basis.  The disk frequently gets to 90% full, then I do some encoding and ripping.

Needless to say, I expect it to be fragmented.  I run KDE on it, it's a DHCP/DNS server; I read emails on it, run Chrome and other apps.  If this was windows it'd be SLOW.

So I run fsck.ext4 -nfv /dev/sda1 and what do I find.


     654 non-contiguous files (0.3%)
     331 non-contiguous directories (0.1%)

In my opinion, that's pretty damn good.  I'm impressed again.  Linux and EXT4 rule bit time.  No wonder there is no mainstream de-fragmentation tool for EXT4.

Huzzah

3 Stolen Specialized bikes



Please keep an out for my friends 3 STOLEN bikes taken a couple of nights ago.

Specialized S-Works Enduro 2011 frame number STAG210B0168


Specialized Epic FSR Expert Carbon 2010 frame number STAB29C0616 - with Stans rims on American Classic hubs



Specialized Stumpjumper metalic turquiose (hardtail) small, with Mavic rims on Hope hubs and Hope mono brakes with braided hoses.



Tuesday 31 January 2012

Moving from a Hard disk to a SSD (Solid State Drive)

First things first, Do you need an SSD ? If you're reading this post I assume you've got one and the decision has already been made.  If you don't have one the decision making criteria is a little different but equally simple.  It's like the difference between a Ferrari and a Mondeo.  If you like speed and are willing to pay for it then great, buy an SSD, otherwise for the same money you could buy 5+ Mondeo's.

Here is the the process I went through to migrate to a SSD on Windows 7

1.) Remove page file and hibernation file, remove as many documents and files as possible on to external storage and uninstall any programs you no longer need.  Empty Recycle Bin.
2.) Disable system restore (again to save space)
2.) Defragment drive until no fragments remain (http://ultradefrag.sourceforge.net/en/index.html)
3.) Shrink Drive (as much as possible) in Windows 7 (My HDD was 500GB and the SSD was 120GB) until it will fit on the drive
4.) Using Clonezilla backup drive to external storage (you can skip to step 6 if you do a disk-disk copy with an external caddy).  http://clonezilla.org/
5.) Install SSD
6.) Restore backup to SSD via network/USB/esata using clonezilla (Esata is the quickest, then USB, then network)
7.) Re-instate pagefile and hibernation (and system restore if you feel the need).
8.) Disable Defragmentation
9.) Disable file indexing
10.) Enjoy

The above is fairly self explanatory with tutorials on the internet, but some useful tidbits are as follows:

Elevated command prompt
to run an elevated command prompt click on the start button, and in the search box type 'cmd'  you then need to right click on the search result and select 'run as administrator'

Disable hibernation
in an elevated command prompt type 'powercfg /h off' without the quotation marks.  use 'powercfg /h on' to turn this back on again.

Short stroking the drive
There is a train of thought that leaving unpartitioned space at the end of the SSD will prolong it's life.  An SSD potentially has a shorter life span than a hard drive and this may be increased by 'short stroking' the drive.  This means that the wear levelling algorithm used to ensure that the flash chips are used equally has a larger amount of space to do the levelling over.  My opinion is that for the sake of 20gb of my 120gb drive I may as well do it.

Testing Performance: (winsat disk or dd)
Once you have done this process you can use the command 'winsat disk' to test the performance of your drive.  Alternatively if you have a Linux installation (a wise move) you can run bonnie++, hdparm -T or use DD to give you a basic result.

reuse disk in external caddy
I can recommend the following item (£5.10 at time of post) as a caddy for the 2.5" drive that you have removed for re-use.  I tried the cheaper ones and the build quality is dismal.
2-5-inch SATA USB e-SATA HDD Laptop Enclosure Caddy

Useful Links:
http://www.ssdfreaks.com/content/664/how-to-clone-hdd-to-ssd-with-windows-7s-own-software/
http://thessdreview.com/ssd-guides/optimization-guides/the-ssd-optimization-guide-2/

performance results of 'winsat disk' for my Corsair Force3 SSD as follows:


Disk  Sequential 64.0 Read                        366.98 MB/s          7.9
Disk  Random 16.0 Read                           154.20 MB/s          7.5
Responsiveness: Average IO Rate              0.44 ms/IO          7.9
Responsiveness: Grouped IOs                    6.68 units          7.7
Responsiveness: Long IOs                         1.02 units          7.9
Responsiveness: Overall                             6.79 units          7.9
Responsiveness: PenaltyFactor                   0.0
Disk  Sequential 64.0 Write                  497.45 MB/s          7.9
Average Read Time with Sequential Writes     0.209 ms          7.9
Latency: 95th Percentile                     0.616 ms          7.9
Latency: Maximum                             39.874 ms          7.9
Average Read Time with Random Writes         0.133 ms          7.9

One large con of doing this change is that currently few, if any, SSD's implement power saving so do not expect your notebook/laptop battery to last ass long as it did before..


Monday 30 January 2012

Linux Swap File vs Swap Partition


from http://en.wikipedia.org/wiki/Paging#Linux

Interesting piece on swap files from Andrew Morton himself.

.. "From a software point of view with the 2.6 Linux kernel, swap files are just as fast[14][15] as swap partitions. The kernel keeps a map of where the swap file exists, and accesses the disk directly, bypassing caching and filesystem overhead.[15]"

Q.) Does creating the swapfile on a journaled filesystem (e.g. ext3 or reiser) incur a significant performance hit?

A.) None at all. The kernel generates a map of swap offset -> disk blocks at swapon time and from then on uses that map to perform swap I/O directly against the underlying disk queue, bypassing all caching, metadata and filesystem code."

The implication is as follows: "With a 2.4.x kernel swap files were slower than swap partitions, but with the 2.6 kernel a swap file is just as fast as a swap partition."

Of course this depends on the following:

1.) That the swapfile is in contiguous space and therefore not fragmented
2.) That you have any need or desire to use a pagefile. Swap partitions work perfectly well.
3.) You're running a 2.6+ Kernel.

Tuesday 10 January 2012

Microsoft DISM is rubbish

I've used this a few times and at first glance it seems like the mutts mahoonies. Microsoft have cracked it, awesome. It's built in to the O/S, it's powerful whats not to like. Quite a lot actually. Here are a list of my dislikes.

1.) It takes ages to unmount an image, even with discard. Surely this should take no time, there isn't anything to write to the image ?

2.) Shutting down a machine with a wim attached leaves stray stuff around that it's really difficult to delete. Even the cleanup-wim option seems confused.

3.) It somehow manages to screw up ntfs-3g in Linux. Nice. It's gotta be bad to mess up Linux.

Oh well.