Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2006, 09:29 PM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default do you want your system to fly? (tips&tricks)
just put these lines in your /etc/rc.conf and reboot...

Code:
tmpmfs="YES"
tmpsize="64m"
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #2  
Old 03-14-2006, 09:31 PM
pcbsdusr pcbsdusr is offline
Senior Member
 
Join Date: May 2005
Location: Sesimbra-Portugal- EU
Posts: 1,617
Thanks: 0
Thanked 0 Times in 0 Posts
Default
so... what will this do exactly?
Reply With Quote
  #3  
Old 03-15-2006, 03:29 AM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
Do you mean something like this antik


I've never given much thought about it, Dual 3.0 Ghz cores /w 2MB L2 cache each + 2GB DDR2 Dual Channel RAM + 4GB alloted to a BSD Swap partition on the UFS2 slice, and 4GB of Page File to the NTFS Slice; even Windows XP runs acceptably fast.

KDE on an old low end office computer even ran fast enough with PC-BSD.
Reply With Quote
  #4  
Old 03-15-2006, 06:54 AM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by pcbsdusr
so... what will this do exactly?
This command allocate /tmp directory in memory, so temporary files made much faster then when it in a hard drive. I found that browsing web and opening documents in KDE are much faster than with standard configuration. Of course you have to have enough memory to do this. And another trick I did (a la Gentoo) recompiled all installed ports with i686 optimizations- I have Athlon XP 2500+ with Nforce2 chipset 512MB DDR400 (running in dual channel) and speed emprovement is touchable.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #5  
Old 03-15-2006, 01:28 PM
pcbsdusr pcbsdusr is offline
Senior Member
 
Join Date: May 2005
Location: Sesimbra-Portugal- EU
Posts: 1,617
Thanks: 0
Thanked 0 Times in 0 Posts
Default
sounds good to me. Maybe we could have an option for this in the system manager.


I do have a small doubt about this...

what happens if one runs out of ram? does it start writing to disk again? or does the system suffer from it?

If it writes to disk after all ram is full (or a percentage of all used ram - if we had this it would be very cool) it can be useful.

I was thinking we could have in the system manager the control for this.
1- how much ram can be used (percentage of all used ram) before it starts writing to the disk as usual.
2- on and off swiches
3 - make this auto. when the OS booted it could detect the ammount of memory and automatically define how much space could be used for this.

If we can do this it will be very cool. Unused ram IS wasted ram in the end.


About the i686 optimizations, All PC-BSD software (PBIs) should start being optimized like this. I remember your post at the Mailing list and i know kris will optimize our kernels for i686 from now on. If the apps get that treatment as well, better still!
Reply With Quote
  #6  
Old 03-15-2006, 07:41 PM
Majorlag Majorlag is offline
Senior Member
 
Join Date: Oct 2005
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Annother thing you can do is to turn off a bunch of the virtual terminals by editing /etc/ttys.
Reply With Quote
  #7  
Old 03-15-2006, 08:00 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
My question is how is this utilized on the file system? I have 200GB NTFS, 50GB FAT32, and 200GB UFS2 slices (with / and swap partitions), and 4.5GB Space I'm considering using for Linux, NetBSD, or OpenBSD; or keep for "Secure" file storage. Would this effect /tmp under my file system or would it be some thing more like /proc on linux.

____
Probably we should get a few VT instead of F1 for boot, F9 for X/KDE and F2-8 for other stuff for default.

I often go to F7 and F8 when I most log in, but have no need of GUI. (Although a xterm /w -geometry 220x80 would work too) or when I need to leave a Lynx/Vim running for later.
Reply With Quote
  #8  
Old 03-16-2006, 06:48 AM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by TerryP
My question is how is this utilized on the file system? I have 200GB NTFS, 50GB FAT32, and 200GB UFS2 slices (with / and swap partitions), and 4.5GB Space I'm considering using for Linux, NetBSD, or OpenBSD; or keep for "Secure" file storage. Would this effect /tmp under my file system or would it be some thing more like /proc on linux.

____
Probably we should get a few VT instead of F1 for boot, F9 for X/KDE and F2-8 for other stuff for default.

I often go to F7 and F8 when I most log in, but have no need of GUI. (Although a xterm /w -geometry 220x80 would work too) or when I need to leave a Lynx/Vim running for later.
/proc has nothing to do with filesystem actually- this is list of devices. Linux uses TMPFS to allocate temporary memory dynamically- I miss that part in FreeBSD.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #9  
Old 04-30-2006, 04:46 AM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
Good golly this works!!!

since I've reformated my PC-BSD partition and installed 1.0, I'm finally trying to configure things properly. And I must say, I like what I got so far ^_^

/etc/rc.conf
Code:
background_dhclient="YES"
hostname="localhost.localdomain"
hostname="WXBSD.GW.SAL1600"
compat5x_enable="YES"

NIC="de em ixgb txp vx bfe bge dc fxp lge nge pcn re rl sf sis sk ste ti tl tx vge vr wb xl cs ed ex ep fe ie lnc sn xe an awi wi"

for i in $NIC; do
      eval ifconfig_${i}0="DHCP"
      eval ifconfig_${i}1="DHCP"
done

blanktime="180"
saver="logo"
sshd_enable="YES"
usbd_enable="YES"
moused_type="auto"
moused_enable="YES"

#Enable samba server
samba_enable="NO"

# Disable LPD
lpd_enable="NO"

# Enable CUPS
cupsd_enable="YES"
background_cupsd="YES"
enable_linux="YES"

# FSCK Enhancements
fsck_y_enable="YES"
background_fsck="NO"
nfs_server_enable="NO"

#begin root edit on Sun Apr 30 00:08:10 PDT 2006

#Disable NFS & portmap just in case
nfs_server_enable="NO"
nfs_client_enable="NO"
portmap_enable="NO"

#wipe /tmp on boot
clear_tmp_enable="YES"

#antiks suggestion, creates tmp FileSystem in memory rather then write to disk
tmpmfs="YES"
tmpsize="64m"

#stop messing up my MOTD!
update_motd="NO"

#END edit
Reply With Quote
  #10  
Old 04-30-2006, 01:20 PM
pcbsdusr pcbsdusr is offline
Senior Member
 
Join Date: May 2005
Location: Sesimbra-Portugal- EU
Posts: 1,617
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Antik what happens if one needs more space than assigned to the fake tmp dir?
Does it write to the disk from that point forward? noone has answered this...
Reply With Quote
Reply

Thread Tools
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
Security tips mikael_l General Questions 5 02-12-2008 06:18 PM
Ports tricks dejamuse Tips and Tricks 9 11-13-2007 05:45 PM
Please no support questions here - Only tips and tricks Charles Tips and Tricks 0 08-11-2007 10:50 PM
Fastest CVSup Tips & Tricks dracheflieger Tips and Tricks 7 07-19-2006 05:16 AM
KDE tips&tricks antik The Lounge 1 05-04-2006 09:40 PM


All times are GMT. The time now is 12:02 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.