Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 562
Le4rner Offline OP
UGN Supporter
OP Offline
UGN Supporter
Joined: Mar 2002
Posts: 562
Okay I am fairly certain my swap partion isn't being used. Doing a few different monitors shows no activity. Memory monitors show almost allways almost maxed out. How can I make sure swap is being used, I messed around in linuxconfg but got no where. any ideas are most welcomed. Thanks ahead of time.

Joined: Mar 2002
Posts: 626
Member
Offline
Member
Joined: Mar 2002
Posts: 626
I think their is a *nix version of partion magic... Check that out (the shareware for now), that can help and see alot. Hmm also maybe midnight commander, some kind of data programs.


-hKzKnight
"The ghost... Was never there and you'll never see me"
Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815
I think swap was mainly for older machines that didnt have a lot of RAM. When the cache was filled it would use swap space as memory to hold data. If you have lots of memory in your machine I dont think it would really need to use the swap space unless your running some hefty applications.
Windows has something similar to swap, virtual memory, but they just dont use a set space they use the empty space at the end of your drive. I could be wrong though, this is just what my understanding of swap is.

Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815

Joined: Mar 2002
Posts: 562
Le4rner Offline OP
UGN Supporter
OP Offline
UGN Supporter
Joined: Mar 2002
Posts: 562
sinetific.... You da man! BTW how you been man?

Thanks!

Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815
good, but busy, thanks for asking man.

Joined: Mar 2002
Posts: 626
Member
Offline
Member
Joined: Mar 2002
Posts: 626
when your first install some *nix distros, you can set how much space you want your swap partion to be. Can be a real [censored] getting exactly what you want. it beats the "FAT" lol.


-hKzKnight
"The ghost... Was never there and you'll never see me"
Joined: Mar 2002
Posts: 1,041
I
UGN Elite Poster
Offline
UGN Elite Poster
I
Joined: Mar 2002
Posts: 1,041
Your swap partition should be turned on at boot, but just in case it isn't you can use the 'swapon' command to get it running:

swapon -a <device>

additionally the manpage for swapon will give you the full use of the command.

sum

Joined: Mar 2002
Posts: 562
Le4rner Offline OP
UGN Supporter
OP Offline
UGN Supporter
Joined: Mar 2002
Posts: 562
cool...

hKzKnight
it isn't a partiton issue man.. ha ha ha ha I have a /swap partion 500mb worth actualy. Linux just wasn't using it. sinetific and sum helped me out though.

Joined: Oct 2002
Posts: 21
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 21
Quick check to see how much memory and swap is being used is the top command. Don't be suprised if most of your memory appears to be being used. Most operating systems grab as much memory as they can so they can manage it.

Joined: Oct 2002
Posts: 37
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 37
What Energy said. Don't worry if it isn't using swap space. Swap is a last resort effort. You want it to not use swap space. It's slower then RAM. If you want to see your swap in action. Open up about 5 instances of Mozilla then do a top. You'll see your swap screaming in pain. Another thing, as a rule of thumb. Your swap is supposed to be the same size as your RAM. Or double it. One or the other. I can't remember. : )

Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815
now a days with machines that use ~256MB DIMMs and up it should be the same with older machines that use ~16MB SIMMs it should be doubled since it will probably get used alot more. But this isnt a written rule or anything just my opinion your welcome to make your swap space whatever size you like.

Joined: Mar 2002
Posts: 562
Le4rner Offline OP
UGN Supporter
OP Offline
UGN Supporter
Joined: Mar 2002
Posts: 562
/me has 384mb Ram.... So I should have 768mb swap?

That is almost a gig of swap space. heh, I allways heard 300 mb of swap.... I guess if what you guys are sayin is the case, then I should be happy because I'm not using all my ram yet.. Ever.

Joined: Mar 2002
Posts: 1,041
I
UGN Elite Poster
Offline
UGN Elite Poster
I
Joined: Mar 2002
Posts: 1,041
Quote:
/me has 384mb Ram.... So I should have 768mb swap?
Yeah, that's a little excessive IMHO. 512mb of swap would be more than ample unless you plan to continuously run a few big programs at once. More than likely you could even get away with a little less if you wanted.

sum

Joined: Oct 2002
Posts: 37
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 37
This is just the rule of thumb. Make sure you keep that in mind. If you aren't going to be a server you probably will never even notice. You probably still wouldn't notice even if you were a server unless you were really running it ragged.

Joined: Oct 2002
Posts: 21
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 21
Three points on swap:

First, when RAM was very expensive they use to recommend 2 1/2 times the amount of RAM. (i.e. on a 1 gig drive with 32 Megs of RAM 80 Megs was an acceptable amount of disk waste.) Now remember that this figure came about because either the machine was in a multi-user environment or was a workstation trying to run graphic intensive programs (i.e. Pro-E, AutoCAD, etc.) For those who have never had the fortune to be in this kind of environment we are only talking pre-1995 here.

Second, most systems today do not need this much swap space. However, when you get into serious server environments swap can begin become critical. For instance large SGI servers, if they crash and core dump (write their RAM to disk), need as much swap as memory. The core dump file can then be analyzed for why the system crashed. Also, large databases often use extensive swap.

Third, if you get into a situation where you really need to worry about swap there are some tuning tips. The simple ones are use multiple smaller swap partitions and spread them across disks.If running a database avoid putting swap on the same disks as the database or transaction logs.

One of the advantages to commercial operating systems is how they handle I/O (input/output.) Linux and the BSD's have come a long way but fiber channels, neural design, swap, multi-processors are still the areas the big boys excel in.

Joined: Mar 2002
Posts: 562
Le4rner Offline OP
UGN Supporter
OP Offline
UGN Supporter
Joined: Mar 2002
Posts: 562
God I am such a n00b in here.

What are fiber channels and neural design,?

Joined: Oct 2002
Posts: 21
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 21
That is actually a great question. I apologize for not answering it in my last response.

As bus speeds and processors become faster through Moores law the old hard drive wiring became the bottleneck. 160 MB Ultra SCSI-3 was not fast enough. Also, as you increased the number of disks being used to increase server capacity into multi-terabytes the distance between the hard drives and the bus became to large for SCSI technology. They therefore went to fibre channels to increase bandwidth and distance. (Notice I fixed my spelling. It is fibre according to SGI.)

As a side note, when you look at the speed of IDE drives today (ATA 100, 133, and 150) people often assume that these speeds make SCSI obsolete. This is actually not the case. The advantage to SCSI is that much of the machine's I/O load is offloaded to the SCSI processor. This frees the CPU to perform other activities. You will notice this when you transfer a large file (a few hundred MegaBytes) across a hard drive. The OS becomes very sluggish because the CPU is having to manage every byte being transfered. (To notice this on Unix machines you have to move the file across partitions, since Unix is smart enough to just move the inode assignment.)

Now for neural design. In very large servers you purchase processors in groups, usually four, and not in single units. This is because those processors are designed to work much as your brain does, calculating how to balance the load between both them and the other CPU clusters. (Sorry clusters is a term I made-up. SGI calls them bricks.)

If you look at http://www.sgi.com/origin/3000/datasheet.html
(click on the top link) and glance through the 3800 specs you will get a quick overview of large server class technology. I choose SGI because they own Cray.

Sun http://www.sun.com/servers/highend/sunfire15k/
calls their fibre channel a Fireplane, boasting a 172.8 GBps peak bandwidth, and also sell their processors in groups of 4.

Now I don't want you to think I have slighted the free OS's by what I have said. It is just a matter of economics. When a machine costs millions of dollars you just don't have time to port Linux to the machine. Capitalistic principles say it needs to be in production quickly. SGI, Sun, etc. have no reason to spend their time porting Linux. Since 8 and 16 processor machines have dropped in price Linux has been ported to them.

Joined: Mar 2002
Posts: 626
Member
Offline
Member
Joined: Mar 2002
Posts: 626
Just side note I think IBM also has their version... Never know, I've seen all sorts of fun things from IBM. All should go to the World Linux expo, I'll be there this yr. Anyway, sorry get side tracked.


-hKzKnight
"The ghost... Was never there and you'll never see me"

Link Copied to Clipboard
Member Spotlight
Posts: 30
Joined: June 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Crime 1
Ice 1
Dartur 1
Cyrez 1
Powered by UBB.threads™ PHP Forum Software 7.7.5