US Postal Service Moves To GNU/Linux
twitter writes "The US Postal Service has moved its Cobol package tracking software to HP machines running GNU/Linux. 1,300 servers handle 40 million transactions a day and cost less than the last system, which was based on a Sun Solaris environment." The migration took a year. The USPS isn't spelling how big the savings are, except that they are "significant."
we don't have to ask if it runs Linux.
The higher the technology, the sharper that two-edged sword.
Your point?
There isn't anything wrong with COBOL for these kind of transactions.
The Kruger Dunning explains most post on
They moved their package tracking system to Linux? I wonder if, when you ask it where your shipment is, it will tell you to find it yourself in a condescending manner.
Does it make you happy you're so strange?
Submitted with the headline "Linux Penguin goes postal."
What are you whining about? The cost of postage has historically risen at a lower rate than inflation. Meaning that stamps do cost less, just not in face value.
Yeah it's totally insane that we are charged a whole $0.44 to reliably send any piece of paper over 3,000 miles to it's precise recipient in a matter of days. This is the kind of technological marvel that future societies will be looking back in awe of.
A Magic the Gathering Article and Forum Aggregator
Now they can run a couple of Postfix servers and put themselves out of business!
I have something in common with Stephen Hawking...
If you're 30-something, you rely on email.
If you're in your 20s, you use IM
If you're 13 like me, it's all Twitter, all the time. Bonus: I have no need to receive packages because I shoplift everything.
I'm sure I could get a dramatic speed improvement running Apple II 6502 code on an emulator on a Mac Pro simply because the emulator can run faster than the original hardware.
Given that it took 1400 Linux boxes to handle the load, I'd say your post is, at best ignorant, at worst, a blatant troll.
a) Just because it's COBOL, doesn't mean it was running on crappy hardware.
b) COBOL is far from dead, in that many applications running today are written in it. Believe it or not, it makes more sense to continue to run that old code than to rewrite from scratch in the latest shiny because they already know *it works*.
rates are pegged to rise no faster than inflation, so not really: http://en.wikipedia.org/wiki/History_of_United_States_postage_rates
You're really complaining about $.50 for the level of service you get from the USPS? For that price, you can send a standard letter anywhere in the US (including the non-continental US) usually arriving in less than 5 days with a loss rate of virtually zero. They deliver mail to (nearly) every address in the US 6 days a week, and will even come to check for outgoing if you don't have any incoming. They even manage to deliver when the roads are absolute shit and no one in their right mind would be out and about.
All for a price that has actually been decreasing over the years if you take into account inflation, let alone the increases in gas prices that have occurred over the last 10 years. Personally, I think that's pretty damn good and wouldn't complain if they raised the price to an even dollar, it would still be under priced for the service they provide.
Have you ever coded in COBOL? I have. It is EXTREMELY easy. It is quite close to English and is not at all cryptic. I believe nearly any coder with any experience and a language reference guide can read through code and make changes were needed. It has been almost 10 years since I last wrote a PIC statement, but I am quite confident that not only I, but just about anyone could do it. While I think the stories about pulling old programmers out of mothballs (retirement) is rather heartening, I think they are blowing the problem out of proportion. What these companies should be doing is hiring experienced and mature coders who can learn COBOL then send them to school.
What I find disheartening is the fact that businesses are no longer able to see education and training of employees as a worthwhile investment. (I know why they probably don't see it as worthwhile and it has a lot to do with employee loyalty, but I have to insist that the problem of loyalty didn't really happen until employers started treating their employees as disposable... they have no qualms with firing and laying off people at-will and yet they expect employees to be loyal? Get real!)
Not only that, I just checked and according to fedex it costs $7.39 to mail that same letter from coast to coast for their cheapest option. That's only what, nearly 17 times more expensive? Travel times are 5 days compared to about 7 for the USPS, not much faster. I'm sure the libertarians will chime in that they could do that much cheaper if the (subsidized) USPS weren't in the way, but I suspect it would be like the way that CD prices went down after the technology became established, or the way that cable and telephone prices went down after the markets were deregulated (i.e., they didn't). Bottom line is that the USPS is an astonishingly inexpensive with a low failure rate for the price. It's a great service that our government provides. While I'm glad that they are saving this money, I'd rather that they put it to work on avoiding reductions in service or balancing their budget rather than reducing the price of postage.
Gentlemen! You can't fight in here, this is the war room!
they could still reap even more benefits by recoding for modern languages and coding practices
Maybe. The fact is it appears they successfully migrated the system to a new platform within a year. I have seen many "modern" systems still jerking around with UML after a year and I can't count how many were never brought fruition.
But then, this is the US Postal Service. COBOL's probably fast enough for the task.
COBOL has a lot of issues but speed isn't a big one. I'm willing to bet that on tasks that are appropriate to COBOL it would kick most "modern" scripting languages asses in terms of speed.
Leave the gun, take the cannolis.
1300 servers, processing 40 million transactions a day... that's about 30,800 transactions per server. Or one transaction every 2.8 seconds or so. With an entire Linux box dedicated to it.
I work in the scan processing group at FedEx. At peak, we see over 100,000,000 transactions a day. And that's handled on 45 linux boxes, and 12 more for the database, doing upwards of 6000 transactions per second during bursts. That's a peak of about 133 transactions per second, per box. That's a little better than 0.3 TPS for the Post Office. So we have about 400 times the performance with 5% of the hardware. By that margin, I could do their processing with about 25 boxes total. That would mean another 98% savings on hardware alone.
For some reason, I fail to be really impressed that they've gone from "Crappy performance and Expensive" to "Crappy performance and less expensive."
I wonder if I can get the bazillion dollar contract to rewrite their system... No, wait, my name isn't "Boeing" or "Lockheed" or Ken Murtha.
Life, the Universe, and Everything... in my image.
Last week on Top Gear, they raced a standard letter sent via standard post in the UK from the south of the UK to the far north of the UK and the letter won.
Total cost of the stamp? A fraction of a pound.
The US is very similar. A little slower due to the extreme distances mail has to route to, but, i'd wager on mail versus delivering it yourself anyday. Not only that it's *cheap*
Non impediti ratione cogitationus.
"Not only that, I just checked and according to fedex it costs $7.39 to mail that same letter from coast to coast for their cheapest option. That's only what, nearly 17 times more expensive?"
factor in how much of your tax dollars when into that and then get back to us with a valid point....
Umm, the USPS is self-funded. None of your tax dollars go towards supporting their operation source
Well, look on the bright side...
Now we can say, with all confidence, that the world's largest mail server runs Linux
No sig for the moment.
cost less than the last system, which was based on a Sun Solaris environment.
Two thoughts:
Advice: on VPS providers
Umm, the USPS is self-funded. None of your tax dollars go towards supporting their operation source
That's a little misleading - it hasn't always been that way, so a lot of the USPS infrastructure is tax-payer funded.
In addition, they come around every once and a while and ask for money from Congress - they are doing it this year and while I am hazy on the details, I believe they did something similar about a decade ago in order to fix funding problems with their pension system. Plus, they have a monopoly on letter delivery - that's why fedex costs so much more, they have to classify and price it as something other than a letter - so that's an indirect tax by government intervention to prevent a free market.
When information is power, privacy is freedom.
I paid more for a first class stamp from the Bundespost in Germany in 1976 than I pay in the U.S. today, and the service is better. The USPS is a bargain and it's better managed than people give it credit for.
Very often, people confuse simple with simplistic. The nuance is lost on most. - Clement Mok
Wait... fedex costs more because USPS has a monopoly? Lets see... what other monopolies are out there to compare to this statement. Nope, does not compute.
Some people do not like the USPS because it represents an actual successful arm of the government. You want to know why they ask congress for money? Its to get back what Congress ultimately takes from the USPS because its the only thing besides taxes that makes money in our government system.
I say YAY USPS, one of the few "companies" where you dont have to worry about your pension, retirement, or jobs.
Let me use a "scare word" for those of you whom are still stuck in the 1980s. "Socialism" can work.
Sure, so long as you never need to make any changes to the code. The surviving COBOL coders have gone back into comfortable retirement with the money they made fixing Y2K. So they've moved from old iron to a modern operating system; they could still reap even more benefits by recoding for modern languages and coding practices.
But then, this is the US Postal Service. COBOL's probably fast enough for the task.
So you're saying that COBOL is so hideously difficult, so byzantine, so labyrinthine in nature that no one could possibly learn it now? That programmers educated today have no possibility of understanding a language that was designed some decades ago? You realize that C is 30 years old now, right?
This sort of fear mongering through ignorance is getting stale. COBOL is just another language, and one that happened to be designed for ease of expression for less-than-stellar programmers. Legions of students have learned enough C over a weekend to code up the examples in K&R, so I'm actually quite confident that professional programmers can, without any prior experience in COBOL, learn the language, even become proficient in it, in a brief enough time to make modifications to existing code bases.
Look, we're talking about learning a computer language and modifying or maintaining code, not learning Elizabethan English well enough to write a new Shakespeare play that can pass off as an original. It just isn't that hard.
Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
Will this allow them to improve their tracking system?
UPS has had an amazing tracking system for years. FedEx has improve theirs, to the point they have good estimated delivery dates and can show you what's going on with your package pretty well, like UPS.
When dealing with the post office, their system works but is... antiquated. When paying for any kind of fast shipping (overnight, two day) I can receive my package before the tracking number pulls up a package. It's not every time, but it's enough to make me not care much. What I really care about is estimated delivery dates. I want to know when I'll get my package. I usually don't care if my package is in NYC, Duluth, or San Antonio. It will get where it needs to go. I would rather have the step-by-step tracking information show up later and have things like estimated TOA show up fast.
I remember as a kid (I'm 26) you could order something from a catalog and you had basically no idea when it would show up from UPS, etc. Today I can find out where my UPS package was last scanned, nearly up to the minute. Very cool.
That would make a neat visualization. They should put that on their site, little packages moving along their correct routes around the country.
Comment forecast: Bits of genius surrounded by a sea of mediocrity.
While I'm no fan of rate hikes, getting any sort of physical entity across the country in a couple of days for under fifty cents is pretty much a modern miracle.
How are sites slashdotted when nobody reads TFAs?
I have to agree. When I was 19 and interning in the accounting department at a chemical plant, I was asked to add a new field to one of their systems because I knew FORTRAN. I looked at their code, told them that it was not FORTRAN, but I thought I understood what was going on. They said fine. After a couple of hours of monkey-see-monkey-do I had made the change and verified that the field showed up on the screen that they wanted it on, saved the values as expected and showed up in the modified reports where they wanted. It was not until over 20 years later that I looked inside a COBOL book and realized that I had been unknowingly 'tainted'. It was that easy.
There are good reasons why it is illegal to compete with the USPS. The Postal Service has requirements that other competitors do not. First, it has to offer first class service to all fifty states, even Alaska, Hawaii, and other unprofitable places. Second, it has to charge exactly the same rates domestically regardless of the distance. Third, you can mail an envelope you labeled by hand whereas UPS/FedEx would require you to barcode it.
If you allowed private enterprises to compete unchecked, they would cherrypick the most profitable routes (hubs, basically) and quickly bankrupt the Post Office. They'd also charge less than the Post Office on short routes that the Post Office would need to subsidize the longer routes. But if you had to regulate competitors to make sure they had the same disadvantages as the Post Office, what's the point?
A NYC lawyer blogs. http://www.chuangblog.com/
COBOL runs quite fast; it is a compiled language that was designed from the start for compiler optimization of business logic code. Think in terms of well written C.
COBOL's reputation for being slow has to do with writing the programs, and dates back to its earliest days when code had to be written as SET RIDICULOUSLYLONGVARIABLENAME EQUAL TO 2 PLUS 2. Development time sped up a lot when Gracie was finally convinced that RIDICULOUSLYLONGVARIABLENAME = 2 + 2 would work as well (the original approach had to do with coders handprinting the instructions on coding forms that were then given to keypunch operators who knew nothing about computer languages but could type really fast and accurately... so long as their fingers didn't have to reach too far from the home keys).
I was never found of COBOL in school, and never did much with it. But I agree with others that anyone who has worked with a couple of programming languages could probably master COBOL in a matter of hours: in retrospect, it is basically a simple and obvious language. What I probably could not do is reverse engineer some of the constructs that were used back in the day: a lot of weird code was developed to work around hardware limitations that no one born after 1980 will have ever seen. Much of that wasn't documented well, and I think that is why old COBOL programmers are in demand. They remember that this particular type of data structure was used to optimize read-write operations on dual high speed tapes... to a younger programmer it just looks like arbitrary stupidity and they don't know what to do with it.
Will
Yes, but do you have enough letters to be delivered from Kearny, NJ to Fresno, CA to fill that box? If not, how are you going to sort/redirect the individual letters that don't fit in conveniently-sized bins?
The USPS sorting infrastructure is just as (if not more) impressive than the actual shipping infrastructure.
-- If you try to fail and succeed, which have you done? - Uli's moose
I think the summary and the TFA are a bit confusing. It probably would have been better had the summary linked not just to the TFA but also directly to the gcn.com article which is linked to from TFA, or maybe better yet, just to the gcn.com article. What I get from that gcn.com article is this:
a) There is a mainframe that is talking to ~1300 "midrange" servers.
b) The mainframe is an IBM Z-series which has been shifted over from an IBM proprietary OS to Novell SUSE Linux.
c) The COBOL code is running on the *mainframe*, not the ~1300 servers! (TFA summary is wrong on this)
d) Because the mainframe is now running Linux, and because of a USPS IT decision to standardize on Linux (this is why OpenSolaris was never an option - sorry OpenSolaris fans), they're now converting the servers to Linux as well for better interoperability between the mainframe environment and server environments.
e) As for what this system is actually tracking:
Events are transactions that occur at the service's retail counters, such as shipping and picking up packages or the delivery of priority mail by carriers to businesses and residences. The mail is scanned to confirm delivery, and that information is sent to the PTS database. ...
âoeWe're inserting like 40 million events a day,â he added. ...
The PTS has 56 transaction types, such as acceptance scans and delivery confirmations, that have now all been migrated to Linux.
The gcn.com article has more info, but even it is confusing to me. Questions:
What is an "HP Linux Environment" (Does HP have its own version of Linux? What distro is HP using?)
Any Z-series gurus reading this want to chime in and explain what the IFL actually is (Page 2 of article)?
Yes, I know, I could Google for those answers, but I'm already worn out just doing what the original story submitter should have done. Just consider the above an "improved summary". :)
Because it provides a social necessity.
If the service was not socialized then small communicates will either not be served or would have to pay more to send (or even receive) a letter.
IANAL but write like a drunk one.