Software Programming and Cooking

Apart from the incidental choice of word “Cooking” to describe Windows Mobile ROM development process, I found out that recently there is really a great similarity between software programming and cooking.

With cooking, you master the science of key culinary skills, and then with some creativity,  you venture into dishing out different cuisine. I am not a food connoisseur, so you don’t expect me to go into details on this, but you should get the point.


Now, turning over to software programming (oh my, I suddenly feel so at ease), there is alot of similarities. You need to master the fundamental programming techniques, and you exposed into different type of programming; UI programming, Web programming, Data integration programming, Kernel programming .

And yes, recently I had ventured into kernel programming, something I have never imagined in the past. The reality though is that I was just meddling around with the Linux kernel source, thanks to  Opensource.

So I looked at the various kernel source codes published by various xda-developers, each of which addresses different aspect of kernel improvements. I decided to make a kernel that takes the best of all. The end product is one kernel that incorporates sztupy‘s Universal Lagfix, supercurio‘s Voodoo display tweak (Gamma and Sharpness enhancement), raspdeep‘s overclock and undervolt, and hardcore/ykk_five 341MB memory hack.

Universal Lagfix addresses the poor performance  inherent in Samsung’s original RFS-based storage. The fix is about reformatting specific data partitions into Linux ext4 format, and by doing that, you can expect 200-300% of improvement. The applications no longer run with intermittent freezes (caused by the lag in the file system access), and responses are therefore almost instantaneously.

So one would think, with a 200-300% improvement in performance, what is there to optimise further?

Now Samsung Galaxy S comes with 512MB of RAM, as you would expect from a top tier smart phones in the market. The problem with Galaxy S, is that the amount of RAM available for end user, is only 304MB. There are more than 200MB of RAM reserved for the system, such as video, android OS, etc. It didn’t help when Android has a bad habit of loading installed applications and widgets on start up, which means by the time your phone boots up successfully, you would be lucky to have 80MB RAM free for use. Now in Froyo, the memory management is far more robust than Eclair, but still, with a limited amount of free memory, you end up having frequent memory clean up performed by the OS, resulting in unnecessary instability in the system.  Both ykk_five and hardcore researched and figured out the kernel configuration for reserved memory. With some trial and error (as eliminating memory reservation causes problem with certain applications such as video recording or 3G video call), the folks in xda-developers established the optimal memory configuration. The result is 341MB of available memory (as compared to 304MB). That ensures some stability much needed in the Samsung Galaxy S.

And you would think by now; Samsung must have done something wrong if any more tweaks can be uncovered. You bet! The question now is how much have we optimised the  Cortex A8  processor, i.e. the brain of Galaxy S.  When looking at the kernel source code, folks have figured out that there are compiler flags we could use to compile the kernel to take advantage of the A8 Cortex CPU architecture. Not only that, the team has figured that the CPU can be over-clocked, just like how the PC geeks would have done to their desktop processors.  Additionally, the CPU is currently running at a voltage level that can be further tweaked, i.e. reducing the voltage consumption value  for each CPU frequency step. The end result, is a turbo-charged but super “air-cooled” (and efficient)  Galaxy-S. Unfortunately, there is no real tool out there to measure CPU voltage consumption scientifically, so one can only rely on feel (e.g. lower temperature) and experience (battery consumption level). That said, the under-volt tweak is still being refined as we speak, just to determine the optimal level of voltage that is low enough but not at the expense of CPU running reliably at the desired frequency.

The final installment of the tweak is display. supercurio had definitely done far more research than anybody in xda-developers, and probably even in Samsung development team, to improve on the display gamma and sharpness. More explanation can be found in his web-site, so I wouldn’t regurgitate what has already been documented.

And of course, there are some minor tweaks I did along the way, as I touched the source code for the above tweaks. However, these are experimental at this point, it’s probably not smart for me to disclose until I can conclusively determine the value of such tweaks.

Did I mention the code name of the kernel I have customised? Yet Another Optimised Kernel (YA OK!) … So go flash this kernel  if you happen to own a Galaxy S (sorry only for Europe and Asia Galaxy S owners) and want to turbo charge your phone. You will be surprise how buttery smooth your phone is, and it is definitely much faster than the Voodoo’ed Galaxy S I had awhile back.

Here’s a quick video capture of my Galaxy S running on YA OK Kernel. Enjoy.

114 thoughts on “Software Programming and Cooking

  1. My partner and I absolutely love your blog and find nearly all of your post’s to
    be what precisely I’m looking for. Would you offer guest writers to write content in your case?
    I wouldn’t mind creating a post or elaborating on many of the subjects you write with regards to here.
    Again, awesome web log!

  2. I’ll immediately snatch yohr rss feed aas I can not
    to find your e-mail subscription hyperlink or e-newsletter service.
    Do you’ve any? Kindly permit me understaznd in order that I mayy just subscribe.

  3. Hello! I could have sworn I’ve visited your blog before but
    after browsing through many of the posts I realized it’s new to me.
    Anyways, I’m certainly pleased I stumbled upon it and I’ll be book-marking it and checking back frequently!

  4. head soccer hack download says:

    Very seldom these players actually possess a tiny camera placed on it.
    The game isn’t too difficult to find out, as well as
    the amount of choices and random events guarantee that no two games will be alike.
    I was sexually abused like a young girl, by my cousin,
    and I believe the self-esteem issues and confusion that triggered contributed in no small part to my getting into my first marriage, which was alone abusive and dysfunctional.

    Welcome to to see the information of reviews on software, games and top tech products.
    In one example, during an optional mission tree involving undercover operations, the ball player is ordered to destroy a vessel carrying refugees leaving a war zone.

    Just make certain no affect your blood pressure, as this difficulty can be a no-no for a
    fighter pilot. Every child has an impressive inclination towards Play – Stations.
    The game lets you form your individual army, filled with officers, fighting units and reinforcements,
    each represented in form of the trading card.
    This article is going to be devoted towards
    the pros from the Honor System and also the cons in the Token system.
    Buy a rechargeable battery on your wireless gambling operator.
    Fresh from Edinburgh festival, the comedy troupe came up using a wonderful sketch called Wii
    Breakfast. Once a new player has had a particular action, that
    action is not any longer available till the next turn. They add the Merchant Ship that gives you with 2 coins whenever you
    get involved in it, and another 2 coins on your next turn. A big fad in the 60’s
    and 70’s was fondue – both cheese and chocolate.
    The USB receiver module might be plugged directly into the top with the USB port on top from the spool.

    Right now,upin and ipin movies are publish in English,Malaysia,Mandarin ( Chinese ).
    Combat was routinely praised as being the one good
    thing regarding the game. The film has attracted a fantastic quantity of audiences in concert halls,
    now the time has come to get a similar number of viewers in your own home too.

    Sports games, yeah although all of them are just recycled and refurbished copies
    with the original with slightly different controls
    and stats, I enjoy them when having fun with friends.

    This indicates you might need to understand more about how you can result
    in the pastime as enjoyable since it could be.
    Add an actual funky groove by Tie Dying a few old bedsheets with
    bright neon colours. In certain instances a sport could be considerably more difficult, and so, even more fun, in case you go at
    it alone. How often times maybe you have bought a computer game seeing a
    couple of superb video game reviews only to find out that the
    game you’ve acquired actually sucks. The object of Sword
    and Skull is always to defeat the Pirate King,
    either by bribing him with money or besting him in combat,
    as a way to retrieve the queen’s stolen ship. You might have seen similar
    stories before, and may also be in a position to guess how this place
    ends, however it is so well-written that you are guaranteed to
    be thoroughly entertained because you experience this thrilling journey.

  5. Mega mods – Elder Scrolls: Oblivion mods with an incredibly wide scope
    and effect – are often tempting to use as they tend to be
    some of the most prolific mods availaboe on mod websites.
    It is reminisce off Galaga or River Raid in the rail shooter aspect
    but takes on the mechanic in a new way by not giving you anythinng to shoot.
    That is royal modxel with all sort of options
    which can aid you to grow to be No.

  6. empire four kingdoms cheats says:

    Every webmaster is advised to be on red alert
    whenever he sees the tell tale warning signs of seo scam as
    the implication of doing otherwise may be devastating. Such unscrupulous seo service might be reported to
    these channels. Because the red lip is the ideal of entirety,
    it is crucial that one keeps makeup simple. This will be the
    primary nail polish that started the brand. The easy part is that
    you WILL succeed for continous ACTION. You’re not likely
    challenged much and for most of us that is precisely how we like it.
    What is locked in the the mysterious trunk hidden on Kirrin Island.
    The shades of green which might be better yellow are linked to sickness and negative feelings (i.
    So the style is even today a tiny bit distinct
    through the Pro-cut Jersey. Striking, sultry and oh so
    sexy, this screen siren red is less expensive than the usual fiver.

    8%; 1 or 2 months, industrial producer prices rose 5.
    The next useful tool is the Private Browser function. It is
    actually a market research companies who must gather various statistical data about different products or services
    from the large band of people. Because the world wide
    web browser can be so easy to utilize, everyone having a computer for
    the Interenet uses it. Commander’s Challenge is only 800 Microsoft Points ($10.

    s resistance is low as a consequence of fatigue, nutritional deficiencies, or stress.
    If you are capable to work and do anything with a frequent basis, you happen to be
    almost sure to succeed. Breaking and entering was the grounds for termination. With every
    year passing by, if you see the graph of cellphone usage, it’s obvious you’ll see an increase.
    In order for your body to feel safe it needs a consistent availability of nutrients.
    The public and USCDA members who cannot visit help out with all the RIM Fire could play an important
    roll by calling companies large and small to inquire about these to please donate items for
    this major American disaster. Please take this seriously
    , nor just forget about it; do something about it.
    More plus more companies are trying to duplicate some of the same of their office spaces.

    As wit a number of other editing programs, you are able to press ctrl + z to instantly undo any mistakes.
    If going to bars in order to meet people hasn’t worked, then go to some bookstore.

  7. my little pony friendship is magic hack says:

    Unlike other inferior products, the Powered Urine within this kit
    is actual drug-free human urine. gov website and
    click on “File a Complaint Online,” call 1-877-FTC-HELP,
    or write to:. Men didn’t obtain this blind-bind state of being.
    One particular of the most recent improvements in the world on this smartphone
    may be the center charge keep an eye on i – Phone app.
    New York, NY – Al Pizarro as well as the International Hip Hop
    Parade is very happy to announce the 1st parade for
    Hip Hop ever. But the UK remains a nice-looking draw to immigrants, as well as the making-babies business shows no symbol of subsiding.
    If you do not possess a precise answer, it’s likely that your database is full of
    faulty information. A recent poll that ask the question if Anti Aging
    Products are a necessity greater need. John Dugan can be a professional writer who focuses primarily on men’s health issues which
    is a continuing contributing writer to many online web sites.
    It also marks Westwood’s first attempt at a genuine time strategy game in a very modern setting.
    Hemmed in securely by our little bubble of safety where we realize what to prepare for and
    how to act and answer life’s experiences. Research signifies that
    75-90% of doctor visits are due to stress.
    Parents, children and teachers, this will be the hour of decision for your children’s future.
    Teleroboxer – The title to this particular game could’ve easily
    been Robots Boxing in 3D, as well as perhaps that title
    alone could’ve saved the device from an untimley death.
    Unfortunately however, this burning desire fuels the now rampant seo
    scam. This is not at all surprising while he was Gordon Brown’s closest political ally.

    Im not implying that each single time you need to work unless
    you make her cum. Now that you have risen to the rank of Soviet
    Premier inside the first campaign, it’s time for it to see in case you
    can maintain your world safe for peace and democracy by taking control of the allied forces.
    You can decide the classical favorite olive green camouflage print shirts, or you can also
    opt for other unique color variations such as black, blue, khaki,
    and red. Phrases like “red alert” and “code red” signify emergency
    situations as well. What as we try to be aware of what nowadays and era of continuous
    and intense rain might mean within the problem of life on planet earth.
    Planning a wedding abroad is a much challenging, time-consuming and hectic task that does
    not only involves a massive expense but also thorough planning and consistent effort to help
    it become a hit. Be likely to free any prisoners of war that the forces encounter across the way.
    Now which you have learned some rather unimportant trivia in regards
    to the history of one from the most popular live strategy series, you must
    go play one with the games instead. Regular meal times, regular homework time, regular bedtime, regular weekend activities.

  8. racing rivals hack android says:

    You advance through these in order, and the overall
    storyline unfolds as you go. Many people play games in the comfort of their own home.

    You will be able to control privacy and the content your children are exposed to more easily with a console.

  9. 1) The browser settings regarding caching,
    in particular the user can change the default
    browser setting to never use the cache and always
    get the files from the server, this is usually done by developers, and
    thankfully not normally done by the average user. This calls for ultimate vigilance when purchasing your digital camera.

    The PSN keeps on saying that ” May no longer valid.

  10. Hey! I could have sworn I’ve been to this site before but after checking through
    some of the post I realized it’s new to me. Anyhow, I’m definitely
    happy I found it and I’ll be bookmarking and checking back often!

  11. It’s actually a cool and useful piece of info.I am glad that you just shared
    this helpful information with us. Please keep us
    informed like this. Thanks ffor sharing.

  12. Hi there I am so thrilled I found your blog page, I really found you by mistake, while I was searching on Google for something else, Regardless
    I am here now and would just like to say many thanks for
    a marvelous post and a all round entertaining blog (I also love the theme/design), I don’t have time to read it all at the
    minute but I have bookmarked it and also added your RSS feeds, so when I have time I
    will be back to read much more, Please do keep up the
    awesome job.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s