Sunday, December 18, 2011

Richard Heinberg’s The End of Growth


I recently finished Richard Heinberg’s new book The End of Growth, and much like books I’ve read by famed environmentalist Lester Brown, the book warns of scary times ahead if we continue on the path of business as usual. An underlying theme throughout the book is that the economic growth that developed nations have enjoyed over the past decades has been possible only because of the abundance and availability of cheap energy; specifically oil. While traditional economists and government officials operate as if growth will last forever, it is a hard fact that our natural resources are finite, yet we act as if we can grow forever.

Heinberg takes us through an overview of the 2008 economic collapse and the various factors he believes were involved. He went on to discuss why he believes that the 2008 crash marked the end of growth for the global economy. He states:
"From now on, only relative growth is possible: the global economy is playing a zero-sum game with an ever shrinking pot to be divided among the winners"
US oil production peaked in the 1970s and world oil production is in the midst of its peak. While this doesn’t mean that our oil supplies are running dry, it does mean that the remaining oil available will become increasingly difficult to extract, driving up costs; we’ve essentially extracted all the easy to get to stuff. This is already happening in Canada’s tar sands and the extraction of shale oil throughout the US by way fracking. These are extremely expensive operations and provide a very low EROI (Energy Returned on Energy Invested), which means that the amount of energy expended to obtain and produce the fuel is not much less than the energy derived from it.

According to Heinberg, our options for alternative energies are not capable of providing the same quantity of energy that fossil fuels do today. Based on a study conducted of EROIs of most available energy options, he states that
“The overwhelming likelihood is that, by 2100, global society will have less energy available for economic purposes, not more.”
This is a difficult idea to swallow, and one that I’m sure the majority of people will reject. Optimism, hubris, fear, and lack of imagination of what a post oil world could look like all play a part in this rejection.

While I believe some big changes are needed for our society in the way of sustainability, I do hold out some hope that we’ll establish an energy technology that will replace oil. Heinberg is right that existing alternative energy solutions won’t cover our energy demands. But I have to think that there is some promise that advancements in existing technologies such as wind and solar will increase the EROI and get us closer. Other theoretical technologies could produce significant quantities of energy, although the potential EROI is unknown. For example, a seemingly far-fetched idea is that of a space-based solar collector that will beam down energy in the form of a microwave beam. While not a viable solution today, these science fiction ideas may represent our only shot at replacing the enormous energy potential of oil.

Heinberg’s The End of Growth is more than just pointing out problems. He provides ideas for preparing for, adjusting to, and living in a post-growth world. His vision of this world is a slower-paced, low energy, sustainably focused world where people live in tight-knit communities.

A concept known as a Transition Town, started in the English city of Totnes, brings together the local community to plan for and adapt to a world without oil in preparation for the decline of the fossil fuel. Other groups embodying these ideas have taken flight in what are known as resilience circles, or common security clubs. Additionally, communities have adopted their own currencies to distance themselves from the ups and downs of the economy. BerkShares is an alternative local currency in us in the Berkshire region of Massachusetts.

Our society clearly needs to come to terms with the fact that global growth cannot last forever. With finite resources, this is a hard fact. I’m glad to hear that some are experimenting with post-oil living, as the lessons they learn will be useful to us all when that day comes. In the meantime, we should be focusing our efforts on high EROI sustainable energy solutions that can carry our civilization into the future. If we wait until oil is scarce, there may not be enough energy available for development of replacement technologies.

http://en.wikipedia.org/wiki/Space-based_solar_power
http://localcircles.org/
http://www.berkshares.org/
http://www.transitiontowntotnes.org/home

Saturday, November 19, 2011

My Sustainable Decisions

I've decided that along with my thoughts and comments on various environment and sustainability related issues, I will also share the steps I am taking to make my life more sustainable. I don't intend to use this as a venue to toot my own horn about being sustainable, but as a way of sharing my ideas, successes, and difficulties with my audience. Changing my ways to live a more sustainable life is difficult, and I've got a long way to go. But I'm getting started.

I recently watched the movie Food, Inc.  for the first time. Being an environmentalist, some friends were shocked that I hadn't yet seen it. I dialed it up through my Netflix on demand and was not all that surprised by what I learned. I already knew most of these facts about industrial agriculture, concentrated animal feedlots (CAFOs), antibiotic treatments, hormones, bacterial contamination, and animal abuse. What I found great about Food, Inc. was the way in which they were all put together and presented to the viewer. It's much harder to divorce yourself from a problem you can't see, and this documentary shows the real truth of our industrial food system in a way that likely hadn't been done since Upton Sinclair's The Jungle.

The movie got me thinking about my own food choices. For the longest time, I never thought about my meat purchases; I always picked what was on sale or the cheapest. After moving to Boston we began shopping at Shaw's and for the most part, I would buy the Wild Harvest meats. Their chicken and pork were really the only two products we would purchase since my wife and I tend not to eat red meat. Wild Harvest claims to not use antibiotics at any point during the life of the animal. However, about a year ago, we decided that we preferred Trader Joe's to Shaw's and began shopping there. I have to admit, Trader Joe's has the appearance of offering more organic and healthy foods, but I've still been questioning it. Admittedly, I haven't spend an enormous amount of time trying to discover where Trader Joe's sources it's meat, but the fact that I can't find it has made me cautious. After watching Food, Inc., I think I'd like an alternative.

I did some research and found some relatively local farms here in Massachusetts who have vegetable and meat CSAs (Community Supported Agriculture). The best part is that some of them are pasture-raised meats. This means that the animals are allowed to be animals and live normal animal lives, eating normal animal food before they are dispatched, delivered, cooked, and eaten. There is no corn feeding or hormone additives to speed up the growth of the animals. They do not travel through the industrial food system and therefore are safer than traditional supermarket animals.

I'm excited about this, but rather than jump straight into it, I've decided to try it out first. I've ordered a pasture-raised turkey from John Crow Farm in Groton, Massachusetts for Thanksgiving. I'm especially looking forward to it after reading this in their email to about my order
PLEASE DO NOT ASK TO RECEIVE YOUR TURKEY SOONER...turkeys will be culled on Tuesday, then iced over night, bagged and weighed and named on Wednesday and trucked to the city to you.
This will be the freshest turkey I've ever had! I'm excited for the peace of mind that it will bring, knowing that there are no chemicals, hormones, or antibiotics that I'm feeding my family. Admittedly, I'm paying a premium for this turkey. My 12lb turkey is going to cost  $50-$60, which is much higher than its store-bought counterpart. I could get a non-frozen Jennie-O turkey at Shaw's for only $12. However, I'm not paying much more than the options at Whole Foods, who sell a few free-range organic 12lb turkey for $35, or another free-range option for $55; both are raised in Pennsylvania. I could simply make the trip to Whole Foods and get a high quality turkey. However, buying local and having a farm that I know and can visit has a huge appeal for me.
Hopefully the pickup, payment, and quality will be great. If so, its likely that I'll sign up for one of the CSAs that John Crow Farm provides and localize my meat source.

Tuesday, November 15, 2011

Fracking is not the Solution

Lately, in the news and in countless commercials, you can't hide from news and advertisements about fracking. Fracking, or hydraulic fracturing is a process used to extract natural gas trapped deep in the earth. Industry claims it's a safe process, such as in this short commercial from Exxon Mobil who seems to be leading the marketing campaign in favor of this practice.

Any search on YouTube for "fracking" will yield countless results for Exxon Mobil commercials about how safe and necessary fracking is. However, there is another side to the story, which has been getting more and more attention in the news. Exxon claims in this commercial that the fracking operation takes place so far underground and below the water table, that its there is no chance of gas or fracking chemicals finding their way into aquifers. We see in this news clip out of Colorado that this is not the case. This is just one of many clips of people in gas development and expoloration areas who are able to light their water on fire. 


A few days ago, the EPA released water test results from an aquifer in Pavillion, Wyoming. After years of complaints of foul tasting water by residents, the water has now been shown to contain cancer causing chemicals. According to this article by ProPublica, the natural gas wells in the area "[have] caused their water to turn black and smell like gasoline." These findings are in direct contradiction with the propaganda being published by the oil and gas industry. The problem is that they aren't as mainstream as Exxon's television commercials.
My point in this post is that we need to stop putting blind trust in these corporations who are claiming fracking is safe. They have a financial stake in us believing that is the case. We can clearly see that there are risks and that people are being negatively affected by it. Natural gas is being billed as the clean alternative to oil. Don't let yourself get sold on this idea; as you can see, there is nothing clean about it.


Thursday, February 10, 2011

World on the Edge

Lester Brown spoke at the Cambridge Forum this week to what I thought was a surprisingly small crowd. The audience of one hundred fifty or so gathered to hear Brown speak about his latest book World on the Edge and related environmental topics. Having enjoyed one of Brown's other releases, Plan B 4.0, I had been looking forward hearing directly from one of the world's most prolific and influential environmental writers, and most famous Malthusian.

The lecture, which very closely followed World on the Edge, was reminiscent of a Hollywood disaster film. Food shortages are already happening on a small scale, with a great worldwide food bubble on the horizon that promises to dramatically reduce food supplies and drive prices to never before seen highs. World population is increasing at an unsustainable pace. Water tables are dropping at a rate never before experienced. Fossil aquifers are being depleted, as in the case of Saudi Arabia. Countries will begin to cease exporting grain in order to meet their own needs. Wars will soon break out over water and food. According to Brown, the world is very much on the edge.

Brown may have taken a cue from the fire and brimstone sermons of Jonathan Edwards (not in delivery style, but in content) when crafting his lecture. Without swift action he foresees the near-term collapse of civilization. The magnitude and urgency of change we must undergo will require more than simply increasing personal recycling habits. Brown believes it will take a mobilization much like that which occurred at the onset of the US's involvement in WWII when factories of all kinds were converted to produce necessities for the war such as planes, tanks, and guns. He states that if we can swiftly manufacture enough alternative energy solutions to eliminate the need for fossil fuels, we stand a chance of saving our current way of life.

I tend to agree with most of what Brown is saying. Our economic engine is driving development at a rate in which our natural resources cannot replenish themselves. However, Brown, like Malthus and all who have followed him since, play a specific role in society. They are the one's issuing the dire warnings, laying out the "doom and gloom" scenarios, and questioning deeply rooted cultural and economic practices and habits. While much of what Brown predicts may not come to fruition, it is essential to have him and others like him analyzing current trends, questioning beliefs, and most importantly, suggesting realistic solutions.

Lester Brown plays this role perfectly. Founding the Worldwatch Institute in 1974, the group continues to publish an annual State of the World report which highlights trends and problems that need immediate attention. Currently working out of the Earth Policy Institute, an organization he also founded, his writing points out flaws in "business as usual" and provides suggested solutions to many of the world's problems. Raising gasoline prices to cover its true cost to society, swiftly mobilizing factories to build alternative energy solutions, and restructuring the US tax code to penalize fossil fuel use are a few of his key proposals.

Regardless of one's stance on the environmental and economic issues Brown discusses, he deserves much credit for tirelessly fighting, over more than three decades, for a shift to sustainability. For the sake of future generations, I hope that he turns out to be wrong. But I'd prefer to see the world proceed cautiously before its too late.

Saturday, January 29, 2011

2011 New England Database Summit

2011 was the second year in a row I’ve attended the New England Database Summit at MIT. This year’s conference included speakers from Vertica, Greenplum, SciDB, NimbusDB, ETH Zurich, University of Toronto, Harvard, and MIT. Two keynotes anchored the eleven other twenty minute presentations.

The Morning Keynote, titled Predictable Performance for Unpredictable Workloads was presented by Donald Kossman, a professor of Computer Science at ETH Zurich (Switzerland). Kossman presented a layered database system he is developing in cooperation primarily with Amadeus, a software firm specializing in airline reservation software. The goal of Kossman’s project, as you may have guessed from the title of his talk, is to achieve predictable performance. To achieve this, the traditional ACID notion was thrown out. ACID brings with it too many hang-ups, and Kossman claimed that the transactional work will be done in the application layer. Additionally, they shied away from a traditional RDBMS because of its unpredictable nature. Some queries may execute in a few milliseconds, while others in many seconds.

Enter Crescando. Crescando is a distributed relational table implementation utilizing a single horizontally partitioned table. The system is designed to scan. Constantly. It actually scans the entire dataset once a second. While a traditional RDBMS approach creates an individual query plan for every query, Crescando takes all the queries that occur each second and batches them together. It then runs those queries against the data gathered by the most recent scan, and returns the appropriate data; all in one second. Indexes are then created or updated using those batches. However, unlike traditional systems, the indexes are built on the queries, not the data.

This approach does result in a poor minimum response time, but it achieves a predictable response time that Kossman has deemed “good enough”, and meets his SLAs. I found this to be an interesting concept and one that makes sense for certain problem domains. A clear downside is the high energy use and the likely shorter life of CPUs and disks as they receive no downtime. An intriguing quote by Kossman was one that prompted the project: “how can you index the data if you don’t know what all the queries will be?” It’s a good question, and although representative query sets are great for index tuning SQL Server, they don’t provide the predictability demonstrated by Crescando.

Kossman’s team took this idea further with a concept called SharedDB. This is the implementation of query joins built on Crescando. Each second, as the queries are batched, a group of join conditions are collected from the queries. All of the joins are then performed, and then applied to that batch’s queries. Kossman claims to be able to do 4000 joins at once.

Lastly, Kossman talked about a system called SwissBox that is still conceptual at this point. It uses a homegrown OS called Barrelfish utilizing a multi-kernel architecture. The team will run Crescando on these multi-core boxes. Their distribution layer helps route their transactions to the instances of Crescando, which generally communicates with all cores on all boxes each second. The concept aims to achieve radically simplified data flow architecture without traditional indexes. Merge db and application server layers will be used as an intermediate layer to “shape the workload” before it hits the database, rather than just let the workload hit the db server. In summary, SwissBox would be a new way to process queries, provide massive parallelization and predictable performance along with massive sharing of scans and query processing. It won’t be optimal for all applications as it subscribes to the principle of “Good Enough”.
http://www.amadeus.com/
http://www.ecc.ethz.ch/research/largescalemainmemorydb
http://www.cidrdb.org/cidr2011/Papers/CIDR11_Paper4.pdf

I didn’t find the second keynote nearly as impressive and innovate as the first. Perhaps it was the post lunch food coma, but RenĂ©e Millers talk, On Schema Discovery, was not something I related to very well. It was a very detailed, yet dry, presentation of methods to auto-magically learn about relationships within a dataset. The work she’s done at the University of Toronto uses the data in a dataset to glean this information. It also can determine if there are errors with either the data and/or the existing constraints and can attempt to resolve them. She then moved on to a data clustering technique called LIMBO (scaLable InforMation Bottleneck) to cluster categorical data. This clustering technique is one of the underlying technologies used in her schema discovery. A great question was asked by an audience member regarding auto-discovery of functional dependencies given no prior knowledge and a not necessarily organized set of data. Miller’s group isn’t working on this, and couldn’t really talk much about it, but I found this to be a fascinating concept that I think may become an important field in the near future.
http://dblab.cs.toronto.edu/project/CIDAQ/
http://dblab.cs.toronto.edu/project/limbo/

Margo Seltzer, from Harvard, presented Provenance Everywhere, in which she talked about her project at the OS level to provide a complete history of files on a computer. During her energetic talk, she pointed out the importance of provenance in our everyday lives, but especially when it comes to data. An example of a provenance disconnect we currently have is that users who unwittingly download virus files have no way of knowing from where the file was obtained. The browser has a history of the website, but it is not tied to the file on the user’s computer. Seltzer’s work is a project that would allow for communication between applications and the OS, providing a complete history of a file on the computer. With her system, you would be able to see where and when you downloaded the virus file, and even look into that web browser session and see if there were any other files downloaded from that same harmful site. This was a great talk and posed some thought provoking questions.
http://www.cs.cornell.edu/~jnfoster/papers/onward-provenance.pdf

CryptDB: A Practical Encrypted Relational DBMS was an interesting project presented by Raluca Ada Popa. The projects goal is to allow un-trusted sources to query an encrypted db. CryptDB is actually a client frontend that resides in front of the existing db server which handles all the data going in and out of the db. All of the data in the db is stored as encrypted data, and through different layers of protection, it actually executes most queries without decrypting the underlying data. Data is only decrypted when it is presented to the user after passing back through the CryptDB front end. A downside of the added security provided by CryptDB is performance. Tests conducted by the project team showed a twenty seven percent performance degradation.

IFDB: Database Support for Decentralized Information Flow Control was a second security based presentation. David Shultz discussed this system, located between web apps and the client, that filters data before it is released to the user. IFDB operates by storing groups of tags called labels in every row. These labels act as access control; the labels of each row define what data can be seen by a given query, which posses their own labels based on the logged in user. Inserts posed problems that were handled using poly-instantiation. If a user attempts to add a duplicate record and does not have access to the original, a duplicate error record would give away the fact that the record exists, which in some cases would be a breach of confidential information. Instead, IFDB allows duplicate records to be inserted. Personally, this sounds like a risky proposition that could cause significant data consistency errors in the system.

Emmanuel Cecchet presented Dolly: Virtualization-driven Database Provisioning for the Cloud. Dolly allows the addition of db server replicas through cloning rather than a backup/restore. The user provides the number of replicas they believe will be needed, when they’re needed, and what the workload will look like. Dolly does prediction to determine when would be best to perform cloning. One of the major benefits of Dolly is that it allows the system to scale only when needed, avoiding over-provisioning; saving money.
http://lass.cs.umass.edu/papers/pdf/dolly-vee11.pdf

Jim Starkey, famed Database Architect spoke about his new startup in Databases in 21st Century: NimbusDB and the Cloud. As the talk’s title implies, NimbusDB is a cloud based database solution. The majority of database engineers believe that ACID transactions are impossible in the cloud. Starkey claims to have come up with a solution; he’s a firm believer in atomicity. Overall, this was a poor presentation, full of all new terms they’ve come up with, leading to a somewhat confusing and simultaneously vague overview. It would have been great to see some real examples of the technology, as the goals and highlights of it sound very promising.
http://www.nimbusdb.com/
http://www.firebirdsql.org/doc/whitepapers/fb_vs_ibm_vs_oracle.htm

Adam Marcus presented what turned out to be an optimization for Amazon.com’s MechanicalTurk system called Qurk: A Query Processor for Human Operators. MechanicalTurk is a platform for human intelligence tasks that allows people to pay small amounts for work as simple as data entry or photo identification. Qurk is software that helps a user to interface with MechanicalTurk through user defined functions in a database. These UDFs help export the data in a format to increase efficiency or accuracy, or decrease cost.
http://www.mit.edu/~eugenewu/files/papers/qurk-cidr11.pdf

Robert Soule’s talk Distributed CQL Made Easy, turned out not to really be a database solution. In his view, stream computing should be handled through a “language solution”, not a database solution. His language solution is an intermediate language he calls River. Streaming SQL, written in CQL, is converted to a language River can use. His goal is to create a language for stream computing that is application and platform agnostic.
http://cs.nyu.edu/brooklet/

Paul Brown spoke next about his project, SciDB in SciDB: Towards a Terabyte Matrix Multiply . Paul was the only speaker this year that is recurring from last year. His talk last year was also about SciDb, which I found very interesting. Last year, this database system had not yet been released, but this array based, massively parallel, open source database system is now available for download. He used the talk to challenge the audience to come up with the solution to quickly transpose a 1T square matrix. Right now on 1 gigaflop machine, it will take about 500 days. He’s hoping the community can help SciDB to make progress on this front.

http://www.scidb.org/

Using Learning Models for Query Performance Prediction. Created a learning based Query Performance Prediction that is touted to be more accurate that analytical cost models. It was a very abstract presentation that discussed the mechanisms in which they believe they have a better prediction model.

Mingsheng Hong came to speak from Vertica, one of the event’s sponsors. Automated Physical Database Design in Column Stores. Hong was very well spoken and began with a quick overview of column store databases. He highlighted the difference between indices and materialized views in a row store database and what are called projections in a column store database. Projections support segmentation across the db cluster, column sorting, and per column compression schemes. Vertica has seen increased adoption in the internet gaming, telecomm, and financial services sectors.

The point of the talk was to discuss Vertica’s new Database Designer (DBD). This is a new tool developed by Vertica to help automatically configure the databases and projections. In financial services, the DBD has been shown to speed up queries by four times vs. manual designs. Storage was shown to be fifty percent less. This huge success decreases the design cost from several months to just four minutes. Similar increases in productivity have been realized in other sectors as well.
http://www.vertica.com/

The final presentation was Sivaramakrishnan Narayanan’s Dynamic Prioritization of Database Queries. Siva came to speak from Greenplum. He argued that some queries deserve first class treatment, others not so much. Since databases have mixed workloads such as OLTP, OLAP, reporting, and ad-hoc queries they wanted to make sure resource usage is inline with business value. They achieve this alignment by putting weights on queries and matching CPU usage with each query’s weight.
http://www.greenplum.com/

The summit was yet again well organized and a great way to learn about some of the newest developments and research in the database world. Its attendance of somewhere between two and three hundred people is testament to this and I look forward to attending next year's event.