Latest Web News

Microsoft, Yahoo Update Messengers
Late news from Yahoo reveals a new beta of their instant messaging client with plugins and a developer kit, while Microsoft ties its debut of Windows Live Messenger to Johnny Depp's forthcoming 'Pirates of the Caribbean' sequel.

Riya Offers Facial Recognition Tech
Usable facial-recognition software belongs in the realm of science fiction, right? Or perhaps it exists, but only in the some of the more technologically advanced branches of the government. Not so. The photo-sharing site Riya already uses some of that technology, and is due to incorporate more this fall.

Thoughts On Microsoft's Future
The recent Microsoft news (Scoble leaving, Gates taking a reduced role, Ray Ozzie stepping up) combined with the last 10 years worth of evolution in networking and of the web really got me wondering about Microsoft's role in the future.

Google Poised For Nielsen Raidings
Google is a media company - a dangerous one for conventional players. Mountain View's next potential rival: Nielsen Media Research, the audience measurement company that has held a virtual monopoly in the sector for decades. And it shouldn't be surpirsing. Google's MO is information collection and research.

PayPal To Google: Bring It On
PayPal President Jeff Jordan said his company is ready and waiting for any competing payment services that Google may launch. The GBuy system is supposed to come out on June 28, according to a note from RBC analyst Jordan Rohan.

Blogging From A Sinking Ship
PubSub CTO Bob Wyman was never one to pull punches. And though the blogosphere has been a store window for many companies, Wyman's latest blog entry detailing not just that the company is days from bankruptcy, but chronicling the internal political struggles between himself and the CEO, has some wondering at what point transparency becomes the medium of aired dirty laundry.

Google Talking Voice Recognition?
Senior Google executives are dropping big hints that the company's future growth will come not just from PCs but from voice recognition services over mobile cellular phones and cars.



Recent Articles

Inward Bound
There's a Boston customer I have serviced for many years now.

SMB Caching
A customer had a particular shared folder setup so that only he had access to it. This happened to be a SCO Visionfs system, but you could run into similar problems...

PC-BSD
I do like BSD OSEs, but I think the most interesting thing about the release of PC-BSD is that the download page incudes a VMware image.

Oracle Ponders Novell Purchase For Linux
With an earnings announcement coming up on April 18th, Oracle founder Larry Ellison has been wondering whether his firm should pick up SuSE Linux by buying Novell.

Microsoft Virtually Supporting Linux
The Windows maker announced at the LinuxWorld Conference & Expo it would make the Microsoft Virtual Server 2005 R2 available at no charge to customers.

Google Hires Creator Of Vim
Bram Moolenaar, creator of the text editor Vim, or Vi improved, will begin working with Google in the company's Zurich offices...

IBM Wants To Eclipse Unix Developers
The command line is a wonderful thing, and a developer skilled in the ways of vi (or emacs if you must) can build great applications; IBM thinks developers can do even better with its Eclipse IDE.

Misunderstanding Security
At UNIX Security: Don't Believe the Truth, Thom Holwerda makes a rather silly argument that Unix security is no better than the worst of Windows security because the result to the user is the same...

06.20.06


Where's The Memory?

By A.P. Lawrence

I had happened across How To Remotely Monitor Memory Usage and smiled when I saw this :

As one example of this phenomenon, the SUSE Linux system that I use for my public Web and e-mail server originally only had 512 MB of RAM. This should have been more than adequate for the lightweight load that I was expecting, but the system tools showed that the box was constantly running low on memory. And even after I bumped it up to a full gigabyte, the system still complained.

I had just gotten ready to add another gigabyte when I discovered that most of the memory was actually being consumed by SUSE's aggressive disk-caching algorithm. Every time I added more memory, the operating system drank it up for the disk cache. In reality I was nowhere near hitting any kind of memory limit for the applications themselves, even with just 512 MB.

"That's how Linux memory works", I thought to myself, "he should have known that."

Well, yeah, he probably should have. That once again points out the danger of assuming you know what's going on based upon your knowledge of other systems. Being an expert at Solaris is helpful with Linux but it can also lead you astray. The opposite is just as true, of course.

But knowing something about "Linux" in general can also send you down the wrong path. I said that's how Linux memory works, but that isn't necessarily true either. The same article goes on to say:

RedHat and SUSE have substantially different algorithms when it comes to allocating cache memory. Where SUSE is very aggressive and tries to make full use of the available memory, RedHat leaves unused memory lying around in case it's suddenly needed by something.

So if you've "learned" that Linux uses available memory for buffer caching, a RedHat system that doesn't could confuse you. But wait - that's not all.

SalesGenius™. Free 30-day Trial.

"Swappiness" was introduced in 2.6 kernels. When some program wants more ram and the kernel has a bunch being used for caching, it could give up some of that. Or it could just make some other less active program swap out to disk. Which is a better idea? Well, of course that depends on what is going on right now. If there is heavy disk activity and programs that really aren't being used, it would make sense to swap. If there isn't much disk activity, or those swappable programs are apt to become active very soon, it makes sense to give back memory.

The idea was that the admin knows best what his system might require, so the admin should be able to say how much "swappiness" is desirable. If swappiness was set to zero (echo 0 >/proc/sys/vm/swappiness), the kernel would give up cache to anything that wanted ram; if it were set to 100 it would do the opposite and let the processes swap.

Well, great, but what if you don't have a clue because sometimes your system has unused apps and sometimes it doesn't.? No problem, somebody came up with something that would make a good guess on the fly: Autoregulated VM Swappiness Patch.

"[The] amount of swap space consumed is also taken into account, and the size of it compared to the physical ram is taken into consideration when making its effect on the value of swappiness. With this patch, this should make any machine that has swapspace as resistant to OOM as possible. This version by default autoregulates the swappiness, but also allows you to choose a manual setting if you so desire by echo 0 > /proc/sys/vm/autoswappiness and then setting the swappiness the manual way as previously. This makes comparison with autoregulation easy."

But then: ( Bugzilla Bug 54560):

As of 2.6.7, gentoo-dev-sources no longer contains the Con Kolivas autoregulated swappiness patch. This is important for desktop machines, to avoid having large amounts of memory swapped out on prolonged system inactivity (causing an annoying swapstorm when the machine is used again).

Desktops and laptops are apt to sit unused for long periods. Therefore unused processes tend to get swapped. If the kernel were really smart, it would notice that *nothing* of importance is happening and just leave things as is, but apparently we haven't reached that point yet. Or if we could have so much real physical ram that we could eliminate swapping entirely..

Well, the minute you say "eliminate swap", someone will point out that you *need* swap. There's a long discussion of swap and ram at Kernel trap: Is Swap Necessary?, but most of the conversation there is at cross-purposes. For multi-user machines, you definitely want swap because you want to be able to be truly interactive: moving one program aside so that another can run. But for a single user machine, you may not want to swap: it might be preferable to have the system refuse to start up a new app and let you decide what you'd rather get rid of to make room for it.

Or maybe not. I'm in favor of control, but the default probably should be to swap. Then again, maybe the default for desktops and laptops should be different.. it remains a complicated and difficult subject.


About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

About UnixProNews
UnixProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of Unix environments. News and Advice for Unix Professionals

UnixProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITCertificationNews.com


-- UnixProNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2006 iEntry, Inc. All Rights Reserved Privacy Policy Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



News and Advice for Unix Professionals UnixProNews News Archives About Us Feedback UnixProNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact