Re: tuning a system for a single user

2011-04-04 Thread Adam Vande More
On Mon, Apr 4, 2011 at 7:32 PM, Eitan Adler  wrote:

> >  I believe no FreeBSD system is "single user". As root, daemon users,
> > system users, "nobody" is required for running system smoothly,
> > securely and easy, so scheduling is nessecary :)
>
> Obviously :-)
>
> I guess a better way to ask the question would be "for a desktop
> user". I see a lot tuning guides that show how to getting scalable
> systems - but few show potential changes for desktop users.
>

Some people have reported setting  kern.sched.preempt_thresh=224 yields a
smoother desktop experience, but I don't know exactly what that sysctl
actually changes, nor have I tried it myself.  I haven't experienced any
thing I would consider a problem with my FreeBSD desktop experience, but my
machines are relatively well powered.

If you're targeting something like an embedded system, I'd guess you'd find
the lowest hanging fruit by profiling a specific workload.  I imagine it
would start to get pretty complicated quite rapidly if you're in a complex
environment as what's good for one workload might be rather poor on another.

I might be way off in guessing your end goal, but what I would do on the
embedded system is develop a minimal baseline automated testing for each
subsystem(eg disk, network) then tie that into something like ministat(1)
and one of those graphing utilities.  Something like that could give you a
comprehensive picture of what changes to kernel, sysctl's, etc are doing to
performance.


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: tuning a system for a single user

2011-04-04 Thread Eitan Adler
On Mon, Apr 4, 2011 at 9:42 AM, Kristaps Kūlis  wrote:
> Hi,
>  I believe no FreeBSD system is "single user". As root, daemon users,
> system users, "nobody" is required for running system smoothly,
> securely and easy, so scheduling is nessecary :)

Obviously :-)

I guess a better way to ask the question would be "for a desktop
user". I see a lot tuning guides that show how to getting scalable
systems - but few show potential changes for desktop users.

-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: tuning a system for a single user

2011-04-04 Thread Kristaps Kūlis
Hi,
 I believe no FreeBSD system is "single user". As root, daemon users,
system users, "nobody" is required for running system smoothly,
securely and easy, so scheduling is nessecary :)
 Quotas / MAC / Auditing can be disabled by compiling your own kernel,
please refer to handbook for futher info.
 kern.maxusers is autotuned.

 FreeBSD is multiuser OS, if you wan't singleuser os, install FreeDOS :)

Kristaps Kūlis



On Sat, Apr 2, 2011 at 5:24 AM, Eitan Adler  wrote:
> When I look for tuning guides online, or reading tuning(7) I find a
> lot of guides for tuning a system for multiple users or for specific
> purposes (web servers, file servers, etc)
>
> I am looking for specific tunables that might make the experience of
> using FreeBSD better. I found the sysctl kern.maxusers but I'm unsure
> how things affects things.  Can I reduce the amount of time, memory,
> etc the kernel spends enforcing quota, scheduling, etc?
>
> I don't have anything particular in mind - just want to get a general
> set of tunables I might be interested in.
>
>
> --
> Eitan Adler
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: tuning a system for a single user

2011-04-03 Thread Peter Ulrich Kruppa

On Fri, 1 Apr 2011, Eitan Adler wrote:


When I look for tuning guides online, or reading tuning(7) I find a
lot of guides for tuning a system for multiple users or for specific
purposes (web servers, file servers, etc)

I am looking for specific tunables that might make the experience of
using FreeBSD better. I found the sysctl kern.maxusers but I'm unsure
how things affects things.  Can I reduce the amount of time, memory,
etc the kernel spends enforcing quota, scheduling, etc?

I don't have anything particular in mind - just want to get a general
set of tunables I might be interested in.

Since you have nothing particular in mind:
Did you have a look at
# man tuning
Might be a good starting point.

Greetings

Uli.




--
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"




| Peter Ulrich Kruppa
| Wuppertal
| Germany
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


tuning a system for a single user

2011-04-01 Thread Eitan Adler
When I look for tuning guides online, or reading tuning(7) I find a
lot of guides for tuning a system for multiple users or for specific
purposes (web servers, file servers, etc)

I am looking for specific tunables that might make the experience of
using FreeBSD better. I found the sysctl kern.maxusers but I'm unsure
how things affects things.  Can I reduce the amount of time, memory,
etc the kernel spends enforcing quota, scheduling, etc?

I don't have anything particular in mind - just want to get a general
set of tunables I might be interested in.


-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Tuning a system..

2004-03-15 Thread adp
We have a pretty high load mail server that does AV and spam filtering. I am
looking to perf. tune this machine. It's FreeBSD 4.9-REL and Postfix. I am
trying to correlate the info in systat to things I need to worry about. I am
using systat with vmstat output since that seems to basically show
everything you need to see. By the way, I did read 'man tuning'.

First, I see that my memory is fine:

3 usersLoad  9.75  4.46  3.24  Mar 15 17:02

Mem:KBREALVIRTUAL VN PAGER  SWAP PAGER
Tot   Share  TotShareFree in  out in  out
Act  1067128704  303637630772   35356 count
All  502468   37816  3878800   181488 pages

The major thing I'm looking at is SWAP PAGER:

SWAP PAGER
in   out

I see that I have processes in the run state and 14 waiting on the disk:

Proc:r  p  d  s  wCsw  Trp  Sys  Int  Sof  Flt
 814 77  6305 297429015  950 1863 2293

I have 77 processes sleeping.

I have 0 processes in w state, which means that my CPU isn't having a
problem.

I am spending a lot of time in sys and the rest in user:

49.5%Sys   1.7%Intr 44.5%User  0.0%Nice  4.4%Idl

Here are my disks:

Disks aacd0  acd0
KB/t  13.19  0.00
tps 111 0
MB/s   1.43  0.00
% busy2 0

>From %Sys I would say that disk is a problem for us. However, I'm having
problems really understanding the numbers for Disks. We are running the
server on RAID-1 (2 disks) IDE. What should I be looking for here?

Here is the right side:

2626 cow 867 total
106472 wireata0 irq14
147376 act 464 bge0 irq11
222104 inact   110 aac0 irq7
28304 cache   atkbd0 irq
6992 free100 clk irq0
daefr   128 rtc irq8
2841 prcfr
react
pdwake
pdpgs
intrn
62032 buf
508 dirtybuf
40239 desiredvnodes
38005 numvnodes
13105 freevnodes


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"