blog.plee.me About software, technology and random things

15Jun/090

Firefox Lags + Sysinternals

Hey!

I've recently found out about a majorly annoying phenomenon that can be experienced if you launch a performance-hungry application through Firefox, mostly through downloading a file and opening it directly from Firefox.

Why?

Speaking in terms of process trees, firefox.exe is the root process (or parent process) of the child process, say for example Azureus / Vuze. Vuze is known to be rather performance demanding and when it needs resources, it will take them not only from the system itself, but also noticably from the parent process. I don't know if it's common behavior, but usually that shows in Firefox experiencing the occasional couple-of-seconds lags.

The solution? Close Firefox and restart it. That way, all its child processes are raised to the same level firefox.exe was on and you can now browse without any more lags disturbing your streaming videos or anything else 🙂

I realized this when I was running Process Explorer by Sysinternals (a company that creates awesome tools for Windows. In fact so awesome they ended up being bought by Microsoft :D). It's a great tool to see not only Process IDs, CPU usage, RAM usage and executable names, you can also see dependencies (parent/child processes), CPU time, threads, etc. As a very nice feature it can also show little diagrams of resource usage (CPU and I/O ops) as task icons in your task bar next to the system clock! So much better than the built-in task manager! 🙂

Also check out the other tools by Sysinternals. I use Process Explorer and Process Monitor.

8Jun/090

How To Migrate Your Live Windows System To VirtualBox

Hey!

Ever regret that Sun didn't include something like a migration assistant for your live Windows system in VirtualBox?

My method concentrates on these basic steps:

  • Create a backup of your whole system partition
  • Create a new VirtualBox Hard Disk
  • Install Windows onto the VirtualBox Hard Disk to create a function MBR (Master Boot Record)
  • Apply the backup onto your VirtualBox Hard Disk

Done!

What you need:

Process:

    1. Start Acronis TrueImage and create a backup of your whole system partition. For version 2009 doesn't mean System State but My Computer => Disk 1 => C:. Leave Back up sector-by-sector unchecked. Adjust the other settings to your liking and start the backup process.
    2. Go to Tools => Create Bootable Rescue Media and create the image as an ISO file.
    3. Use your File-to-ISO converter or burning software to convert your .tbi backup file to an ISO that you will be able to mount it as a CD/DVD later on. (Reason being that I had problems selecting the right partition to be replaced by the backup when I had two partitions mounted to the virtual machine - the other one included the backup file. Also you won't be able to install the Guest Additions, so you can't mount folders over the VirtualBox shared folders.)
    4. Start VirtualBox and create a new Machine. Choose your current OS and name it as you like.
    5. During the process create a new Boot Hard Disk and give it the same size as your current system partition (maybe less if you know the size will be enough).
    6. Adjust the settings of your new machine and start it.
    7. Mount the Windows installation disc and install Windows. This is so that a proper MBR (Master Boot Record) is created because we will need one in order to boot from the final system.
    8. After the Windows installation (as soon as you see the Windows Start Menu and stuff), mount the Acronis Bootable Rescue Media ISO as a CD/DVD and boot from it.
    9. Select Acronis True Image Home (Full Version) and you'll see the TrueImage program like you did in Windows.
    10. Dismount the current CD/DVD image.
    11. Mount your the ISO with your backup file.
    12. Click on Manage and Restore => Browse for backup... and open the CD/DVD Drive which should have the backup image file right there. If it doesn't, try unmounting and remounting it again.
    13. Right-click on the backup in the list and select Restore.
    14. Select the hard disk (partition) you just created and continue. Make sure that the Restore MBR (Master Boot Recover) / Track 0 checkbox is unchecked.
    15. Let it run through.
    16. Now reboot your machine.
    17. Congratulations! You should have a working copy of your live system in VirtualBox!

      I guess there are a couple of kinks here and there because I didn't actually do it like that (I installed Windows on the virtual machine before I attempted to restore via Acronis Bootable Rescue Media ... yeah, silly me 😀 ) and it was about 3 days ago, so I'm writing off the top of my head.

      Please give me feedback if it worked! (And also if it didn't!) 🙂

      In the case of Windows XP (and probably Vista and 7) because of the major change of hardware (actual drivers replaced by virtual drivers) you will be required to re-activate your Windows copy. XP gives you a maximum of 3 days for that.

      Just thought I'd mention it for clarity's sake 🙂

      Good luck and have fun!

      8Jun/090

      Compiling PHP 5 with IMAP support on SuSE / openSUSE Linux

      If you get the following configure error:

      configure: error: utf8_mime2text() has old signature, but U8T_CANONICAL
      is present. This should not happen. Check config.log for additional
      information.

      It's probably because you're missing either the libc-client-devel package or imap-lib and imap-devel. Fire up yast and install those. You should be good to go now 🙂

      (I have openSUSE 11.0 and it doesn't have the libc-client-devel package, but I read about it on another page and thought I'd add it, just to be safe 🙂 )

      %d bloggers like this: