munky.net

design and open source

March 26, 2011
by rdo
28 Comments

Controlling thumbnail generation on a Synology NAS

Synology NASI’ve had a Synology NAS (an old DS107+, one of the earliest models) for several years now, and I love it for its simplicity of use and low energy/noise footprint as a home file/media server. I also like the fact that Synology does a pretty good job, for the most part, of keeping the software up to date and introducing nice new features.

However, when I upgraded my unit to version 3.1 of their Disk Station Manager (DSM) last week, I found that they had added a very undesirable “feature” which generates large thumbnail images for anything in your photo directory, apparently for use with the iPad app. Since I neither have an iPad nor have even enabled the PhotoStation component of the DSM software (which provides for a hosted web photo gallery–no thanks, I’m fine with Picasa web albums), I just wanted to turn this off. Furthermore, I found within a couple days of installing the update that the thumbnail generation process was constantly churning the disk and running the CPU at 100%, to the degree that normal file serving operations ran poorly. With the thumbnail process running, the unit could no longer even keep up with simple operations such as watching a video from the server over the normal Samba shares.

To my dismay, there is no option in the extensive DSM user interface to turn off this feature. I remember being slightly annoyed at this in previous versions, but it only made the system unusable once they added the XL thumbnails for the iPad app. (I have an nightly script that backs up my photo library to an offsite host via rsync every night, and I’d written it to ignore the @eaDir directories where the thumbnails are stored.) The synology forums seemed to be full of a lot of confused people trying to figure out how to turn off the thumbnail generation, but I was eventually able to identify the two key parts of the system that affect this.

If you want to simply disable XL thumbnail generation and leave everything else as-is, the file to edit is /usr/syno/etc.defaults/thumb.conf. You need to edit this file to remove the block starting with [thumb 1280]:

[thumb 1280]
size=1280
quality=90
filename=SYNOPHOTO:THUMB_XL.jpg

Note that there’s also a /usr/syno/etc/thumb.conf, but on my system it didn’t have an XL thumbnail block so apparently the file in etc.defaults was overriding it. (BTW if you need help getting an ssh session into your box and editing files, there’s lots of help for that on the Synology site. I logged in as root and used vi.)

The thumb.conf file is read by a thumbnail generation daemon (service) that is started through /usr/syno/etc/rc.d/S77synomkthumbd.sh. So after editing the thumb.conf file you can either restart your system, or just restart this service:

/usr/syno/etc/rc.d/S77synomkthumbd.sh stop
/usr/syno/etc/rc.d/S77synomkthumbd.sh start

Once I did this, I no longer had “convert” processes at the top of my process list churning the hard drive and maxing out the CPU.

Alternatively, it sounds like you can also just prevent the thumbnail daemon from running at all on system startup. The rc scripts work a little differently from other *nix systems that I’ve used (although it’s been awhile); renaming the file didn’t appear to prevent it from starting when I tried that. The Synology wiki recommends adding a premature “exit” line right after the initial #!/bin/sh as a means of preventing a service from starting automatically (or ever, actually). I may go ahead and deactivate the process at some point but for now I was just satisfied that the XL thumbnails weren’t being generated.

In closing: Hey, Synology! Nice idea about the iPad gallery, but how about making it an option, once that’s not on by default, and with the warning that it will make older units practically unusable for their main purpose if activated?! I figured it out, but I’ve got some experience with *nix systems and the command line. I can see how a normal consumer user could be left completely helpless trying to address this problem and most likely end up blaming it on a (nonexistent) hardware fault.

November 6, 2006
by rdo
68 Comments

Resetting a lost ViewSonic DVI connection

I recently upgraded to a shiny new graphics card (NVIDIA 7900 GT) and was bummed when the DVI connection on my ViewSonic VA2012wb LCD monitor couldn’t detect a signal from it and just stayed in standby mode. At first I thought the card was just dead, until I tried using the DVI to D-Sub (analog VGA) adapter to send the monitor an analog signal, which worked fine. This mystified me, since the card and physical port were apparently working, but refusing to output a DVI signal. I’d just unplugged the monitor from my old DVI card, so I figured the monitor wasn’t the problem. Turns out the monitor was indeed (partially) the culprit.

Continue Reading →

September 9, 2006
by rdo
13 Comments

Two Words: Monkey Park

This photo caught our monkey friend with his mouth open, since he was yelling something about expecting a really big banana for having to pose with these two idiots.

Now, anyone who knows me is certainly aware of my affinity for all things simian. Everything is better when you add monkeys, right? So imagine my surprise and delight when, upon exiting the train at Arashiyama station just outside Kyoto, I spot a large, colorful advertisement for the “Arashiyama Monkey Park”, adorned with cartoon drawings of various cherubic monkeys obviously enjoying themselves and beckoning me to join them. The ensuing conversation with my wife went something like this:

“Where should we go for lunch? How about that zaru-soba place?”

“Monkey park.”

“We’ll see that if we have time after the other stuff. Should we go to the shrine first?”

“Monkey park.”

[Various threats and admonishments in Japanese]

Mon-kii-paa-ku!

Hai, hai.

“Monkey park!”

Continue Reading →

September 7, 2006
by rdo
4 Comments

Two machiya in Kyoto

Nunoya garden

Most machiya, including that housing the Nunoya ryokan, include a nice enclosed garden.

Finally managing to get out of Saijo for a few days of travel before returning stateside, we spent a few days in the old Japanese capital of Kyoto. We split our stay between a fairly expensive (for our budget) traditional ryokan, and a very inexpensive (by Japan standards) guest house. I’d expected a pretty wide gap in terms of quality of service and accommodations between the two, so I was very pleasantly surprised when the latter very nearly matched the former in terms of overall quality of experience.

Continue Reading →

August 13, 2006
by rdo
0 comments

Noodles and beer

PMS
I’m pretty sure I’ll be able to get this one up on Engrish.com

Yesterday was the beginning of the O-bon holiday in Japan, during which most people go home to the countryside to visit their families and pray to their ancestors. That being the case, the population of Saijo has now doubled or tripled, and I enjoy grumbling about all the “damn foreigners” with their fancy out-of-state license plates overrunning the highways.

Continue Reading →