Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Community Lounge > Reviews, Rants & Things That Make You Scream
FedoraForum Search

Forgot Password? Join Us!

Reviews, Rants & Things That Make You Scream The place for you to submit reviews of all those applications you use with Fedora. The Devs probably aren't listening, but some times you've just GOT to blow off steam or sing its praises.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st October 2010, 09:42 AM
witek's Avatar
witek Online
Registered User
 
Join Date: Oct 2009
Posts: 111
linuxubuntufirefox
Unhappy Rant on Gigabytes

It came out during another discussion on another forum, but this issue has been bothering me for so long. It makes me scream and I have to share with you.

Have you ever imagined how much data (ie. chars) could fit into 1GB RAM? 1char=1byte, that gives 1024x1024x1024 chars ca. 1000000000 chars. Let`s assume one manually types a char per second. It gives 32 years of constant typing day and night. Why our computers have to move this data to and fro when several years ago they could work with 64KB (Commodore 64)?

I do understand capacity of hardisks has to grow as we store larger and larger files. I can understand RAM needs to grow too. But why executables went into hundreds of MB? What is inside them? Several years ago whole operating system could fit into several KB. What happened except manufacturers of hardware in league with coders want us to buy a new machine every year or maybe that`s just messy coding is to blame?

Last edited by witek; 1st October 2010 at 10:00 AM.
Reply With Quote
  #2  
Old 1st October 2010, 11:11 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfedorafirefox
Re: Rant on Gigabytes

Back in the bad old days I use a PDP11 w/ 48KB of core memory, which at times ran AT&T Unix, the C compiler and back then "hello world" program was a few KB. Here for example;

Quote:
[stevea@luchs tmp]$ cat > hello.c <<EOF
> int main() { printf("Yellow world!\n"); }
> EOF
[stevea@luchs tmp]$ gcc -o hello hello.c
hello.c: In function ‘main’:
hello.c:1: warning: incompatible implicit declaration of built-in function ‘printf’
[stevea@luchs tmp]$ ./hello
Yellow world!
[stevea@luchs tmp]$ size hello
text data bss dec hex filename
1037 252 8 1297 511 hello
Wow - see it's even smaller (1297 bytes). Except that tiny little program uses some massive shared libraries these days.

Code:
[stevea@luchs tmp]$ ldd hello
	linux-gate.so.1 =>  (0x00e3d000)
	libc.so.6 => /lib/libc.so.6 (0x0040a000)
	/lib/ld-linux.so.2 (0x003e8000)
[stevea@luchs tmp]$ size /lib/libc.so.6
   text	   data	    bss	    dec	    hex	filename
1591998	  10148	  12320	1614466	 18a282	/lib/libc.so.6
[stevea@luchs tmp]$ size /lib/ld-linux.so.2
   text	   data	    bss	    dec	    hex	filename
 120931	   3020	    192	 124143	  1e4ef	/lib/ld-linux.so.2
So about 1.74MB of shared libraries are involved. In this case those same shared libraries are used by every (userspace) process. In the bad old days you linked to a STATIC library but only the modules you used got linked in ... printf, eprintf, dprintd, _putchar, ... , not the entire library. OF course in the bad old days we had perhaps 16 processes MAX running by swapping to horid slow disk. Let's compare ...

Code:
[stevea@luchs tmp]$ ps -aefl | wc -l
183
[stevea@luchs tmp]$ free -m
             total       used       free     shared    buffers     cached
Mem:           993        792        200          0         86        243
-/+ buffers/cache:        462        530
Swap:         2047        187       1859
So I've got 12 times as many processes on an older laptop using a little over 20,000 times the amount of memory.

In the bad old days we spent a lot of time trying to minimize the use of memory. Pipelining operations from disk->memory->disk and then re-reading the results in between. I recall working on some some FFT & signal processing routines on a much bigger system (mainframe w/ perhaps 4MB of RAM, virtual memory system) and if you designed the software assuming that you had a lot of memory and allowed the virtual memory system to manage the problem - then performance was horrible. You could get a lot of performance by managing the use of memory in the application, but that puts a horrible burden on the software app to understand the memory environment. and act variably.

As computers evolved memory (and disk space) became bigger, faster cheaper at an amazing pace along with CPU performance. But we have used up all those features with added software burden. The old PDP-11 terminal (80x24) held 2KB of characters and was fed data at about 38.4kbit/sec. You are probably sitting in front of a screen with (~1Mill 24bit pixels) 3MB on display and fed over a backplane at ~50Gbit/sec.

The bottom line is that if you really want to go back and "camp out" in the stone age you still can. A few years ago I used to develop a lot of embedded systems - some with Linux 2.4 kernels and busybox running in as little as 16MB, with no GUI. There is a thread on this forum where I stripped down Fedora to be almost that small. Stripping the kernel would have been the next step. It's not that hard to do. Some of the BSD clan are still almost small enough (but most only run on x86). I think you'll find the experience shockingly primitive. But to be fair I find RHEL5 kind primitive too.

If your argument is that we use all these big new resources frivolously - we'll it's hard to claim that's wrong. My immediate (~3MB) desktop a LOAD of fancy memory and graphics frames and graphical icons and such - all attached to complex interactive callbacks, but I am primarily pushing ~1KB of characters around a complex terminal frame. Of course I'm listening to streaming audio and pulled up a news feed video a few minutes ago - hard to do that on a PDP-11.

Back in the early workstation era the argument was that having a graphical interface was going to allow for a much better interface and allow people to see/learn from graphical content (picture worth 1000 words concept). In fact the big/new interface is the desktop and it's network based clone, the browser. Aside from some simplistic icons and buttons most of the REAL info is presented as text. Yes there are pictures, but most things simply aren't presented graphically and the tools for graphical presentation require a lot of work. What I mean is that if you go to bea.gov you'll find loads of very interesting data in spreadsheet form, but it's a headache and a half to get the same data into a properbar chart or ... Same problem repeated endlessly across the net. It shouldn't be that hard.

I'm NOT impressed with the argument that you can teach mathematics of science graphically. These require abstract concepts that are only relatable used arefully crafted language. Sure you can get a kid to learn the multiplication table or understand some example cases to motivate physics ideas - but you don't learn the concepts hat way.
--

So I think until we get an interface pretty close to the Star Trek's holodeck - we'll continue to eat up all the computer resources we can throw at the problem of MMI. Of course the computer/network will continue to be the premiere porn delivery system on the planet, perhaps expanding to the less visually oriented half of the population as it progresses.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 1st October 2010 at 11:38 AM.
Reply With Quote
  #3  
Old 1st October 2010, 12:01 PM
witek's Avatar
witek Online
Registered User
 
Join Date: Oct 2009
Posts: 111
linuxubuntufirefox
Re: Rant on Gigabytes

Thanks for the detailed answer. I understand many of the issues, however I can`t understand why on my new dual core laptop with 3G RAM starting mail reader or a browser sometimes takes 20 seconds.
I saw once a commercial of BeOS where old dual P2-266 with 64M RAM was much responsive than present desktops performing similar tasks. Why aren`t we going this way?
Reply With Quote
  #4  
Old 2nd October 2010, 09:07 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 822
linuxfedorafirefox
Re: Rant on Gigabytes

Quote:
Originally Posted by witek View Post
Thanks for the detailed answer. I understand many of the issues, however I can`t understand why on my new dual core laptop with 3G RAM starting mail reader or a browser sometimes takes 20 seconds.
It's simple: the faster computers get, the longer it takes them to do anything useful.

For example, our first home computer when I was a youngster was a Sinclair ZX-81: you turned it on and it was ready to use in under one second; our latest fast desktop now I am no longer a youngster has at least 4 million times the memory, and runs the CPU at (I believe) about 200 times the clock speed, yet takes nearly a full minute to be ready for action.

That said, compiz on a ZX-81 would be a bit of a challenge...
Reply With Quote
  #5  
Old 2nd October 2010, 10:16 AM
witek's Avatar
witek Online
Registered User
 
Join Date: Oct 2009
Posts: 111
linuxfedorafirefox
Re: Rant on Gigabytes

Quote:
Originally Posted by marriedto51 View Post
That said, compiz on a ZX-81 would be a bit of a challenge...
Even if I`m not using compiz my system is slow. Think about wasted cycles: Commodore 64 had 1MHz clock, nowadays it`s ca. 1GHz - thousand times faster. When I wait 10 seconds for an application to start it`s as if I had to wait ca. 3 hours on C64. Couldn`t these cycles be used more efficiently?

Last edited by witek; 8th July 2011 at 01:57 PM.
Reply With Quote
  #6  
Old 13th October 2010, 06:31 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,620
linuxfedorafirefox
Re: Rant on Gigabytes

Well, you have Moore's Law and then you have The Great Moore's Law Compensator.

Moore's Law means you get faster processors.

The Great Moore's Law Compensator. Is the principle that successive generations of computer software acquire enough bloat to offset the performance gains predicted by Moore's Law

There were actually benchmark tests done comparing Office 2000 (on hardware when it was released) and Office 2007 (running on hardware when it was released)

Even though the Office 2007 was running on much faster hardware, Office 2000 won out in the benchmark tests in just about all categories. (Office 2007 ran about half as fast as Office 2000 even on the faster hardware)

Another thing too.. What is considered "good" programming practices nowadays creates very inefficient code. Back many moons ago, I wrote code that could squeeze into several KB of storage, but was self modifying. The program would actually change the object code that it was executing. You could run a subroutine several times, and the actual code would be different each time it was executed. That's a no-no nowadays. Took far less memory, but was a pain in the butt to debug.

Last edited by DBelton; 13th October 2010 at 06:41 AM.
Reply With Quote
  #7  
Old 13th October 2010, 07:36 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxopera
Re: Rant on Gigabytes

No - you missed the point. It's NOT bloat. You are buying something with that slow startup time and massive memory use - greater portability, vastly better user interface, handles more varigated and more massive data loads. In the bad old days the programmers and software had to compensate for hardware limitations and only had to interface to some crummy TTY or 1KB screen. Self-modifying code was never a common practice, nor does it save much if any memory space. As stated, in the bad old days the software had to work around resource limitations, today the OS does. In the old days the application might scuttle the entire system, then as memory manegement and virtual paging evolved that became impossible,

The slowness of the typical browser/mailer is that it's probably written in ighly portable and safely contained Java and running on an emulated virtual machine, and instead of two dozen 500byte emails you're loading 500 emails with an average size in the 100KB range. Your user interface is more like evolution or thunderbird, complex and featureful, instead of mailx or mutt. Also note that the old systems were radically expensive - A cheesy pdp-11/20 was ~$30k in 1972 dollars, around $4k for each added 16KB of dram, $5k for a removable 5MB disk drive. A near $1M IBM mainframe circa 1985 would lose in every conceivable measure to your $300 nettop. If fact you can emulate that 1985 $1M IBM system in a Celeron at full speed (see Hercules software). No one could afford to use those expensive resources the way we use PCs today.

Point is - You could get the speed and low memory profile back, if you are willing to live with an 80x24 character VT100 terminal and a simple KB, and restrict the things you want to look at to say 5MB per user including stored (simple ascii, no-mime) email and files, lose all the portability and security and the many services we all use. Install freedos and you're half way there.

So I think the nostalgia for the past is mostly selective-amnesia. It's a bit like complaining that a Model-T was only $1500 while a modern sedan is $30k, without accounting for very important feature-creep. You wouldn't be happy w/ the model-T nor the 1980s era software. My point is that we have a LONG way to go before we have spent enough resources on the MMI.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 13th October 2010 at 08:29 AM.
Reply With Quote
  #8  
Old 6th November 2010, 01:08 PM
hellork's Avatar
hellork Offline
Registered User
 
Join Date: Dec 2007
Posts: 244
linuxfedorafirefox
Re: Rant on Gigabytes

Brings back memories. The Commodore 64 had 4 color high resolution graphics at a razor-sharp 320x200 resolution. It would take a good 40 seconds just to clear the screen using BASIC. :O)
__________________
Data, Information Processing, Secure Hosting, and Internet Technology (D.I.P.S.H.I.T.)
Reply With Quote
  #9  
Old 6th November 2010, 01:54 PM
witek's Avatar
witek Online
Registered User
 
Join Date: Oct 2009
Posts: 111
linuxubuntufirefox
Re: Rant on Gigabytes

Quote:
Originally Posted by hellork View Post
Brings back memories.
Sure it does :-)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora 9 - gigabytes drivers hulday EOL (End Of Life) Versions 5 5th March 2010 07:02 AM
rant Liath Fedora Focus 2 24th April 2009 12:39 AM
kde - another rant PatMcLJr Using Fedora 8 5th March 2009 09:39 PM
Only 3.3 gigabytes of memory recognized -- WTF?? MyDogHasFleas Hardware & Laptops 8 3rd July 2007 12:52 PM
Another Yum rant dc2447 Fedora Focus 1 24th May 2006 11:37 PM


Current GMT-time: 12:53 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat