|
              |     Total Hits: 421357 |
    |
|     Past 7 days: 1693 hits |
My babies are back
December 1, 2006 on 11:09 pm | In Miscellaneous, Technology | No CommentsEver since leaving Iraq, there aren’t that many joys left in my life, and one of the main joys I have left here is listening to music.
Don’t get me wrong, I thank God every day for not being in all that mess going on in Iraq now. Still, a heaven without people is no heaven at all (which is a translation of the Iraqi saying “Janna bala awadem matinrad”).
Being a geek, and to some extent an audiophile, good enough audio quality doesn’t cut it for me. Listening to quality audio means I MUST have a sophisticated setup that tries to push the physical limits of reproducing a digital audio signal, but I also have to do that without breaking the bank.
So, a little over two years ago I set myself a budget of $200 (about 150 euros), and spent a couple of months researching and evaluationg my options, and settled on a setup that mainlycomprised of:
• a Creative Sound Blaster Extigy USB sound card to do the actual signal decoding and provide a wide array of digital and analogue signal inputs and outputs,
• and a set of TEAC PowerMax 2000 active 5.1 acoustic speaker system.
To keep my signal clean, and not have half a dozen cables running between my sound card and speakers set, I decided to linkthe two by a fiber optic cable
The sound card was bought refurbished from ebay, and the speakers set was bought on sale brand new from an electronics shop here in Portugal. This setup ended costing me about $180 (~140 euros), which was less than the maximum I set for myself. And if you think about it, it’s not a substantial amount of money if you consider the quality of the audio I am getting, as well as the comprehensible array of inputs I get from this setup. I have available optical and coaxial 5.1 digital surround inputs and outputs, MIDI input and output, mono and stereo mic inputs, stereo headphone output, analogue 5.1 line output, and three selectable sources of 5.1 surround sound input, most of those inputs and outputs have gold plated connectors.
This setup has been serving me very well for about two years, until a little over two months ago, when all of a sudden, my speakers set decided to stop accepting signal from both the optical and coaxial digital inputs it has.
Understandably, I was quite upset by this unfortunate event. My first impulse was to act as a responsible EU resident and comply with the EU regulations which state that every consumer product purchased in the euro zone is covered by at least two years of warranty even if the warranty card included with the product states a shorter warranty term. So, I took my precious babies to the electronics shop where I had purchased them from. Initially, it took the technicians they have at the shop three weeks to reach my same conclusion, that the speakers didn’t accept any sound signal through their digital inputs. However, me and the shop manager disagreed about how to proceed next. They thought that my babies were out of warranty. I, naturally, disagreed, and thought they are still covered by warranty in compliance with the EU regulations. It took another week for them to reach my same conclusion, then three weeks to repair the speakers, then another week to find the speakers remote control which was “lost” the speakers were being repaired.
Today, almost two months after I took the speakers back to the shop where I bought them from, today finally I got my babies back, and now I can go back to enjoying listening to music.
Abd Al-Haleem Hafiz vs. Um Kalthoom
November 30, 2006 on 6:00 pm | In Miscellaneous | No CommentsFor those of you who aren’t familiar with Arab clulture, Abd Al-Haleem and Um Kalthoom are without any argument the two greatest male and female, respectively, arab singers the world has ever seen.
Personally, I listen to Abd Al-Haleem much more than Um Kalthoom. Its not that I like him more than I like her. Its that each of them is a different experience to listen to, conveying a different array of emotions.
Listening to Um Kalthoom is a very serious matter, like sitting in an opera house listening to Mozart’s 40th symphony being played by an orchestra of more than 100 instrument players. Every part of your body goes numb except your ears, which are trying to keep up with all the instrument sounds, and your brain, which is trying to soak in all that range of emotions. Its a very enjoyable experience, yet one you don’t want to go through often, and when you do, it will be with a very serious expression on your face.
Abd Al-Haleem, on the other hand, is a whole different affair. To me, listening to Abd Al-Haleem is like cruising through a valley in a convertible roadster with the top down, surrounded by grapevines on a sunny spring afternoon. It stimulates all your senses. Excites every cell in your body. Its something you go through with an ear to ear smile on your face. Grin like you have found the reason behind life itself.
I think this is why you hear the audience in Um Kalthoom’s concerts suddenly shout “3athama 3ala 3athama” (which translates literally to “greatness upon greatness”), while in Abd Al-Haleem’s concerts you hear them say “mnil 2awal tani” (which is a request to start again from the beginning). The first is great, but the second you can’t get enough of.
Using a PS3 for raw image conversion
November 26, 2006 on 11:39 pm | In Linux, Technology | No CommentsEarlier this year, I did some reading about the IBM-Sony-Toshiba Cell processor architecture, with its eight SPE (Synergistic Processing Elements). Like I said in a previous post, I believe that the Xbox360 tripple core PowerPC processor has more appeal for general purpose applications, but now that I am working on digital image processing applications, the two Cell processors inside Sony’s Play Station 3 console start to look really appealing. There are quite a few reasons why a PS3 would rock if used to carry the heavy procesing required in digital image processing such as raw conversion and photo retouching.
First, such applications lend themselves very well to heavy multithreading since most of the processing is simply running one or more functions iteratively on each pixel, so adapting code to run on the Cell’s SPE units shouldn’t be a complicated task. Second, The fact that each SPE has its own high speed local memory that is accessible and addressable by the softwre running on the main PPE (Power Processor Element) PowerPC core means that the application can quite easily load the image data they want to each of those processing elements.
Now, even with two Cell processors on board the PS3, I doubt the computation power would be anything close to what your average Geforce 7 or ATI 1xxx series graphics card can deliver. However, those SPEs inside the Cell processor should be much easier to program, like I said because each has its own memory that the application running on the PPE core can access and program.
Now that we have Linux running on the PS3, it would be interesting to see someone port, or create things like image processing, audio and/or video transcoding applications that can take advantage of the considerable amount of processing power that all those SPE units have to cut down processing times.
Why am I concerned? Because I started working on an application that allows photographers to adjust raw digital images prior to debayering/demosaicing those images to full RGB. Since then, my work expanded into the raw conversion process itself, where I managed to come with my own debayering algorithm. I am still working on adding support for the various camera makers raw file formats but hope to get the chance to port my code to something like a PlayStation 3 which would allow my application to execute several times faster than any x86 desktop or workstation available today and probably anytime in the next year, if not more.
Then and Now
November 19, 2006 on 11:13 pm | In Miscellaneous | No CommentsI was just watching on CNN a rerun of CNN Presents: Combat Hospital. This documentary is about an ER in the green zone in what used to be Ibin Al-Nafees hospital in Baghdad. The documentary shows a glimpse on how many people are injured or killed each day in Iraq due to roadside bombs and assassinations.
Watching this show reminded me of when my own uncle was injured and lost sight in both eyes as a result of those injuries back in 2004 in a skirmish between a US patrol near his house and some terrorists. It also reminded me of a close friend of mine who lost both his father and uncle this summer, in a car bomb that detonated in front of the small shop they both owned.
Just writing the last paragraph reminds me of over a dozen people I knew who died in some sort of explosion or shot dead by some terrorists.
———-
All this made me think, which is worse, the days under Saddam’s regime, or these days where hundreds of people are dying every day at random.
On the one side, Saddam and his regime were responsible for killing some two million Iraqis over the years (and that is excluding the close to one million who died in the 8 years long war with Iran). It’s almost impossible to actually grasp of how many people died under his regime until you visit those areas of the country that were affected the most. I had the chance to work with the media for a while back in 2004. In one occasion, we went to cover the arrival of the Japanese forces in the southern Iraqi city of Simawa. It was there that I really got to feel how horrible days must have been for those people. It was very hard to find a home or shop where people didn’t have one or more pictures hanged on the wall with a black ribbon on its upper right corner. Those are pictures of members of their families who were killed by the regime.
Three places there really stuck in my mind. One is a mechanic shop where the owner lost two of his brothers, both students in high school. I asked him what happened, and he told me they went out with a few hindered other high school students in a protest against the regime back in 1979. They were arrested by the security forces during the protest, and that was it. The family never heard of them again until 1982 when they were informed that their sons were dead, and prohibited from arranging any funeral ceremonies for them. The father died soon after from a heart attack. The second place was a small grocery shop up the street from the house we lived in while in the small city. Again, the brother of the owner of this small shop lost a brother, who was an engineering student in the University of Diwaneyah. This time, the fellow was “suspected of having ties with malicious parties”. Again, their brother never returned, nor did the family hear anything about what happened to him. The third place was the house we lived in while in the city. The house was rented to us almost empty, but there were some family pictures here and there in a couple of the rooms. When we rented the house, the family whom we dealt with always referred to the house as their cousins. Naturally, after we found the pictures, we asked the cousins about what happened to the owner and his family. We knew from a previous conversation that he was a civil engineer and that his wife worked at the city municipality, so I thought they must have left the country. It turns out that the entire family (including their two kids that looked to be 5 years old at most in those pics we found) was arrested again on “suspicion of having ties with malicious parties” and no one heard anything of them until the fall of the regime in 2003, where their relatives were able to find some papers that stated they died sometime in the mid-80s.
———-
While millions of people died under Saddam’s regime, in terms of security, the country was quite safe. Sure, robberies weren’t that uncommon, especially car robberies. But one could go out well after midnight in his/her car almost anywhere in the country without fearing for their lives. Especially during summer, the streets of Baghdad were never empty, and many cafes and restaurants would be open until sunrise. Back then, the only thing that would stop people from going to work and students from attending classes during week days apart from a holiday would be heavy rain during winter which would cause small floods in some areas of Baghdad.
———-
After the fall of Saddam’s regime in 2003 I, like millions of other Iraqis, felt this was the dawn of a new day. Before the war, the future was very dim, at best, for most of the country’s youth. I was a still studying to get my masters at the time, but before the war, there was really very little I could do to earn a living out of my degree. Leaving the country was not an option at the time because everyone who held a science, engineering, medical, or any post graduate degree was banned from travel. In fact, we couldn’t have passports issued in our names, heck we even couldn’t get graduation papers without a decree from the minister of higher education.
So, naturally we felt that finally things were going to improve for the hundreds of thousands who graduate from university every year. Financially, things did improve. The difference between then and now is like night and day, but at what cost?
———-
Today, from the over a dozen of professors and assistant professors who taught me when I was in university, only two are still in the country. All the others have left. Baghdad University, the largest university in Iraq, and where about 50,000 students attend their classes every day has only 15% of its faculty left. The average class at Baghdad University was about 45 students. Divide that by the number of students who attend the university there has to be at least 1100 professors, assistant professors, and lecturers in order to cover all those classes at any given day. This means that there are over 900 academics that left the country from Baghdad University alone.
I hear a lot of US officials stating in the media that the Iraqi government needs to step up. I ask, how can a government step up in anything when almost all the brains in the country have either fled to elsewhere, or died on the hand of a terrorist or some road side bomb while on their way to work???
A wise guy once said “peace is constructed, not fought for.”
———-
Not to brag, but I had ALOT of friends in high school, and then in university, and I can think of only a small bunch of those who are still in the country. Almost everyone else I know, and almost everyone each of my friends knows has left the country.
No amount of money can rebuild a country if there are none of its sons there to do the rebuilding.
Then again, can anyone blame them for leaving?
When you see so many people dying around you every day, there aren’t that many options to choose from. Keep in mind that there are over 150,000 (that is 50 Iraqis killed for every American killed in Iraq) people who died due to violence since the war according to the most recent estimate by the Iraqi government, and I tend to believe that estimate from what I have seen and heard so far.
———-
And don’t even get me started about the kidnappings…
———-
I am always asked about whether the situation in Iraq was better before the war, or whether things are better now?
I don’t know, you tell me…
On board the USS Enterprise
November 9, 2006 on 10:41 pm | In Miscellaneous | No CommentsToday, I had the chance to visit the legendary nuclear aircraft carrier the USS Enterprise (CVN-65). As if that wasn’t enough, we had the luck to go to the Enterprise on board the carrier’s captain boat!!!

Needless to say, it was a blast. A once in a lifetime experience.

Once on the flight deck, we had the freedom to go around and take pictures of anything and everything on the deck. I took plenty of pictures of my favorite aircraft, the Lokheed S-3 Viking. I also got to take plenty of pics for F/A-18 Super Hornets, the smaller F/A-18 Hornets, upgraded Grumman E-2C Hawkeyes (all of which are of the Group III/NP2000 variant, identified by its scimitar 8-blade props), the beautiful Grumman EA-6B Prowler, and the Sikorsky SH-60 Seahawk (the Navy version of the Blackhawk). In total, there are 66 aircrafts onboard the Enterprise (as noted by its captain and several officers onboard the ship).
The entire album of the pics I took on board the USS Enterprise can be viewed at http://iraqigeek.com/images/ and click on the USS Enterprise album on the left panel.

UPDATE: The captain told us there were 66 aircrafts in total on board the ship. However, I was able to count 62 aircraft only. I was able to count 43 (8 in the hanger deck and 35 in the flight deck) F/A-18 Hornets and Super Hornets (mostly Hornets), six (6) S-3B Vikings, 4 E-2C Hawkeyes (all are Group-III upgraded planes), four (4) EA-6B Prowlers, and five (5) SH-60 Seahawks.
EDIT: Due to the actions of a retarded, sick person who is so full of his own crap, I had to remove a picture of myself, my sister and Captin Lawrence Rice, the captain of the USS Enterprise. A picture I was quite proud of.
Qana Massacre
August 27, 2006 on 12:23 am | In Miscellaneous | No CommentsNOTE: I wrote this post on July 30, a few days after the second Qana Massacre in Lebanon, but didn’t publish it on the site.
In the past, I have made it a point not to post about political issues on the main page of my blog. This was the main reason why I created the forums section. Well, its my blog, so I might as well change and/or break the rules whenever I feel ike it.
So, I have been trying to keep my mouth shut for the past 19 days in regards to the Israeli-Lebanon/Hizbullah, but things have reached a point where I cant just keep quiet anymore.
Yesterday, the Israeli “self defence” forces “mistakenly” bombed the village of Qana in southern lebanon killing 54 civilians, including 37 children and there are still dozens of bodies still burried under the rubble. This morning, we had Israeli officials appearing all over the place calling this “an unfortunate accident” which really makes you wonder, how many “unfortunate accidents” have to happen before anyone with a semifunctional brain starts to call them by their real names, “war crimes”???
How many times during the past 19 days the so called “defense forces” have bomabrded facilities that had no relation what so ever to Hizbullah? We had a Red Cross humanitarian convoy, carrying Red Cross markings, that carried medical supplies hit by an air strike on its way to Beirut. We had dozens of civilan cars and mini-busses full of innocent people fleeing the south of Lebanon hit by Israeli missiles fired from Israeli jet fighters, all while the IDF was calling on civilians to flee the south of Lebanon. We had the two Red Cross ambulance cars, again carrying Red Cross markings, hit by a missile from an Israeli fighter. Just a few days ago, we had the UN watch post in southern lebanon that was there in the same location for two decades, if not more, and had clear UN markings, which recieved 10 hours of artillery shells before being grounded and its UN peace keepers killed, all while the “defense forces” were assuring the UN secretary general that the shells would stop falling instantly, and that those shells already fired were fired at the post by mistake. And yesterday, we had another massacre in Qana, the same village where Israel killed over 100 civilians who were taking refuge in a UN shelter back in 1996.
It was amusing, in a very sad way, to watch the Israeli spokeswoman on CNN this morning talking about how the IDF was “surgically pinpointing hizbullah’s positions” in southern Lebanon using high precision guided bombs and then calling the Qana massacre an “unfortunate incident”. The spokeswoman went as far as saying that Hizbullah was responsible for this “incident” because it used the Qana region to lunch missiles on Israel. This really makes me wonder whether it was just another “unfortunate incident” or whether its a deliberate policy to flattern the entire area where IDF suspects Hizbullah activity?
Just last week, the Israeli government was bragging about how accurate their attaacks where, and how they had 3D models of the entire southern Lebanon including virtually every building that existed there. The IDF was bragging in the media on a daily basis by distributing videos taken by Israeli spy drones and fighters showing the accuracy of those attacks, and how they only targetted Hizbullah’s bases and missile launchers. Almost 24 hours after the Qana attack, the entire world is still waiting for a video that shows any rocket launchers near the residential building in Qana that was bombed yesterday, despite the insistance by the Israeli ambassador to the UN today that hizbullah was firing rocekts into Israel from an area nearby that building.
Another statement that the Israeli UN ambassador kept repeating today was that hizbullah was hiding rockets in the homes of civilian Lebanese people despite the fact that no one was able to find any evidence that would support such a claim, not the hundereds Red Cross members in Lebanon, nor the hundereds of members of the press and media who are currently in Lebanon and touring each and every site bombed by the Israeli military.
Its also very iteresting for me to watch how the US is blindly standing behind Israel in this conflict and turning a blind eye to the hundereds of civilians that are dying in Lebanon. I was just watching the CBS evening news, and there was one comment about the current conflict between Israel and hizbullah that really caught my eye. The CBS commentator (I didn’t pay attention to who was reading the news broadcast as I was checking my email) said that the number of people killed today in the Qana shelter bombing exceeds the number of both Israeli civilians and military killed since the starting of the current conflict.
I wonder how many people in the US who were watching tis broadcast took any note of this comment? And how many people will have to die until this nonsense stops???
EDIT: The conflict has stopped since I wrote this post. While the Israeli government was bragging in the first days after the cease fire about their triumph in this conflict, the few following days revealed the total opposite on the ground. On the last day of this latest conflict, over 300 rockets were fired by hizbullah on Israel, the largest number of rockets ever fired by Hizbullah in a single day. And if this isn’t enough to convince you that hizbullah gained a hell lot on the ground after this latest conflict, just take a look at what are they doing now in Lebanon, while the entire “international community” is sitting doing almost nothing, or drawning whatever is that they want to do in tons of bureaucratic work. Its true that the US has pledged $250M to aid in reconstruucting Lebanon, but it will be weeks, if not months until this money reaches the average Lebanese whose house was brought to the ground by an American made, fired by an Israeli F16 which was again made in the US-of-A, Laser guided precision bomb. All this while hizbullah is literally giving away tens of thousands of US dollars to those same victims so they could repair their homes (if there was any repairable thing left) or buying the rubbles of their homes for whatever is they were worth back when those homes were new.
Yeah, this was a huge success for Israel, because now everyone in Lebanon hates hizbullah for paying them back for whatever they lost due to the “precision strikes” carried the Israeli “Defense Forces”.
Am-freakin-azing….
Howto: Laptop Keyboard Repair
July 19, 2006 on 4:32 pm | In How-To | 53 CommentsAs most of you already know, not all notebook keyboards are made the same, and the keyboard you get when buying one of those “budget notebooks” isn’t always a high durability keyboard, especially if you are a heavy typist.
So, I got an Averatec 3250 which had a few keys that died after about two years of usage. After looking on eBay for a replacement keyboard, I decided that I wasn’t going to pay $60-80 for a used replacement keyboard and overpriced shipping, since I lived in Europe. So, I set myself on a quest to find a way to repair the keyboard I already had.
After disassembling the defective keyboard, I noticed that the silicon membranes that provided the support for each key where independent, unlike their desktop counterparts, where there is usually one big membrane covering the entire keyboard.


So, I thought maybe I could use the membrane of one of those slim desktop keyboards that are cheaply available everywhere. I found a cheap Labtec keyboard that I got for 15 Euros.

The first thing to do after getting your brand new slim keyboard is take it apart

The hardest part was taking apart the metal plate that held the silicone membrane to the plastic frame that formed the backbone of the keyboard. The backplate was attached to the plastic frame through many plastic pins coming from the back of the frame through the silicone membrane and the backplate. The ends of those pins are melted flat so they hold the backplate firmly in place. After cutting the flattened tips of those plastic pins where cut with a paper cutter.



Now that we got our silicone membrane, its time to start repairing our notebook keyboard.
Now I forgot to take pics of this step, but its quite easy. Just peal off the remains of the silicon cup from the defective key of the notebook keyboard.
Next, cut one key cup from the new keyboard’s membrane with your favorite cutting tool


As you can see in the close up, the new cup has a rather long neck when compared to the neck of the cups of the notebook keyboard. Cut the neck with your favorite scissors to the appropriate length

Next, cut the excess silicone around the cup to have a nice small round cup

This next part is a bit delicate, as you may break the bracket that holds the key to the keyboard. Just be gentle when doing this, and all should be fine. First, if you haven’t done so already, get yourself a tweezers with a fine tip, and use it to raise the key bracket and have a good look at it, to get an idea of how the bracket is attached to the keyboard frame.

To take out the bracket without breaking it, first insert the tweezers on one of the sides of the bracket, between the two pieces of the bracket as shown in the image, and tilt sidewise

Next, repeat the same move on the other side of the inner piece of the bracket

And, if you didn’t use excessive force, you should have released the inner piece of the bracket

Now, using the tweezers again, push the side pin of the inner piece under the outer piece of the bracket

And then push the other side pin, so the inner bracket piece is under the outer piece

After that, you should be able to take the bracket pieces from the keyboard. you may need to twist one of the pieces to release the pins that attach it to the keyboard


Now, take the silicone cup we have previously prepared, hold it upside down with your hand, apply some super glue to the underside edges of the cup (be careful not to flood the cup), and place it carefully centered in place of the old cup.

Let the cup sit for a few minutes without any movement so the super glue cures. After about 10-15 minutes, start reassembling the bracket.
First step in reassembling the bracket is to re-attach the outer piece of the bracket to the keyboard frame. Hold the bracket piece in your hand perpendicular to the keyboard, and gently push it back until its pins are inserted into the keyboard frame.
Next, lift up the re-attached outer bracket piece so its perpendicular to the keyboard frame with one hand, and insert the pin of one side of the inner piece in its place with the other hand (in the picture I am using the tweezers to better show how its inserted from the under side of the outer piece)

Then, using your hand, and probably with the help of the tweezers in the other hand, to slide back in place the attachment of the inner piece to the keyboard frame


Finally, using the same move we used to release the pins that connect the inner piece to the outer piece of the bracket, only in the other direction, to get the second pin back in.

That’s it!!! you just replaced the silicone cup of one key with a new one. Repeat this procedure for each defective key that you want to repair.
EDIT: There are some people who are doubting the usefulness of such a repair stating that if you already have some of the keys failing, then chances are that the entire keyboard is worn out. While I can’t comment on the general condition of the keyboard you might try to repair, I’ll state a simple statistical fact. If you type in English most of the time, then around 20% of your keystrokes will be the A and E letters. Thats 1 in every 5 keystrokes. The same rationale applies if you type in any other language, including programming languages.
Photo Album
May 6, 2006 on 3:53 pm | In Announcements | No CommentsI added a photo album section to the site. The first batch of photos that made it online are some photos I took the past weekend of the Lisbon International Motor Show. I want to add some additional pics I took a few weeks back at a private BMW event where I got the chance to get into and play with an armored X5, a Z4, and an awsome 760Li.
At the motor show, there were some amazing cars from Mazeratti, Ferrari, Audi, Mercedes, Ford, Lamborghini, Proche, Nissan (most notably their Terranaut SUV), Mazda, and many others. There were two Formula 1 cars from Honda and Renault too. The only major car maker (read – maker that I care to see) missing was BMW.
To see the pics I took at the Lisbon Car Show, click HERE.
Stay tuned…
More rants about multicore processors
March 28, 2006 on 5:36 am | In Technology | No CommentsWith dual core processors widely available at your average electronics shop, and quad core models not so far on the horizon, schedualed for release in 2007 by both Intel and AMD, its only a matter of time before we see even higher levels of integration, with eight or more cores integrated into one physical processor package.
However, while the move to dual core was more of a manufacturing probelm, having mostly to do with getting enough yields to justify production, the move beyond 4 cores will be a design challange in finding a way to let all those cores communicate effectively with each other, and with the reminder of the system without requiring an overwhelming amount of resources.
So, how could a processor designer manage to integrate say 16 cores into one package without an overwhelming amount of circuitry to glue those cores together?
One way would be to use a layered approach. To get a hold of this approach, first lets assume that quad-core processors would expand on the same methology used to connect dual-core processors, aka, using a crossbar to let both cores talk to each other, and to the reminder of the system. Taking the crossbar beyond four cores would be a very big design problem, as it would need to provide tremendous amounts of bandwidth.
Here is where the layered approach kicks in by borrowing an interconnect architecture that would devide those 16 cores into groups, with each group having a super fast interconnect, like the crossbar, and then glueing those groups together by a relatively slower interconnect, something like a Hyper Transport interconnect on steroids.
For example, in a 16 core model, we would have four groups of four cores each. Each quad-core group would connect as usual through the crossbar, and then the crossbars of the four quad groups would talk to ech other and the outside world through a simpler, relatively slower interconnect.
For such an approach to succeed there have to be some considerations at both the hardware and software levels. At the hardware level, each core would preferably have its own caches, or if the design permits, each group of cores shares one large cache (similar to Intel’s approach with the Pentium-M). This per-core, or per-group cache, would greatly minimize the amount of traffic between the groups, and the reminder of the system. In a multi socket setup, a shared bus would never work, as there would be a tremendous amount of load on the memory controller, plus all the traffic that would need to go between the cores. A setup similar to what AMD did with their Opteron line would be highly successful, having each physical processor have its own memory controller, and having a point-to-point topology connecting the physical processors around the system.
One addition at the hardware level that would greatly help at the software level in interprocess communication would be the addition of a number of small buffers, say four buffers of 4-8KB each per core that act as a very high speed shared memory that is addressable, and accessible to all the cores around the system. Of course, the OS would be responsible of assigning who could access those buffers. Such high speed buffers would eliminate the need of using a shared memory area in RAM for interprocess communication.
At the software level, which would perhaps have a greater impact on how such an arrangement performs, there will have to be some changes in the way the operating system deals with each core in an SMP system. First, the OS will need be aware about this layered approach and distribute the processes/threads at hand accordingly. At the most basic level, which is not something new, the OS will try its best to keep each process/thread on the same processor. In a system that has a large number of cores, this would substantially increase cache hits, as there would be far less context switches on each core. Then, if dealing with a multi-threaded application, the OS should try to keep the threads within the same group of cores, as those cores have the highest amount of bandwidth available interconnecting them. If there are more threads than the cores in each group, and all of those threads are fully loading the group of cores, then the OS would allocate more cores for this application within the same package. Only when the given application has such a high number of processes/threads that are more than all the cores on the package/socket can handle, that the OS would consider running those extra threads/processes accross multiple physical processors. In short, at the software level, its all about affinity.
Of course, if we are talking about 16 full fledged cores per processor package, the OS would have a lot more flexibility in shcedualing and assigning processes/threads to a certain core. The less processes/threads are assigned to each core, the less context switches that would have to be carried, also minimizing the need for large caches.
In the end, while such a layered solution for integrating a large number of cores into a single processor package would require a considerable amount of hardawre redesign, and software changes at the OS level, there is very little change at the application level, and doesnt break backward compatibility with older applications, while enabling substantial performance improvements for applications that are coded with the system design and features in mind.
MSNTV in europe
February 25, 2006 on 3:48 am | In Announcements | No CommentsIf anyone wants to get one or more MSNTV 2 devices (RM4100), or any other item from the US for that matter, in Europe, I can arrange to import them. For more detailed info Email me.
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
Free website monitoring service