Linux RAMDISK with tmpfs

The Linux kernel provides the tmpfs, which basically creates a file system in memory. This temporary file system can be used to store temporary data, such as caches or log files. Read more about tmpfs in the kernel documentation: tmpfs.txt

After reading this excellent article about using tmpfs in Linux, I decided to put it to the test. Even though the Linux kernel already does a good job caching files, I wanted to see the performance of this solution by applying different loads on it. For this, I am using the IOzone tool I already used for my ZFS tests (1) (2) and my Amazon EC2 IO test.

Read the rest of this entry

Debian with a vanilla kernel

So one might want to ask why you’d want to sacrifice the fantastic stability and openness of Debian to install a vanilla (= original) kernel (Debian currently has 2.6.32). There are quite a few reasons for doing so. For example, the current kernel (2.6.38) has TRIM support, which is something I am looking for when using SSDs. Also, maybe you want to have a bleeding edge kernel just for the fun of it. So lets get started.

First order of business is to download a few packages, download the latest kernel from kernel.org and then unpack the kernel in /usr/src/:

Read the rest of this entry

Amazon EC2 IO Performance

While discussing the topic of cloud computing today, my co-worker mentioned the Amazon EC2 service and gave me a quick presentation of the features that are available. Since I am a big fan of virtualisation and the idea of scalable architectures, I immediately thought “This could be great to test some things out and is a wonderful opportunity to play around with different virtual machines”. So I signed up and did some quick tests to look at the IO performance…

I was especially interested in using these machines for storage and maybe some tests with databases. For these tests, my current Virtual Server serves as a reference, simply because EC2 could provide an alternative to that Virtual Server. In my tests, I included the following configurations:

Read the rest of this entry

PuTTY customisation

One of the first things I do when I install PuTTY on a new machine, is to change the default color settings to something that is easier to read. This is a problem I have noticed on Red Hat machines, where the terminal color settings are not that great.

When you do an “ls” for example and the output contains folders, these are shown in a dark blue color, which makes it very hard to read on a black background. See the first picture in the gallery below.

Read the rest of this entry

Samba: Windows Explorer Refresh

Using Red Hat with Samba (Version 3.0.10-1.4E.11), I had the problem that Windows Explorer would not refresh properly when browsing the folders served by Samba. When creating a new folder, nothing showed up and it was necessary to manually refresh the Explorer window to see the “New Folder”. The same symptoms appeared with newly created files.

To fix this, add the following line to the [global] section of your smb.conf (usually located under /etc/samba/smb.conf):

[global]
refresh = 1

Sadly, I could not find this parameter in the official Samba manpages. Should anyone have more information or any documentation on this, feel free to let me know.

PCI: Probing PCI Hardware (Bus 00)

When I was installing Red Hat Enterprise Linux on a server, the machine suddenly hung at the following line:

PCI: Probing PCI Hardware (Bus 00)

This is a well-known problem (as a simple search on Google will reveal), so to solve it simply add the following parameter to the kernel boot configuration:

Read the rest of this entry

BASH: Wait for log entry

For a startup script, I needed to start JBoss and start another component as soon as the complete JBoss server was started. When you execute the “run.sh” script that comes with JBoss, it immediately exits and starts JBoss in the background (which is quite nice I think). Unfortunately, when I started the other component using this method, the additional program was unhappy, since JBoss was not ready yet. So I had to come up with a trick to delay the start of the additional program.

So with the help of the internet and my co-worker, we came up with the following script:

Read the rest of this entry

BASH Setup in Solaris 10

Coming from Linux distributions where BASH is usually already set up and configured, I had to find my way around in a UNIX environment first. So here I present the files necessary for a proper installation of BASH under Solaris 10 (yes, I know Solaris 11 Express is out :)).

So after installing the BASH package (see my other post on setting up Solaris), you might find your new shell to be kinda boring. Also, it simply shows up as bash-3.00#, which by itself does not tell you a lot. So lets improve it a bit.

Read the rest of this entry

Hello world

My name is Simon Krenger, I am a Technical Account Manager (TAM) at Red Hat. I advise our customers in using Kubernetes, Containers, Linux and Open Source.

Elsewhere

  1. GitHub
  2. LinkedIn
  3. GitLab