LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Difference between Swap Virtrual memory and Swap Parition (https://www.linuxquestions.org/questions/slackware-14/difference-between-swap-virtrual-memory-and-swap-parition-120379/)

Nappa 11-27-2003 02:42 AM

Difference between Swap Virtrual memory and Swap Parition
 
Okay, last couple of questions for the night...I'm sorry I'm asking such newbie questions, but I have to learn somehow. I did search threads for this info, but not answered to my liking.

1) what is the difference between the different swaps i.e. virtural swap where there is a certain sized file, and a partition swap.

2) how do I implement the partition swap (having 128 MB Ram), with a FAT-32 partition

3) my regular user (not root), doesn't have a .bashrc file in the home directory...it was never created. Is this something I have to make in order to implement certain login features (ex. alias's or mod'd scripts), for that user

4) What file or script makes the annoying quote of the day come up everytime I login. How do I make this go away

Once again thank you so much for your help, and I appreciate your time. I have come to really like the Linux OS, exspecially Slackware and am trying to cram my brain of knowledge from it.

slakmagik 11-27-2003 08:32 AM

1) swap file is easier to make, resize, remove - I dunno. They're rarely used. Partition has faster access thana file for some arcane reason, I think, but mainly helps with fragmentation. It's the usual.

2) Depends on what the fat is used for and what you want it to be like when you're done. Could just delete it, recreate a smaller fat, and a swap with the remainder. fdisk, mkswap, swapon are the main tools - some at least.

3) ~/.bash_profile and the like are sourced for login shells. ~/.bashrc is sourced when it's not a login shell. You get redundant path info but I usually just symlink them. If you have special knowledgeable use for them, they make a difference, though. But you do need *a* config file to use aliases and such like, or you just get stuck with the default /etc/profile setup.

4) Several ways but the easiest is to 'chmod 600 /etc/profile.d/bsd-games-login-fortune.sh' though that's global. (I like 'em myself - mostly.) :)

Man pages and just poking about the file system looking for cool stuff is good for brain-cramming. :)

minio 11-27-2003 04:16 PM

Quote:

Originally posted by digiot
1) swap file is easier to make, resize, remove - I dunno. They're rarely used. Partition has faster access thana file for some arcane reason, I think, but mainly helps with fragmentation. It's the usual.

I see no slowdown using swapfile instead of swap partition, but i've got 384 MB of memory and swap is used rarely. Fragmentation isn't problem unless you change swapfile size.

skog 11-27-2003 07:28 PM

you cant make fortune go away and if you did the computer would blow up, The world would stop turning, and everyone would fly off in different directions.

But if your willing to risk that ... then in /etc/profile.d just rename the bsd-games-login-fortune.sh and bsd-games-login.csh to bsd-games-login-fortune.sh-i-will-come-to-my-senses-and-rename-this-back-so-i-get-fortunes
and the same for bsd-games-login-fortune.csh ... this comes in the bsd console game package so the next time your installing just deselect that package if you *REALLY* dont want fortune messages.

slakmagik 11-27-2003 07:58 PM

Quote:

Originally posted by skog
you cant make fortune go away and if you did the computer would blow up, The world would stop turning, and everyone would fly off in different directions.

But if your willing to risk that ... then in /etc/profile.d just rename the bsd-games-login-fortune.sh and bsd-games-login.csh to bsd-games-login-fortune.sh-i-will-come-to-my-senses-and-rename-this-back-so-i-get-fortunes
and the same for bsd-games-login-fortune.csh ... this comes in the bsd console game package so the next time your installing just deselect that package if you *REALLY* dont want fortune messages.

:D Exactly - somebody should tell Patrick to move that into /a so people don't get confused.


All times are GMT -5. The time now is 08:33 PM.