Search Results: "mak"

13 November 2007

Steve Kemp: I love this hive employee

Russell Coker wants something to save and restore file permissions en masse. That exists already:
apt-get install acl
Once installed you can dump the filesystem permissions of, for example, /etc/ recursively with this:
 getfacl -R  /etc > orig.perms
Want to see what is different? First change something:
steve@steve:~$ sudo chmod 0 /etc/motd
Now see what would be restored:
setfacl --test -R --restore=./orig.perms /etc   grep -v "\*,\*"
etc/motd : u::rw-,g::r--,o::r--,*
Finally lets make it do the restoration:
steve:/# setfacl -R --restore=./orig.perms /etc
Job done.

Adrian von Bidder: Layer Cake

Recently spent three days playing poker, watching movies and drinking beer (we call that military service in Switzerland.) Layer Cake: Fun, somewhere in the vicinity of Betelgeuse^W Pulp Fiction or Lock, Stock and Two Smoking Barrels (Hmm. Why am I not surprised that Matthew Vaughn was also involved in the latter? I need to pay more attention to the names of directors and producers.) Also watched Meaning of Life one more time, no comment needed, I guess. Started watching Man on Fire (2004, by Tony Scott) but went to bed before the action really started, so I can't comment on it. Discussed modern (fast-paced, nervous etc.) moviemaking which reminded me that I should mention (Russian Ark) as a counter-example: the whole movie is one single 90 min long steadicam shot.

Masayuki Hatta: MIAU founded

Some of you might notice that I've been somewhat inactive as a Debian developer or hacker in general for a while. There were several reasons, but at least one of my free-time-suckers these days has been MIAU (Movements for the Internet Active Users). I'm one of the founders, and recently we held the kick-off press conference and are steadily gaining supporters. Oh yeah, we know this acronym is quite awkward...we simply love that sound (in case you don't get, see our symbol mark). Our organization is intended to be a Japanese counterpart of EFF or ORG, and possibly includes some elements of what Prof. Lessig & Co. are doing in the U.S. We would like to defend our freedom and build/preserve the nurturing environment for innovation, especially in the Net. We would also like to be a political voice for Japanese Internet users. Currently we are focusing to fight with (IMHO) ill-conceived Japanese copyright "reform"s, such as extending the copyright term to 70 years or making downloading (in a sense) questionably-uploaded materials (like BitTorrent downloads) illegal. In case you want to know what's going on in the Japanese copyright war front now, I recommend this recently-published Techdirt article: Japan Is The Latest Country To Explore Copyright Term Extension. Unfortunately, for the time being, most of the MIAU Web contents are available only in Japanese. Yes, *I* got to translate the MIAU articles into English but need some more time...and I should admit MIAU as an organization is still tottering in many aspects. I'm not sure how we can gain greater momentum. If you have some experience to run this kind of initiative in your countries, please share your experience with us.

Tag this post with del.icio.us!

Michal Čihař: Wammu 0.24

I just released version 0.24 of Wammu. This release brings improvements in device searching, support for notification on incoming call (you need python-dbus for this) and various minor GUI improvements. Full list of changes: There is still no binary for Windows. I don't have time and environment for maintaining them. Volunteers are welcome!

12 November 2007

Sune Vuorela: Debianized splashscreens

Disclaimer: splashscreens should be avoided and programs should start faster. Some programs are just too slow so a splash screen is needed. Wouldn’t it be cool if all programs that showed splashscreens actually showed a splash matching the same theme as your desktop environment and your display manager? This might going to happen. Besides OOo, amarok and the gimp, which other programs uses splash screens? And where do they store their splash screens? Artists: This is also your clue to consider it. I don’t have much artist skills, but I have some ideas for the implementation. To show off something, I can start here: debianized logout of kde The plan is of course to make it as easy as apt-get install debianized-splashscreens to get debianized splash screens - and apt-get remove to get the original splash screens back. Oh - and of course easily to change for derivatives who wants some other styling.

Benjamin Mako Hill: Debian Packaging Tutorial

Yesterday, when I posted the list of talks that I'll be giving this week, I forgot to mention that I will be giving a Cluedump at MIT tonight organized by SIPB. It will be in the form of a simple hands-on workshop to teach folks how make Debian or Ubuntu packages. The session is not aimed at teaching folks to make policy compliant packages or how to pass Debian's NM process but rather to be more of an, "Everything a Sysadmin Needs to Know about Debian and Ubuntu Packages," style introduction. The talk is tonight, November 12, 2007, at 20:30 at MIT in room 56-114. Feel free to read the longer description and to show up if you're interested.

Benjamin Mako Hill: Code of Conduct

The Ubuntu Code of Conduct is probably the most widely read document I've written. Agreement to it is prerequisite to participation in the Ubuntu community in all official and many unofficial capacities. It is has successfully set a positive tone and helped turn Ubuntu into what is probably the most friendly and civil free software project I've worked in. Over time, quite a few free software projects have copied or adapted the CoC. Tired of giving folks permission, the project went ahead and licensed the CoC under the Creative Commons Attribution-Sharealike license to explicitly allow reuse as long as attribution to the Ubuntu project is given and derivatives are similarly modifiable. In a recent development, it was adapted by the Fort Erie, Ontario town council for use government interactions of their business improvement areas! It's amazing to see the document gain so much traction! Unfortunately, the person who repurposed the CoC did not attribute the document correctly and was publicly accused of plagiarism by another council member! Ubuntu is happy to have Fort Erie, and anyone else, use or adapt the CoC. Folks should just take care to be honest about where it came from and maintain the BY-SA license.

David Welton: Google's Android is out!

Video introducing it: http://youtube.com/watch?v=1FJHYqE0RDg SDK is available, and all free software (or will be shortly, at least): http://code.google.com/android/ The GUI API is not like MIDP2.0, so it's not compatible with existing J2ME apps, like Hecl. Hrmph. Seems like Java 5 constructs are supported (I also wonder what those hex addresses are doing in there): http://code.google.com/android/intro/hello-android.html In any case, very interesting, and very cool. It certainly changes things a lot, though - until this becomes commonplace, it will just add to the number of platforms that need to be supported, which might actually make life tougher for a while. All things considered, though, you can't complain about getting something that cool under an open source license!

Theodore Ts'o: I love it when things Just Work

I am currently in the Hilton Portland & Executive Tower hotel, and since I fly entirely too much, I got upgraded into a room which contains a printer. Thinking that I would try using it, I hooked it up to my laptop (running Ubuntu Gutsy), selected System->Administration->Printing on the desktop, and then clicked on New Printer. To my astonishment, when the dialog box came up, the system had already autodetected the fact that I had an HP OfficeJet KX60xi printer connected to the parallel port, had recommended which driver I should use, and a few “next” and “continue” clicks later, the printer was installed, and 15 seconds later I was able to print to it. Users of MacOS systems are probably used to such things, but this was faster and easier than what Windows asks of users who want to install a new printer. Coming from a Unix background, I would have been quite pleased if I was able to set up the printer after manually select the printer type and driver from a dialog box. Simply not having to su to root, edit some config files, and then restart some daemons, would be a major advance. But this completely exceeded my expectations. Well done to everyone in the CUPS and GNOME community who worked to make this possible!

David Welton: The Economist on Business Books

Kicking ass in an unflat world is The Economist's take on recent efforts in the world of business books. As the creator of Squeezed Books, their opinion was of interest to me. As is often the case, they don't disappoint, with lines like
Things to bear in mind as you do, he says, include the need for your company to have purpose, to seek out ideas from the fringes, and to embrace the democratising power of the internet none of which will be news to anyone who has been in business for more than a few minutes.
What really caught me eye, though, was this:
There is also growing demand from overloaded executives for shorter books. So in January Harvard will launch a new hardback series, Memo to the CEO , covering subjects such as lessons from private equity and the future of strategy. Each book will be about 100 pages long and will cost $20. In a similar vein, Harvard has adopted the approach taken by iTunes to pop albums, and has started to sell individual chapters of books online an idea that has been a hit with academics in particular.
A lot of good business books take a sensible central idea, and then proceed to fluff it up to a length where it can be published as a book. Often, this makes for a good read, as the anecdotes and case studies and whatnot are interesting, but for those in a hurry, or simply wanting to know what the basic point of the book is about, it's just padding. So, it looks as if the idea behind Squeezed Books is a good one, now I just need to get better at attracting more people to contribute summaries, and discuss the books on the site. One thing I've done to that end is stipulate that the summaries are available, unless otherwise noted, under a creative commons license.

Erich Schubert: Memory died

Yesterday, my laptop locked up hard. So hard, it wouldn't turn on afterwards, but flash an error code. Unfortunately, Dell hides the relevant information very well - it took me some time to find in the forums that the error code means bad memory.After removing the memory module from slot B, I could turn my computer back on again. So either the module is dead or the mainboard part related to it.I bought my laptop second-hand in the US last year, and warranty probably is just over. Still I wanted to make sure that this isn't covered by warranty anymore, so I tried contacting Dell support.What a pain. No reply yet to my mail inquiry; and the "support chat" doesn't work right. Their support agent always asks for my phone number (WTF?) and then after some minutes says he's going to disconnect because I don't reply.I wonder if they ever tested their support chat with Gecko-based browsers.0 out of 5 stars for Dell support so far. Important information is inaccessible and the support doesn't reply in either email nor chat. It's not even giving bad replies.

John Goerzen: Christmas Is Just Around the Corner

Last week ended in a rather annoying way. Apparently my car had developed a flat tire overnight one night, and I left while it was still dark the next morning, and didn't notice it. I had driven on it all the way to work with it fairly flat, which damaged the tire (but not the wheel). So that needed to be replaced, and it was still under warranty from the place I bought them, which is 45 minutes away. We had a family gathering on Saturday, but couldn't be there all that long because we had to get to this place before it closed.

After we got home, there was a bit of work to do out in the yard. Jacob was tired of being indoors, so I took him out with me. He came with me as I put air in our 5-gallon air tank, and watched as I used the tank to do the monthly tire inflation on our pickup. (When you paid $75 for the vehicle, fixing a tire that only has to be inflated once a month doesn't seem all that cost-effective)

And then he got his first ride in the pickup. We were just moving around trash on the yard, and he enjoyed it. We hopped in and out several times to load or unload things. Though he was very annoyed that I didn't let him use the stick shift while I was driving. My parents said that he sounds like his dad.

We have a bedtime routine for Jacob, and I read a book to him right before putting him to bed every night. This morning, Terah got out the book that I read to Jacob last night. I was in a different room, but Terah is quite sure she heard him say "dada read this!" That's his first sentence (that one of us heard, anyway)

Some of you may have read that my relative Venita had a brain aneurism recently, and remarkably, seems to be recovering from it. Today in church, our pastor said, "I'm happy to report that this morning, Venita called me, asked me to thank everyone for all the prayers, and to ask the choir to sing up to heaven -- and they have." She's still very weak, and just sitting up to eat is a struggle, but she is improving.

Terah and I had invited my two aunts that grew up in what is now our house over to help decorate for Christmas. They were here today, and we spent all afternoon decorating, and we had spent the last couple of days finding decorations. It was a fun time, and the house looks great and feels more like home. We're happy to have had the help thinking about where to put everything, and actually putting things there. The tree isn't up yet, but it will be soon. We're thinking that it will be nice to be decorated early this year, rather than our usual just-before-Christmas decoration event!

It was neat to hear a few stories about how my grandma decorated the place; she died when I was young, and I don't remember her. Jacob, of course, was in on all the action. He watched, played, and threatened to make the nativity scene quite unpeaceful, but more interesting to a 13-month-old.

The Goerzen Christmas will be here this year. The last time Goerzens celebrated Christmas in this house was 7 years ago -- a month or so before I met Terah, as it happens. It seems so long ago in some ways. The house has changed; the 1970s yellow wallpaper is gone, as is the drop-ceiling tile that grandpa had installed to save on the heating bills, as is his wood stove and the metal tractors that he had in his closet that I used to play with when I was little.

But as I sit here typing this post, I'm looking at the spot where I used to play air hockey on grandpa's table during family gatherings -- and whenever else I could convince grandpa to get out his air hockey table for a game. Over in the corner is where he always had his Christmas tree, with the woven wheat ornaments my grandma had made. Terah decided that corner would be perfect for the tree, before she ever knew where it used to be.

Here's a picture I took at that Christmas 7 years ago:



Sitting here right now, looking at all that has changed, and all that hasn't... 7 years wasn't that long ago after all. I'm sure this year will be the first of many happy Christmases to be celebrated in this place.

Daniel Leidert: GNU make vs. BSD make - a practical problem experience

I’m currently evaluating Olivier Sessinks jailkit to maintain a small cvsd CHROOT with an included SSH server. The cvsd-buildroot command e.g. doesn’t handle the libpam-modules dependency in the CHROOT. So I tried to update the Debian packaging files included in the jailkit source. During this work I found some issues with the build environment - e.g. no DESTDIR support and some other stuff (another user already complained, that there might be problems with the SUID installation part for jk_chrootsh, jk_uchroot and jk_procmailwrapper of the Makefiles). So I began to check and “fix” the Makefiles and the configure script and then sent everything to Olivier. I did not only add the DESTDIR variables. I also made use of built-in rules, common variables (also for implicit rules), … and such stuff to make the Makefiles shorter and easier to maintain. My fault: I tested everything with GNU make. Now Olivier complained, that BSDs make doesn’t work anymore. So we began a short hack session to check for the problems. My first issue: I had to find some BSD make to test it myself. I found it in the freebsd5-buildutils, that contains the freebsd-make command. Then we began to check for incompatibilities and that’s the result:
  1. ifdef statements differ in syntax
    • GNU make uses ifdef VAR
    • BSD make uses .ifdef VAR
    solution: We replaced the statement with a construct similar to AM_CONDITIONAL. But we do not use this macro, because it would need to be shipped in aclocal.m4, which is currently not necessary. The code simply sets a variable foo_TRUE to ‘# ‘, if the condition is wrong, or the variable is left empty, if the condition is true:
    if test "x$my_condition" != "xno" ; then
        AC_SUBST([foo_TRUE], [])
    else
        AC_SUBST([foo_TRUE], [# ])
    fi
    FILES = bar
    @foo_TRUE@FILES += foo
  2. prerequisite variables differ in syntax
    • GNU make uses $<, $^, $@, …
    • BSD make uses $ .IMPSRC , $ .ALLSRC , $ .TARGET , … (note, that both *SRC variables hold a list of source files)
    Unfortunately both make implementations doesn’t seem to share a variable for the list of prerequisites. So the only solution is to list all prerequisites in the rule again. A variable would be much more comfortable. Maybe one could write a function, that first tests $ .IMPSRC and falls back to $^. Maybe that’s an alternative, but it’s IMHO not a very good solution. We’ve chosen to write down all prerequisites in a rule instead of using a variable. This is a little bit “harder” to maintain, but it works.
  3. built-in rules are not shared and do not use the same variables
    • GNU make ships built-in rules to build objects from sources and link them; rules consider CPPFLAGS
    • BSD make ships built-in rules to build objects from sources, but there are no rules to link them; rules do not consider CPPFLAGS
    In the case of GNU make, one can simply write:
    myprog: foo.o bar.o
    and GNU make will automatically create foo.o from foo.c (.c.o:, ditto for bar.o) and at least link myprog (.o:). But BSD make will only create the object files. There is no final link-step. So we had to include the rule to link the program in the Makefile.
Finally we got it and it looks good now. I/We learned a lot of new things (I learnd a lot about BSD make) ;), but it took us 1-2 hours to understand and fix the problems. Here a list of URLs, that might give some more information about the programs, their syntax and limitations:

Benjamin Mako Hill: Talks in Brooklyn and Ithaca

I'll be in New York State for the second half of this coming week. On Thursday, I'll be in New York City giving a talk as part of a interdisciplinary colloquium discussing free software and structured around Decoding Liberation, the recent book by Brooklyn College professors Samir Chopra and Scott Dexter. The talk will be Thursday, November 15, 2007 between 10:50 and 13:30 in the Glenwood Lounge in the Brooklyn College student center. See this flier for details. I'll be heading straight to Ithaca where I'll give a talk the next day at Cornell for the Code Review student group. My talk will try to introduce and discuss free software issues in the context of the OLPC project. The talk will be on Friday November 16th at 17:00 in Rockefeller 115. There's some more details on the Code Review website. Folks should feel free to attend either event. I'll be leaving soon after on a bit of a Balkan tour being organized by some of my friends from mi2 and will be spending a couple weeks in or based out of Zagreb. The details are still being ironed out but I'll be sure to post them here once I know dates, places, and times.

11 November 2007

Mart&iacute;n Ferrari: HP 530 review (with Ubuntu)

Yesterday I bought a laptop for a friend, who also asked me to install Linux on it. Since she's not computer-savvy at all, I opted for an Ubuntu. I provide here a short description of the hardware and what to expect regarding compatibility for anyone about to buy one of these. Hardware description
Model HP 530
Part No. GU322AA
CPU Intel(R) Core(TM) Duo CPU T2300 @ 1.66GHz (stepping 12) - 2 MiB cache
CPU flags fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor est tm2 xtpr
Screen 330 mm x 250 mm viewable area, "glossy" wide-screen. 1280x800 pixels.
Video Intel Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
Audio Intel 82801G (ICH7 Family) HDA
USB Intel 82801G (ICH7 Family) USB2 EHCI Controller
Ethernet Intel 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller Mobile
WiFi Intel Corporation PRO/Wireless 3945ABG Network Connection
Optical media Optiarc DVD RW AD-7560A
Hard disk Fujitsu MHY2120BH, 112GiB, max UDMA/100
Problems The only problems I had with the hardware were related to the sound card and the lid. The sound card had exactly the same problem as my Dell Inspiron 6400: it won't turn off the internal speakers when you plug something in the audio output jack. This is easily solved adding the following to /etc/modprobe.d/options: options snd-hda-intel enable=yes model=laptop The problem with the lid is that the screen didn't turn off when the lid closed. Just one time it did work, and stopped doing so after a reboot. Looking with acpi_listen, it seems that the acpi event isn't even generated. I don't know if this is a hardware or software problem. Also, some not very nice things should be noted about it: it has no independent media buttons for volume, suspend, etc.; only the WiFi transmitter kill and the power button, the rest needed a key chord. It has only two USB ports, which nowadays is incredibly few. No LEDs for hard dist, scroll lock or num lock. The audio jacks are on the front, which makes them very unsuitable for any straight plug. Although seldom used, it is nice to have the ability to turn the screen 180 , but this one can't do it. Finally, the battery is tiny: only four cells amounting 2 Ah of capacity. The power consumption seems a little better than my Dell: running on batteries, with low brightness, an idle GNOME desktop gave a reading of 820mA. Watching a movie from optical media in full screen ranged from 1 A to 1.3 A depending on the spinning of the media and the codec. Burning a DVD at 2x took 1.15 A The good After installing a Ubuntu 7.10, almost everything Just Worked . Of course it warned me about the non-free ipw3945 driver, but in seconds network-manager had connected to my home WLAN. Network manager could be a little more smart and turn off the WiFi transmitter when it's disabled by the user, but I guess that's not only an Ubuntu problem :). Most media keys worked out of the box, the WiFi kill switch worked OK, as did suspend to ram and to disk. Video acceleration and obligatory eye candy worked automatically. No problems either with burning a DVD, listening to music, watching a movie or connecting to my home network. The external aspect is not bad, the screen looks good, and the touch pad is very nice: just a matrix of dots over a surface that doesn't show any other sign of being an input method. In conclusion, it shows that it is a very cheap machine, but the drawbacks seem very few comparing to the good price. Tags: Planet Lugfi, Planet Debian, Tecnolog a

10 November 2007

Manoj Srivastava: Manoj: Adventures in the windy city

I have just come back from a half week stay at the Hilton Indian Lakes resort (which is the second time in a month that I have stayed at a golf resort and club and proceeded to spend 9 hours a day in a windowless conference room). On Thursday night, an ex Chicago native wanted to show us the traditional Chicago pizza (which can be delivered, half cooked, and frozen, via Fed-Ex, anywhere in the lower 48). Google Maps to the rescue! One of the attendees had a car, and we piled in and drove to the nearest pizzeria. It was take out only. We headed to the next on the list, again to be met with disappointment; since making the pizza takes the best part of an hour, and we did not want to be standing out in a chilly parking lot while they made out pizza. So, I strongly advocated going to Tapas Valencia instead, since I have never had tapas before. Somewhat to our disappointment, they served tapas only as an appetizer, and had a limited selection; so we ended up ordering one tapas dish (I had beef kabobs with a garlic horseradish sauce and caramelized onions), and my very first paella (paella valencia), with shrimp, mussels, clams, chicken, and veggies. We ate well, and headed back to the hotel. As we parked, and started for the gate, I realized I no longer had my wallet with me so back to the restaurant we went. The waiter had not found the wallet. Nor had the busboy. The owner/hostess suggested perhaps it was in the parking lot? So we all went and combed the parking lot once, twice. At this point I am beginning to think about the consequences I can t get home, because I can t get into the airport, since I have no ID. I have no money, but Judy can t wire the money to me via western union because I have no ID. I need money to buy greyhound tickets to get home on a bus and then there is the cancelling credit cards, etc. Panic city. While I was on my fourth circuit of the parking lot, the owner went back and checked the laundry chute. I had apparently carelessly draped the napkin over my wallet when paying the tab, and walked away and the busboy just grabbed all the napkins, wallet and all, and dumped it down the chute. Judy suggests I carry an alternate form of ID and at least one credit card in a different location than my wallet for future trips. If that was not excitement enough, yesterday, I got on the plane home, uneventfully enough. We took off, and I was dozing comfortably, when there were two loud bags, and the plane juddered and lister to the port. There was a smell of burning rubber, and we stopped gaining altitude. After making a rough about turn with the left wing down, the pilot came on the intercom to say We just lost our left engine, and we are returning to O Hare. We should be in the ground in two minutes . Hearing the in , a guy up front started hyperventilating, and his wife was rubbing his back. My feelings were mostly of exasperation, I had just managed to get myself situated comfortably, and now lord only knows when we would get another aircraft. When we landed, the nervous dude reached over and kissed his wife like he had just escaped the jaws of death. And he asked if any of us knew statistics, and if we were fine now. (I was tempted to state that statistics are not really predictive, but hey). It was all very pretty, with six fire engines rushing over and spraying us with foam and all. When we got off the plane the nervous dude headed straight to some chairs in the terminal, and said his legs would not carry him further. He did make it to the replacement plane later, though. Turns out it was a bird flying into the engine that caused the flameout. Well, at least I have a story to tell, though it delayed getting home by about three hours.

Eddy Petri&#537;or: nslu2 broken?

Thursday evening, when I came from work I found my nslu2 not working. It is/was a router and a local mirror. I tried to understand what's going on, but I couldn't. Everything looked fine, except that it did not resolve any addresses and the ping to my provider was not giving any results.

I tried to restart dnsmasq, although it seemed it was running fine, and then, in a desperate gesture (after trying to understand what was going on) I thought of restarting networking. I got locked on the outside and was forced to restart the system.

Everything looked to come back to normal. Since it was late, I set myself to investigate the next morning what happened. But yesterday morning, the network was again down and the slug was inaccessible.

Since the only way to restore sanity in such a situation (because I don't have a serial console on the slug) was to reset and hope for the best, I did that.


The slug didn't start anymore. It seemed to cycle through boot -> reset -> reboot. I tried to see what was going on and connected the hard disk to my laptop. The filesystem was clean, although /var/log/boot.0 was a directory (and that directory had the same content as /var/lib/dpkg/info). I manually removed that, but that didn't make the slug boot.


It seems my slug is kind of dead.

Now I would like to know if is there any way to do remotely what flash-kernel does from within debian.

Russell Coker: Optimising Swap Performance

I recently wrote some suggestions about appropriate swap space sizes [1], the main point being that the advice to use 2* RAM size never really applied to Linux and a system that actually has swap space equivalent to 2* RAM in use will usually be too slow to use (and you are better off having the kernel OOM handler kill some processes). There were a number of responses to that post, Ingo suggested that significantly larger amounts of swap can be used for compiling [2]. I have had similar experiences when compiling KDE long ago on a machine with 96M of RAM. Even in 1999 96M was not a lot of memory for a machine running KDE, and when compiling MICO (the CORBA system) a single G++ process could use more than 96M of memory. Obviously a lot of swap was used, but performance didn’t seem too bad. I avoided touching the keyboard or mouse (so most of the X server was paged out) and allowed all memory to be used by the build process. It seems to me that the build process is not as intensive as other processes in terms of swap use because it is a chain of processes that call each other. You may have several instances of make running (launching a new instance for each directory as you descend the build tree is common) and then a gcc process that launches some child processes. But unless you use the -j option to make at most times during the build there is only one process with any serious work to do. So the parent processes can be entirely paged out to make room for the process that is doing the work. A counter example is a shell server that has many interactive users, on such a machine if it runs slow then the users start opening more sessions so that they can perform other operations while waiting for a slow command to complete, opening more sessions uses more memory and makes the problem worse. Ingo notes that he uses several hard drives to give good performance. The priority of swap spaces is listed in /proc/swaps and can be set by pri=N in the options field in /etc/fstab. If you have multiple hard disks then the performance of swapping on a system that is being used intensively for multi-tasking will increase significantly at a rate that would hopefully be close to linear scaling with the number of disks. If a system only has one active process that is being paged (which might be reasonably common as part of a build process) then the performance benefits for reading will be significantly reduced.

Biella Coleman: Tesla coil super mario duet

Can you get more geeky than this?!!!??? :-)

9 November 2007

Adam Rosi-Kessel: Is the MBTA Killing Itself?

As I stand in a near cattle-car packed South Station, waiting while no trains arrive and no trains depart (”signal difficulties”), I wonder if forces are conspiring to make MBTA service so poor that it enters a death spiral of poor reputation for reliability, increasing fares, lower ridership, less revenue, etc.. One or two long delays or canceled trains in a short time span can be ignored, but after a while it may become impossible for the T to recover the lost goodwill. There’s a saying in trademark law, “once you’ve lost a customer, they’re often gone forever.” Are signal difficulties for real, by the way? More on this topic: this excellent op-ed in the Globe about the importance of mass transit to the local economy and life sciences in particular; contrast with this news about what the T plans as its next big project (hint: “T TV”). Not much good news here, either. Is anyone listening? Technorati Tags: , ,

Next.

Previous.