Re: am i back up....???

2011-04-04 Thread Bruce Cran
On Sun, 03 Apr 2011 13:04:39 -1000
Al Plant n...@hdk5.net wrote:

 Recently I've sent tests to a couple of our subscribers that I know 
 personally since the tests never came back. Thanks for the heads up
 as to why.
 
 Any chance of getting it fixed?

I told the admin about it last year and it doesn't appear to have been
fixed yet.

-- 
Bruce Cran
___
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: am i back up....???

2011-04-04 Thread Arthur Chance

On 04/04/11 01:15, Chad Perrin wrote:

On Mon, Apr 04, 2011 at 01:37:50AM +0200, Polytropon wrote:

On Sun, 3 Apr 2011 09:46:26 -0600, Chad Perrinper...@apotheon.com  wrote:

On Sun, Apr 03, 2011 at 03:43:59AM +0200, Polytropon wrote:


For example, you could install an IMAP interface for mail stored on
the server, so you can access it by any IMAP capable client you
want, and you could even install a web mail client (e. g.
roundcube) to bind to that IMAP inter- face. In my opinion, this is
way better than the POP/no-SMTP thing I'm currently doing.


Why Roundcube?  From what I've seen, it doesn't handle quote
indentation and marking properly.


Why not? :-)


Please tell me why you would want to inflict this kind of behavior on
others:

 
   For example, you could install an IMAP interface for mail
 stored on
   the server, so you can access it by any IMAP capable client you
   want, and you could even install a web mail client (e. g.
   roundcube) to bind to that IMAP inter- face. In my opinion,
 this is
   way better than the POP/no-SMTP thing I'm currently doing.

I've seen Roundcube do this crap.  It does *not* make me happy when
trying to skim through emails quickly -- and it can be bad when reading
more closely, too.


In the near future I'm probably going to have to implement a web mail 
system for times when my clients are travelling and don't have access to 
an IMAP capable client. If Roundcube isn't a decent solution, what is?


___
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: am i back up....???

2011-04-04 Thread Zbigniew Szalbot
Hello,

On 4 April 2011 11:41, Arthur Chance free...@qeng-ho.org wrote:

 In the near future I'm probably going to have to implement a web mail system 
 for times when my clients are travelling and don't have access to an IMAP 
 capable

I am not sure why some people are against RC - it seems that it can do
indentation and marking quite well (at least from what I have tried).
Give it a try.

Zbigniew Szalbot
___
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


Sleepy MRTG 2.17.1,1 on 8.2-STABLE

2011-04-04 Thread Trond Endrestøl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm running mrtg-2.17.1,1 on 8.2-STABLE #0: Sun Mar 6 16:31:09 CET 
2011 (which is a different system than the one sending this mail).

Even with

Interval: 5

in mrtg.cfg, it seems MRTG is sleeping double this amount.

Has anyone else besides me come across this issue?
MRTG (nor mrtg) is not mentioned in ports/UPDATING.

I haven't tried lowering the interval, so maybe a value of 3 seconds 
results in a sleep period of 6 seconds.


Trond.

- -- 
- --
Trond Endrestøl  | trond.endres...@fagskolen.gjovik.no
ACM, NAS, NUUG, SAGE, USENIX |FreeBSD 8.1-STABLE  Alpine 2.00

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk2Zsj0ACgkQbYWZalUoEltmCQCfbBhaT1be74co6DOlpCDFJWxE
MYUAn3qzJBUG9nqVltOdFp1wpXJePMSM
=jzEg
-END PGP SIGNATURE-___
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

Dell OMSA and FreeBSD

2011-04-04 Thread Traiano Welcome
Hi List

 Has anyone managed to get Dell's OpenManage Server Administrator (OMSA) 
software to run on FreeBSD ? I'm trying to configure advanced monitoring for 
FreeBSD 7.x and 8x installation on Dells recent R-series poweredge servers, and 
could really benefit from the advanced features provided by the OpenManage.

In particular, I'd like to get the following Nagios plugin to monitor my herd 
of freebsd dell servers:

http://folk.uio.no/trondham/software/check_openmanage.html#dell-openmanage-server-administrator

But it's heavily dependent on the omsa stuff, which currently seem to run on 
suse, rhel and ms-windows.

Thanks in Advance,
Traiano Welcome
___
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 li...@eitanadler.com 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: Dell OMSA and FreeBSD

2011-04-04 Thread Damien Fleuriot
On 4/4/11 1:47 PM, Traiano Welcome wrote:
 Hi List
 
  Has anyone managed to get Dell's OpenManage Server Administrator (OMSA) 
 software to run on FreeBSD ? I'm trying to configure advanced monitoring for 
 FreeBSD 7.x and 8x installation on Dells recent R-series poweredge servers, 
 and could really benefit from the advanced features provided by the 
 OpenManage.
 
 In particular, I'd like to get the following Nagios plugin to monitor my herd 
 of freebsd dell servers:
 
 http://folk.uio.no/trondham/software/check_openmanage.html#dell-openmanage-server-administrator
 
 But it's heavily dependent on the omsa stuff, which currently seem to run on 
 suse, rhel and ms-windows.
 
 Thanks in Advance,
 Traiano Welcome
 ___
 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


Seconded, we would dearly like to have more proactive monitoring on our
freebsd servers (lost redundant power supply for example) without all
the extra hassle that IPMI would require.


As a side note, the check_openmanage plugin also works fine on debian 4
etch, 5 lenny and 6 squeeze.
___
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: allBSD Japan servers ?

2011-04-04 Thread Ross Cameron
works just fine here (im in south africa) so maybe a routing issue ???




Opportunity is most often missed by people because it is dressed in
overalls and looks like work.
Thomas Alva Edison
Inventor of 1093 patents, including:
The light bulb, phonogram and motion pictures.



2011/3/28 Al Plant n...@hdk5.net

 Kouichiro Iwao wrote:
  On Fri, Mar 25, 2011 at 08:59:19AM -1000, Al Plant wrote:
  Aloha,
 
  Anybody know what happened to the http; or ftp servers for allbsd.org
  japan? Did the Tsumnami put them down?
 
  allbsd.org is hosted by Tokyo University of Science.  Probably, servers
  are still there but down due to lack of electricity. Numbers of power
  plants are damaged by earthquake.
 
  We provide just a portsnap server, portsnap.club.kyutech.ac.jp. Consider
  using it instead of allbsd's if you want.
 
 Aloha,

 Thanks for the message.

 I hope you all have better days soon.

 Thanks...


 ~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
 All that's really worth doing is what we do for others.- Lewis Carrol

 ___
 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: am i back up....???

2011-04-04 Thread Chad Perrin
On Mon, Apr 04, 2011 at 10:41:02AM +0100, Arthur Chance wrote:
 
 In the near future I'm probably going to have to implement a web mail 
 system for times when my clients are travelling and don't have access to 
 an IMAP capable client. If Roundcube isn't a decent solution, what is?

I'm afraid I'm not very well versed in the nuances of Webmail software.
I just know that receiving emails formatted by code that was apparently
written by prairie dogs (judging by how it screws up the formatting) is
suboptimal.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpHeEaDU1Tvs.pgp
Description: PGP signature


Re: allBSD Japan servers ?

2011-04-04 Thread Bruce Cran
On Mon, 4 Apr 2011 16:53:59 +0200
Ross Cameron ross.came...@unix.net wrote:

 works just fine here (im in south africa) so maybe a routing issue ???

It seems to have been fixed in the time between the original message
and your reply :)

-- 
Bruce Cran
___
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: Dell OMSA and FreeBSD

2011-04-04 Thread Traiano Welcome

(apologies for top-posting  - dumb client)

 I'd even be willing to try compiling the source for freebsd ... however I've 
found it next-to impossible to locate the source code :-(

Traiano



From: owner-freebsd-questi...@freebsd.org [owner-freebsd-questi...@freebsd.org] 
on behalf of Damien Fleuriot [m...@my.gd]
Sent: Monday, April 04, 2011 4:56 PM
To: freebsd-questions@freebsd.org
Subject: Re: Dell OMSA and FreeBSD

On 4/4/11 1:47 PM, Traiano Welcome wrote:
 Hi List

  Has anyone managed to get Dell's OpenManage Server Administrator (OMSA) 
 software to run on FreeBSD ? I'm trying to configure advanced monitoring for 
 FreeBSD 7.x and 8x installation on Dells recent R-series poweredge servers, 
 and could really benefit from the advanced features provided by the 
 OpenManage.

 In particular, I'd like to get the following Nagios plugin to monitor my herd 
 of freebsd dell servers:

 http://folk.uio.no/trondham/software/check_openmanage.html#dell-openmanage-server-administrator

 But it's heavily dependent on the omsa stuff, which currently seem to run on 
 suse, rhel and ms-windows.

 Thanks in Advance,
 Traiano Welcome
 ___
 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


Seconded, we would dearly like to have more proactive monitoring on our
freebsd servers (lost redundant power supply for example) without all
the extra hassle that IPMI would require.


As a side note, the check_openmanage plugin also works fine on debian 4
etch, 5 lenny and 6 squeeze.
___
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


ipdivert.ko

2011-04-04 Thread Sebastian Ramadan
I wish to cause ipdivert.ko to load at boot time. Currently, ipfw.ko loads
correctly at boot time with ipfw_load=YES in /boot/loader.conf, but
ipdivert.ko does not load at boot time with ipdivert_load=YES. I'm able to
load it using kldload, though. dmesg doesn't seem to be giving any clues as
to why ipdivert won't load... What am I doing wrong?

Regards, Sebastian Ramadan.
My uname -a, /boot/loader.conf, kldstat and a successful load of ipdivert
using kldload after boot time:
domU-12-31-39-02-15-3A# uname -a
FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb
21 20:13:46 UTC 2011
r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN
i386
domU-12-31-39-02-15-3A# cat /boot/loader.conf
ipfw_load=YES
ipdivert_load=YES
domU-12-31-39-02-15-3A# kldstat
Id Refs AddressSize Name
 18 0xc000 4000 kernel
 21 0xc2bb3000 1ext2fs.ko
 31 0xc2d1f000 11000ipfw.ko
 41 0xc2d3 d000 libalias.ko
domU-12-31-39-02-15-3A# uname -a
FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb
21 20:13:46 UTC 2011
r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN
i386
domU-12-31-39-02-15-3A# kldload ipdivert
domU-12-31-39-02-15-3A# kldstat
Id Refs AddressSize Name
 1   10 0xc000 4000 kernel
 21 0xc2bb3000 1ext2fs.ko
 32 0xc2d1f000 11000ipfw.ko
 41 0xc2d3 d000 libalias.ko
 51 0xc3cc7000 4000 ipdivert.ko

My dmesg:
domU-12-31-39-02-15-3A# dmesg
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-RELEASE #13: Mon Feb 21 20:13:46 UTC 2011
r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN i386
Xen reported: 2599.998 MHz processor.
Timecounter ixen frequency 1953125 Hz quality 0
CPU: Dual-Core AMD Opteron(tm) Processor 2218 HE (2600.00-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x40f13  Family = f  Model = 41  Stepping =
3

Features=0x1783fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x2001SSE3,CX16
  AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!
  AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8
Data TLB: 32 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way
associative
L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way
associative
real memory  = 644874240 (615 MB)
Physical memory chunk(s):
0x0062a000 - 0x25b4dfff, 626147328 bytes (152868 pages)
avail memory = 623058944 (594 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
io: I/O
mem: memory
Pentium Pro MTRR support enabled
random: entropy source, Software, Yarrow
null: null device, zero device
nfslock: pseudo-device
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: Xen Hypervisor Clock on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 100us)
xs_probe: Probe retuns 0
xenstore0: XenStore on motherboard
Grant table initialized
xc0: Xen Console on motherboard
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
[XEN] hypervisor wallclock nudged; nudging TOD.
lo0: bpf attached
xenbusb_front0: Xen Frontend Devices on xenstore0
xn0: Virtual Network Interface at device/vif/0 on xenbusb_front0
xn0: bpf attached
xn0: Ethernet address: 12:31:39:02:15:3a
xenbusb_back0: Xen Backend Devices on xenstore0
xctrl0: Xen Control Device on xenstore0
xbd0: 1024MB Virtual Block Device at device/vbd/2049 on xenbusb_front0
xbd0: attaching as da0
GEOM: new disk da0
xbd1: 9216MB Virtual Block Device at device/vbd/2064 on xenbusb_front0
xbd1: attaching as da1
GEOM: new disk da1
Trying to mount root from ufs:da1s1
rtc0: [XEN] xen_rtc_gettime
rtc0: [XEN] xen_rtc_gettime: wallclock 1290456569 sec; 919153165 nsec
rtc0: [XEN] xen_rtc_gettime: uptime 11380100 sec; 82341069 nsec
rtc0: [XEN] xen_rtc_gettime: TOD 1301836670 sec; 1494234 nsec
start_init: trying /sbin/init
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based
forwarding disabled, default to deny, logging disabled
ipfw0: bpf attached
___
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: allBSD Japan servers ?

2011-04-04 Thread Kouichiro Iwao
It have been recovered from hardware failure on Mar 28th.

On Mon, Apr 04, 2011 at 04:53:59PM +0200, Ross Cameron wrote:
 works just fine here (im in south africa) so maybe a routing issue ???

-- 
kiwao m...@club.kyutech.ac.jp
___
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


swap_pager: out of swap space, swap_pager_getswapspace(16): failed

2011-04-04 Thread Paul Chany

Hi,

On FreeBSD RELEASE 8.2 I'm trying to install sudo with commands:

# cd /usr/ports/security/sudo/
# make install clean
..
swap_pager: out of swap space
swap_pager_getswapspace(16): failed
..
c++: Internal error: Killed: 9 (program cc1plus)
..
..
*** Error code 1

What can I do to solve this problem?

--
Best Regards,
Paul

___
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: swap_pager: out of swap space, swap_pager_getswapspace(16): failed

2011-04-04 Thread Chuck Swiger
On Apr 4, 2011, at 11:56 AM, Paul Chany wrote:
 swap_pager: out of swap space
 swap_pager_getswapspace(16): failed
 ..
 c++: Internal error: Killed: 9 (program cc1plus)
 ..
 ..
 *** Error code 1
 
 What can I do to solve this problem

Your system ran out of VM.  Add more RAM, or add more swapspace, or consider 
top -o size and kill off anything huge.  Also, compiling with -O0 or -O 
instead of the default -O2 will reduce the size of the compiler process 
significantly.

Regards,
-- 
-Chuck

___
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: allBSD Japan servers ?

2011-04-04 Thread Bruce Cran
On Tue, 5 Apr 2011 03:41:52 +0900
Kouichiro Iwao m...@club.kyutech.ac.jp wrote:

 It have been recovered from hardware failure on Mar 28th.

There's something strange going on with IPv6 connectivity to the server
(not new - it's been happening for over a year) - over IPv4 it's quite
fast but IPv6 is really slow - I only get around 12 kB/s from the UK.
From looking at things at my end it looks like a problem with a machine
somewhere between the USA and Japan, but I don't know if the path's
symmetric. It's been suggested that it might be a TCP windowing
problem on one of the links though.

-- 
Bruce Cran
___
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


how to increase stacksize?

2011-04-04 Thread Anton Shterenlikht
Hi, I'm using tcsh.
I get:

TZAV limits
Resource limits (current):
  cputime  infinity secs
  filesize infinity kB
  datasize  1048576 kB
  stacksize  262144 kB
  coredumpsize infinity kB
  memoryuseinfinity kB
  memorylocked infinity kB
  maxprocesses 5547
  openfiles   11095
  sbsize   infinity bytes
  vmemoryuse   infinity kB
  pseudo-terminals infinity
  swapuse  infinity kB
TZAV 

I'd like to increase stacksize.
How do I do this?

limits -s xxx doesn't set the limits,
any anyway, in /etc/login.conf I get:

default:\
:passwd_format=md5:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin 
/usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\
:datasize=unlimited:\
:stacksize=unlimited:\
:memorylocked=unlimited:\
:memoryuse=unlimited:\
:filesize=unlimited:\
:coredumpsize=unlimited:\
:openfiles=unlimited:\
:maxproc=unlimited:\
:sbsize=unlimited:\
:vmemoryuse=unlimited:\
:swapuse=unlimited:\
:pseudoterminals=unlimited:\
:priority=0:\
:ignoretime@:\
:umask=022:


So where do my shell settings come from?

Many thanks
Anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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: swap_pager: out of swap space, swap_pager_getswapspace(16): failed

2011-04-04 Thread Paul Chany

2011-04-04 21:01 keltezéssel, Chuck Swiger írta:

On Apr 4, 2011, at 11:56 AM, Paul Chany wrote:
   

swap_pager: out of swap space
swap_pager_getswapspace(16): failed
..
c++: Internal error: Killed: 9 (program cc1plus)
..
..
*** Error code 1

What can I do to solve this problem
 

Your system ran out of VM.  Add more RAM, or add more swapspace, or consider top -o 
size and kill off anything huge.  Also, compiling with -O0 or -O instead of the 
default -O2 will reduce the size of the compiler process significantly.

Regards,
   
I follow the link: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html


I did create a swapfile, and run again command: '# make install clean'.
Since thet it being running on my old Toshiba laptop that had 64 MB RAM 
and 16 MB swap space but with swapfile it has much more VM.


Thanks!

Regards,
Paul

___
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: how to increase stacksize?

2011-04-04 Thread Chuck Swiger
On Apr 4, 2011, at 12:50 PM, Anton Shterenlikht wrote:
 I'd like to increase stacksize.  How do I do this?

Set kern.maxssiz in /boot/loader.conf to a larger value-- also consider 
tweaking kern.dflssiz, unless you want to use limit/ulimit before invoking the 
process.  I don't believe you can change it for a running system via sysctl, 
although I could be mistaken on that

Regards,
-- 
-Chuck

___
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: swap_pager: out of swap space, swap_pager_getswapspace(16): failed

2011-04-04 Thread Chuck Swiger
On Apr 4, 2011, at 12:59 PM, Paul Chany wrote:
 I follow the link: 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html
 
 I did create a swapfile, and run again command: '# make install clean'.
 Since thet it being running on my old Toshiba laptop that had 64 MB RAM and 
 16 MB swap space but with swapfile it has much more VM.
 
 Thanks!

You're most welcome.  With only 64MB of RAM, you probably want at least 256MB 
of swapspace handy, but that depends on what you are running, of course...

Regards,
-- 
-Chuck

___
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: how to increase stacksize?

2011-04-04 Thread Anton Shterenlikht
On Mon, Apr 04, 2011 at 09:00:16PM +0100, Mark Blackman wrote:
 
 On 4 Apr 2011, at 20:50, Anton Shterenlikht wrote:
 
 [snip]
  
  I'd like to increase stacksize.
  How do I do this?
  
  limits -s xxx doesn't set the limits,
  any anyway, in /etc/login.conf I get:
  
  So where do my shell settings come from?
 
 stacksize is ultimately a kernel limit, and the hard
 maximum is visible with 
 
 sysctl kern.maxssiz
 
 set 'kern.maxdxiz' in your /boot/loader.conf and reboot
 if you're already hitting the hard limit.
 
 - Mark

Mark, thank you.

kern.maxssiz: 268435456
kern.maxdsiz: 1073741824
kern.maxtsiz: 1073741824

Is the second limit datasize?

What is the 3rd limit?

Is this documented anywhere?
I can't seem to find it here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-kernel-limits.html

Many thanks
Anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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: how to increase stacksize?

2011-04-04 Thread Anton Shterenlikht
On Mon, Apr 04, 2011 at 01:03:28PM -0700, Chuck Swiger wrote:
 On Apr 4, 2011, at 12:50 PM, Anton Shterenlikht wrote:
  I'd like to increase stacksize.  How do I do this?
 
 Set kern.maxssiz in /boot/loader.conf
 to a larger value-- also consider
 tweaking kern.dflssiz,

What does this limit?

Is it documented anywhere?

 unless you want to use limit/ulimit
 before invoking the process.
  I don't believe you can change it
 for a running system via sysctl,
 although I could be mistaken on that

Many thanks
Anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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: how to increase stacksize?

2011-04-04 Thread Chuck Swiger
On Apr 4, 2011, at 1:17 PM, Anton Shterenlikht wrote:
 Set kern.maxssiz in /boot/loader.conf
 to a larger value-- also consider
 tweaking kern.dflssiz,
 
 What does this limit?
 
 Is it documented anywhere?


It appears to be documented in the manpages:

  http://www.freebsd.org/cgi/man.cgi?query=tuningsektion=7
  http://www.freebsd.org/cgi/man.cgi?query=loadersektion=8

...and sys/boot/forth/loader.conf says:

#hw.physmem=1G# Limit physical memory. See loader(8)
#kern.dfldsiz=# Set the initial data size limit
#kern.dflssiz=# Set the initial stack size limit
#kern.hz=100  # Set the kernel interval timer rate
#kern.maxbcache=  # Set the max buffer cache KVA storage
#kern.maxdsiz=# Set the max data size
#kern.maxfiles=   # Set the sys. wide open files limit
#kern.maxproc=# Set the maximum # of processes
#kern.maxssiz=# Set the max stack size
#kern.maxswzone=  # Set the max swmeta KVA storage
#kern.maxtsiz=# Set the max text size

Regards,
-- 
-Chuck

___
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: how to increase stacksize?

2011-04-04 Thread Mark Blackman

On 4 Apr 2011, at 20:50, Anton Shterenlikht wrote:

[snip]
 
 I'd like to increase stacksize.
 How do I do this?
 
 limits -s xxx doesn't set the limits,
 any anyway, in /etc/login.conf I get:
 
 So where do my shell settings come from?

stacksize is ultimately a kernel limit, and the hard
maximum is visible with 

sysctl kern.maxssiz

set 'kern.maxdxiz' in your /boot/loader.conf and reboot
if you're already hitting the hard limit.

- Mark


___
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: how to increase stacksize?

2011-04-04 Thread Mark Blackman

On 4 Apr 2011, at 21:00, Mark Blackman wrote:
 
 set 'kern.maxdxiz' in your /boot/loader.conf and reboot
 if you're already hitting the hard limit.

hmm, edit failure there. 'kern.maxssiz' is what I meant of
course.


___
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: how to increase stacksize?

2011-04-04 Thread Anton Shterenlikht
On Mon, Apr 04, 2011 at 01:21:16PM -0700, Chuck Swiger wrote:
 On Apr 4, 2011, at 1:17 PM, Anton Shterenlikht wrote:
  Set kern.maxssiz in /boot/loader.conf
  to a larger value-- also consider
  tweaking kern.dflssiz,
  
  What does this limit?
  
  Is it documented anywhere?
 
 
 It appears to be documented in the manpages:
 
   http://www.freebsd.org/cgi/man.cgi?query=tuningsektion=7
   http://www.freebsd.org/cgi/man.cgi?query=loadersektion=8
 
 ...and sys/boot/forth/loader.conf says:
 
 #hw.physmem=1G# Limit physical memory. See loader(8)
 #kern.dfldsiz=# Set the initial data size limit
 #kern.dflssiz=# Set the initial stack size limit
 #kern.hz=100  # Set the kernel interval timer rate
 #kern.maxbcache=  # Set the max buffer cache KVA storage
 #kern.maxdsiz=# Set the max data size
 #kern.maxfiles=   # Set the sys. wide open files limit
 #kern.maxproc=# Set the maximum # of processes
 #kern.maxssiz=# Set the max stack size
 #kern.maxswzone=  # Set the max swmeta KVA storage
 #kern.maxtsiz=# Set the max text size
 
 Regards,
 -- 
 -Chuck
 

Many thanks. I was trying to learn
by looking at sys/kern/subr_param.c, but
this is much more informative.

Anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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: allBSD Japan servers ?

2011-04-04 Thread Kouichiro Iwao
Excuse me, I cannot say anything helpful about IPv6 connection. I'm not an
insider of allbsd.org, the administrator just informed me of recovery.
Why don't you ask the administrator (ad...@allbsd.org)?

On Mon, Apr 04, 2011 at 08:20:28PM +0100, Bruce Cran wrote:
 On Tue, 5 Apr 2011 03:41:52 +0900
 Kouichiro Iwao m...@club.kyutech.ac.jp wrote:
 
  It have been recovered from hardware failure on Mar 28th.
 
 There's something strange going on with IPv6 connectivity to the server
 (not new - it's been happening for over a year) - over IPv4 it's quite
 fast but IPv6 is really slow - I only get around 12 kB/s from the UK.
 From looking at things at my end it looks like a problem with a machine
 somewhere between the USA and Japan, but I don't know if the path's
 symmetric. It's been suggested that it might be a TCP windowing
 problem on one of the links though.
 
 -- 
 Bruce Cran
 ___
 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

-- 
kiwao m...@club.kyutech.ac.jp
___
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: allBSD Japan servers ?

2011-04-04 Thread Al Plant

Ross Cameron wrote:

works just fine here (im in south africa) so maybe a routing issue ???




Opportunity is most often missed by people because it is dressed in
overalls and looks like work.
Thomas Alva Edison
Inventor of 1093 patents, including:
The light bulb, phonogram and motion pictures.



2011/3/28 Al Plant n...@hdk5.net


Kouichiro Iwao wrote:

On Fri, Mar 25, 2011 at 08:59:19AM -1000, Al Plant wrote:

Aloha,

Anybody know what happened to the http; or ftp servers for allbsd.org
japan? Did the Tsumnami put them down?

allbsd.org is hosted by Tokyo University of Science.  Probably, servers
are still there but down due to lack of electricity. Numbers of power
plants are damaged by earthquake.

We provide just a portsnap server, portsnap.club.kyutech.ac.jp. Consider
using it instead of allbsd's if you want.


Aloha,

Thanks for the message.

I hope you all have better days soon.

Thanks...


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org +
 + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
  email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
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


Aloha List,

Yes: I think the allBSD servers came up the end of last week.

--

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
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 8.2 on amd64 opteron

2011-04-04 Thread David Collins
Hi List,

I have been using FreeBSD for a number of years and love it. I have a
friend who is competent it linux and wanted me to help him get started
with BSD. 

He has an amd64 opteron dual core 2GHz w/ 4G memory. Not realising we
installed the i386 version of freebsd 8.0 and upgraded to 8.2 without
any problem. We then tried the amd64 version of 8.2 which installed
without any problems. However, when we log in the system either
reboots or panics with a message on the screen within about 10
minutes. 

I have googled around and not found very much information about this.
Does anyone have any ideas that I can try to overcome this?

Thanks

David Collins


___
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: remaining goal.. .

2011-04-04 Thread David Brodbeck
On Sat, Apr 2, 2011 at 4:56 PM, Gary Kline kl...@thought.org wrote:
        simply that i'm looking for somebody  who know how to transfer pfsense
        from a standalone system to this kit.

I would suggest using Diagnostics/Backup/restore on the current system
to save a copy of the configuration in a .xml file.

Then install pfSense on the new machine by whatever means are
available -- I think the current two options are bootable CD-R and
bootable USB stick, but there may be others for embedded systems  --
I'm not familiar with those.

Once pfSense is installed and running, you can use your .xml file to
upload the new configuration to it, again via Backup/Restore.

Hope this helps.  If you need more detailed help I suggest checking
out the forums on pfsense.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: am i back up....???

2011-04-04 Thread David Brodbeck
On Mon, Apr 4, 2011 at 2:41 AM, Arthur Chance free...@qeng-ho.org wrote:
 In the near future I'm probably going to have to implement a web mail system
 for times when my clients are travelling and don't have access to an IMAP
 capable client. If Roundcube isn't a decent solution, what is?

I kind of like SquirrelMail.  It handles threading better than most of
the open-source webmail systems, although that's a pretty low bar. ;)

To be honest, though, a few months ago I realized that I was primarily
using webmail (due to using a lot of different workstations), that
spam was getting worse and worse, and that none of my available
webmail and spam-filtering options were working as well as the ones
that were on my Gmail account.  So I switched my personal domain over
to a free Google Apps account.  I've been pretty pleased with it so
far.  There's nothing wrong with running a personal email server if
that's your thing, but in my case it had long since ceased to be fun
and was just one more thing to maintain.
___
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: Can't rebuild kernel with ZFS v15

2011-04-04 Thread Andre Goree
I actually DID do this and had it working when using the generic kernel  
that was built.  Again, I DID upgrade the zpool, that was why I couldn't  
mount the zpool (which had been upgraded to v15) when the system was  
rebuilt, because the SYSTEM has v14.


This turned out to be a problem with my sources that I've since corrected,  
and now all is working :)


Thanks for your input and to everyone else who helped.


On Fri, 01 Apr 2011 02:31:59 -0500, krad kra...@gmail.com wrote:


On 29 March 2011 10:05, Andre Goree an...@drenet.info wrote:


Thank you for responding.

For two reasons I know it's running zfs v14 after the rebuild:

1)  During boot, a message shows:

ZFS Filesystem version 4
ZFS Storage pool version 14

2)  After getting to the failed root mount point of the boot (after it
fails to mount my zfs root), I enter:

ufs:/dev/ad4s1a

to get to my boot partition (which must remain UFS obviously, hehe), and
try to mount my pools with the 'zfsmount' command, however it errors  
with

something similar to:

storage pool version does not match

I can only get my system working again by manually moving /boot/kernel  
to
/boot/kernel.bad (or whatever) and replacing it with the previous  
kernel.


:(



On Tue, 29 Mar 2011 03:40:17 -0500, krad kra...@gmail.com wrote:

 On 28 March 2011 10:37, Andre Goree an...@drenet.info wrote:


 Hello,


Ever since I upgraded to 8.2 a few weeks ago, I can't seem to rebuild  
my

kernel without it being built with ZFS v14 rather than v15.  This is a
problem because I'm using root on ZFS and my box won't boot after the
kernel
rebuild and reboot.

At first I thought it was because I rebuilt the kernel without  
rebuilding

world, however the same thing happens even after getting up-to-date
sources
and rebuilding world.  Anyone else having this problem?

Thanks in advance.

Andre Goree
an...@drenet.info
___
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


what is making you think you are running zfs v14? Are you looking at  
zpool

status?
___
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




--
Andre Goree
an...@drenet.info
___
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




as i thought, it doesnt look like you have done a ZPOOL UPGRADE to  
upgrade
the pool to version 15. You can also do a zfs upgrade to update the  
file

systems as well
___
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



--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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: freebsd 8.2 on amd64 opteron

2011-04-04 Thread Ilya Kazakevich
Could you provide us this message?

On Tue, Apr 5, 2011 at 2:08 AM, David Collins davidcollins...@gmail.comwrote:

 Hi List,

 I have been using FreeBSD for a number of years and love it. I have a
 friend who is competent it linux and wanted me to help him get started
 with BSD.

 He has an amd64 opteron dual core 2GHz w/ 4G memory. Not realising we
 installed the i386 version of freebsd 8.0 and upgraded to 8.2 without
 any problem. We then tried the amd64 version of 8.2 which installed
 without any problems. However, when we log in the system either
 reboots or panics with a message on the screen within about 10
 minutes.

 I have googled around and not found very much information about this.
 Does anyone have any ideas that I can try to overcome this?

 Thanks

 David Collins


 ___
 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: remaining goal.. .

2011-04-04 Thread Gary Kline
On Mon, Apr 04, 2011 at 03:39:19PM -0700, David Brodbeck wrote:
 On Sat, Apr 2, 2011 at 4:56 PM, Gary Kline kl...@thought.org wrote:
         simply that i'm looking for somebody  who know how to transfer 
  pfsense
         from a standalone system to this kit.
 
 I would suggest using Diagnostics/Backup/restore on the current system
 to save a copy of the configuration in a .xml file.


Done.  in fact i have two copies.


 
 Then install pfSense on the new machine by whatever means are
 available -- I think the current two options are bootable CD-R and
 bootable USB stick, but there may be others for embedded systems  --
 I'm not familiar with those.


That is axactly my problem.  This is a tiny 4watt kit type
deal, all solid state with with memory that requires some
special kind of burner.  [I have the latest pfSense tarball 
and my .xml restore/update file.  ... so, software side, i'm
all set.]


 
 Once pfSense is installed and running, you can use your .xml file to
 upload the new configuration to it, again via Backup/Restore.
 
 Hope this helps.  If you need more detailed help I suggest checking
 out the forums on pfsense.org.


I  _may_ have found somebody in the metro area who may find 
the time.  He says it's not a matter of $$$, but I'll stuff it 
in his shoes if i have to.   If this guy doesn't come thru, then 
it is back to the pfsense forum.


 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.98a release of Jottings: http://jottings.thought.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[4]: graphical representation of `du`

2011-04-04 Thread Австин Ким
Sun, 3 Apr 2011 20:57:24 +0100 письмо от Chris Rees utis...@gmail.com:

 On 3 April 2011 20:26, Австин Ким avs...@mail.ru wrote:
  Sun, 03 Apr 2011 12:01:24 +0200 письмо от David Demelier
 demelier.da...@gmail.com:
 
  On 02/04/2011 19:30, Chris Rees wrote:
   On 2 April 2011 18:22, Chris Reesutis...@gmail.com  wrote:
   On 2 April 2011 18:07, Mike Jeaysmike.je...@rogers.com  wrote:
   On Sat, 2 Apr 2011 17:15:04 +0100
   Chris Reesutis...@gmail.com  wrote:
  
   du -h . | awk '{a[i++]=$0} END {for (j=i-1; j=0;) print a[j--] }' |
   awk '{print($2 [$1]);}' | sed -e 's,[^-][^/]*/,--,g' -e 's,^,|,'
  
  
   I confess to being impressed...
  
  
   Yeah, but perhaps I should have used sed instead of the second awk;
   fewer processes:
  
   du -h | awk '{a[i++]=$0} END {for (j=i-1; j=0;) print a[j--] }' | sed
   -e 's,^[^1-9]*\([^___CTRL-V+TAB__]*\)CTRL-V+TAB_*\(.*\)$,\2
   \[\1\],;s,[^-][^/]*/,--,g;s,^,|,'
  
   That does exactly the same --  where I've put CTRL-V+TAB__ you
   have to type Ctrl-V, then a literal [::tab::] key; BSD sed doesn't do
   \t.
  
   Chris
  
  
   Final version:
  
   http://www.bayofrum.net/~crees/graphical_du.sh
  
   Maybe I should port it...
  
 
  Thanks! This rocks! :-)
 
 
  What a fun thread :)
 
  Here's my two cents, written as an sh(1) function that you can tack on to
 the end of your .profile or .shrc:
  (Caveats:  I'm writing this on a Mac OS X machine, not on a FreeBSD machine,
 at the moment, but hopefully this'll still work.
  Also, the following will mess up if you have directories whose names begin
 with |.)
 
  # dg:  `du--graphical'
  # Usage:  dg [dir ...]
  # Based on script by Chris Rees
  # 1459 Sunday, 3 April 2011
 
  dg ( ) {
   du -h $@ |
     awk '{FS=\t; print $2\t[$1]}' |
     sort |
     sed -e 's:[^/]*/:| :g' -e 's:\(^\(| \)*\)| \([^|].*\):\1+-\3:'
   return
   }
 
 I used the awk a[i++]=$0} END {for (j=i-1; j=0;) print a[j--]  etc to
 reverse the order, rather than alphabetise it because it's quicker:
 
 $ du -h . | time sort /dev/null 2time
 $ cat time
 8.17 real 0.03 user 0.00 sys
 $ du -h . | time awk '{a[i++]=$2} END { for (j=i-1; j=0;) print
 a[j--] }' /dev/null 2time2
 $ cat time2
 7.77 real 0.14 user 0.00 sys
 
 YMMV of course!
 
 Chris

I can't argue with that.  If you're a sysadmin and are managing a large system,
the sort could take some time.  On the other hand, there are times when a sort
might be useful.  Then again, you could always just comment that line out :)

Which reminds me, my sort line above may not sort intuitively in the case where
directory names contain characters that precede / in the ASCII character set;
for example, mydir-old sorts before mydir/ in ASCII.  A quick kludge is to
translate slashes into, oh I don't know, say carriage returns before the sort,
and then translate them back after the sort, as is done below.  An inelegant
and inefficient solution, but it works.  However, I'm going out on a limb by
assuming users won't be running this script under MS-DOS, where this kludge
wouldn't work.

Another problem with my script above is that in some cases, if you run it on
multiple arguments, e. g., dg dir1/subdir dir2/subdir, you can't tell from
the output to which parent directory the subdirectory refers; to deal with
this problem, the revised version below runs du on each argument one at a time.
However, I ended up having to duplicate the main command in the script (once
for dg with arguments, and once without), 'cause I'm not clever enough to
figure out a way to combine the two cases into one in time to post this.

I also had a redundant [^|] in the sed expression which I took out; it
shouldn't be necessary, although the script will still mess up if any directory
names start with | .

Finally, the revised version is repackaged as a proper sh(1) script like your
original script rather than as a function, to make it independent of a user's
particular shell.  Obviously further variations and improvements could be made.

Again I'm away from my FreeBSD machine and am writing this on a Mac OS X
machine; hopefully I didn't break anything.

#!/bin/sh
#
# dg:  `du--graphical'
# Usage:  dg [dir ...]
#
# Based on script by Chris Rees
# 1459 Sunday, 3 April 2011
#
# Modified:  1900 Monday, 4 April 2011

if [ $1 ]
   then for i in $@
do if [ $2 ]
  then echo
   echo $i:
   fi
   du -h $i |
  awk '{FS=\t; print $2\t[$1]}' |
  tr / '\r' |
  sort |
  tr '\r' / |
  sed -e 's:[^/]*/:| :g' -e 's:\(^\(| \)*\)| \(.*\):\1+-\3:'
done
   else du -h |
   awk '{FS=\t; print $2\t[$1]}' |
   tr / '\r' |
   sort |
   tr '\r' / |
   sed -e 's:[^/]*/:| :g' -e 's:\(^\(| \)*\)| \(.*\):\1+-\3:'
fi___
freebsd-questions@freebsd.org mailing list

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 kristaps.ku...@gmail.com 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 Adam Vande More
On Mon, Apr 4, 2011 at 7:32 PM, Eitan Adler li...@eitanadler.com 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