Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Linux SDRAM & slack space

Posted on 2003-02-20
Medium Priority
Last Modified: 2013-11-15
Expert at http://computing.net/linux/wwwboard/forum/18728.html recommended I partion my drive like,

"80 gb drive
1 pri partition 30MB mounted as /boot (so lilo will boot) ext2 or ext3 format)
2 pri partition 67 GB mounted as / (ext2 or ext3 format)
3 pri partition 10 GB fat32 C: for windows
4 extended partition (256 MB)
5 256 MB Linux swap partition in extended partition" - Does it (4th, extended partion) encapsulate the remaining (Swap) into a logical partition? Since each drive can have 4 primary, why can't I just put the 256Mb swap partion as the 4th primary?

Aside from this, would anyone advise me on having a 1024Mb slack which would be on top of a 333 2700 512Mb DDR SDRAM(for a combined total of 1536 Mb available as VIRTUAL memory)? - how much would 1536Mb virtual Ram equate to in real terms?
          What's the maximum in Mb that you can have in slack space- if big enough, then put on extended partion, logical drive due to 1024 matter. Say for example, what would the performance benefits be for a 4096Mb slack with 512Mb 2700 DDR SDRAM be on logical drive? And how would this compare to say 4x512Mb 2700 DDR SDRAM at 2048Mb 333 RAM with 512Mb slack space?

Note: my board can hold up to 3Gb of 333 2700 DDR SDRAM.
Question by:Adam115
  • 5
  • 5

Accepted Solution

garisoain earned 176 total points
ID: 7989934
Hi Adam, here's what I can contribute with.

1st. yes, you can install your swap on a primary partition without problems.

**************** 2nd ( Just as Info ) *******************
    Well, my recomendation will be more like:

    - 30 MB on /boot
    - 600 MB on /
    - 5 GB on /usr
    - 10 GB for Windows 98
    - 400 MB on /var
    - 400 MB on /tmp
    - 256 MB for Swap
    - The rest on /home

This is a Server-Type configuration, allows you to play a lot with your partitions without messing with user's files, you can even change your linux distro without needing to backup a lot of things (but you still have to backup some of them).

But, as you want as few partitions as possible, you can do great using:

- 256 MB for Swap (Linux Swap)
- 10 GB for Windows 98
- The rest for /   as Ext2 or Ext3

That is like my first Linux Installation was, worked great for desktop use. If you install Linux first and Win98 later remember to create a linux bootdisk when prompted, as Win will overwrite the MBR and this will prevent your linux to boot, you can boot with the disk and re-install lilo on the MBR with the commmand 'lilo'.

Your /etc/lilo.conf    file should contain something like this prior to run the command in order to be able to boot Linux and Win98.

boot = /dev/hda        # for MBR, or your root partition

image = /boot/vmlinux  # your zImage file
  root = /dev/hda1     # your root partition
  label = Linux        # or any fancy name
  read-only            # mount root read-only

  other = /dev/hda4   # your FAT partition, if any
  table = /dev/hda  # the current partition table
  label = Win       # or any non-fancy name

Regarding your question on Virtual Memory, you won't need that much of swap space unless you are planning to run really memory-intensive processes like serving Java Servlets with Apache+Tomcat, in wich case, a server-type PC would do better (Dual Processor with 2-3 GB RAM)

I've been using Linux Slackware for some years now, I'll keep listening here in case you have any problem or doubt.

Regards, hope this helps you. =)

Author Comment

ID: 7993663
I like your desktop partioning plan but I'm still unsure on whether to have a separate boot partion for quick reference or if it's a waste of a drive for it to be on its own partion, what do you think?

Expert Comment

ID: 7998226
It's not absolutely necesary, if that is your question...

It was a common recomendation not so long ago because LILO (The Linux Loader) couldn't boot OSs installed after the 1024 cylinder, but that limitation is gone by now.

Also, if you wanted to install several OSs, including some on extended partitions, it was advised to create a primary (and active) boot partition so the Linux Loader became the computer's boot manager.

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.


Author Comment

ID: 7998964
Thanks Garisoain. I don't intend this box to be used as a server - it's my home desktop. I intend to use Linux slackware so I can tweak the system files & customise it to my needs - as you've probably already done.

 I do, however, intend to have my own server which I'll be building up over time. Currently its just my old system: 400Mhz AMD-K6, 64Mb, MS 5182(socket 7..) but as I accumulate I'll gradually upgrade it to the standards you recommend (over 3Gb RAM) and yes, it'll(server) run Slackware or FreeBSD(your expert advise?) & your partioning recommendations for a server are flawless.

    Also, since this will be my 1st server, - it'll be placed on 1st floor for noise reasons - how much would it cost to maintain(bandwidth etc. per month) a 10-Mbit cable channel with 384 Kbps upload speed off my ISP? - dedicated small home server.

Review of my home administered personal dedicated server on own network:

10-Mbit cable with 384 Kbps upload
1Gb Online storage
30Gb P/month bandwidth <<<<<<<<depends on how much ISP charging!

I'm UNSURE about this but I would like INSTANT CUT-OFF once my bandwidth limit has been reached. Can I set this up remotely with MY software or could I instruct my ISP to cut me off automatically whenever it reaches bandwidth limits? - I absolutely don't want to be charged extra for sudden surges in traffic!

Note: This is NOT a commercial server. It'll have about 1Gb online webspace on my larger(>1Gb) IDE drive with max transfer per month at 30Gb P/Month - if it costs too much then I'll get a 10Gb per month bandwidth.

PS. I don't need the server up and running for months.

Expert Comment

ID: 8001248
=) Actually my own home server (NAT, mail, web, and ftp) runs on a Celeron@466Mhz, 192MB RAM, 15GB HD, cause I don't need heavy processes, working great for 3 years now.

A really BIG server would only be necessary for runing large databases (or heavy DB engines *cough*Oracle*cough*) or Java Servlets ( Lots, and Lots, and Lots of Memory) with Apache+Tomcat.

I would recommend Linux for your server, any distro you like (I'm with Slackware).

FreeBSD is the best for dedicated WebServers, but with Linux you get very good performance on every single service.

I'm not familiar with USA bandwith prices, I only miss them, here in Mexico I pay US$50/month for my 256Kbps ADSL, and on Bellevue,WA (USA) I used to pay US$20/month for 1024Kbps DSL.

The instant cut-off on banwith limit can be done either by your ISP, or from your side using a Linux gateway (with the iproute2 utilities).

=) Regards.

Author Comment

ID: 8004387
What books would you personally recommend reading on Linux server administration? Topics including setting up a DMZ, different transfer protocols (TCP IP, ICMP, UDP etc.), integrating code, APIs, RDBMS etc.. I'm already getting the following books in a month or 2,

"Slackware LINUX for Dummies" (with CD-ROM) by Paul Gallegos(2000)

"The Concise Guide to Xfree86 for Linux" by Aron Hsiao(1999)

"Hacking Linux Exposed", 2nd Edition by Brian Hatch(2002)

"Running Linux", Fourth Edition by Matt Welsh(2002)

The only mainly server book I'm getting is,

"The Linux Internet Server" by Kevin Reichard(March 1997) - do you think this will be outdated in the fast paced networking world that you're accustomed to Garisoain? The last person who reviewed it did so in 1998 on amazon.

Expert Comment

ID: 8004778
Haven't readed any of those, but I can recommend you
"Unix System Administration Handbook", by Nemeth, Snyder, Seebass and Hein. I consider it a must-have.

It covers RedHat Linux, Solaris, HP-UX and FreeBSD.

It's a good tutorial if you're new to UNIX server admin, and great reference if you're an experienced pro.

BUT, most of the documentation you need is available on the internet, check "The Linux Documentation Project".

Good Luck.

Author Comment

ID: 8010246
Just 1 end-user criticism of Linux,

I noted you're interested in gaming. I assume you meant both gaming and game design. Anyway, what is your opinion on Linux ever becoming a "gaming computer"?

       Personally, I don't ever see it being supported by as many developers as Microsoft O/S's has due to the open source concept and community residing around Linux.

   Though the games created for Linux distributions are nice in quantity and average in graphics, I don't see them comparing to MS centric games in graphical quality, longevity (3d games), depth and concept(due to customer base).

     On the other hand, Linux is great for developing games and media due to the more efficient resource management and Linux being more minimalist. Also a more reliable and stable server than anything running MS by far.

Expert Comment

ID: 8013289
=) I use Windows XP Pro for gaming: Warcraft III, GTA III, StarCraft, etc. This games aren't available for Linux.

Linux needs to become a popular desktop-OS prior to compete as a gaming plataform, It's on it's way, but not there yet. Nvidia supplies drivers for linux, yes, but not until it can compete with MS on office (or home) desktops, the big game developers will take it seriously. (due to customer base, of course)

In the meantime, it's still one of the best server-OSs.

And BTW, Linux already dominates the multiplayer game-serving area, as developers have noticed it's stability, performance and networking advantages, most of the multiplayer games have a server that runs on linux.

Oh, I also played Mahjongg for hours when I used Linux for desktop.

Author Comment

ID: 8017240
Hope to see you on here again in the future. Thanks for your help.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

575 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question