How To Fix "Use of assignment to $[ is deprecated"

2011-10-15 Thread Drew Tomlinson
Somehow while trying to upgrade my ports, I got things out of whack.  
The final straw was that perl got upgraded from 5.8.9 to 5.12.4.  I've 
read the notes in UPDATING but they are not helping my situation.  
Finally, I just decided that a "portupgrade -af" would be in my best 
interest.  However now portupgrade complains that "Makefile possibly 
broken" and then give this more relevant error:


Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86.

This seems to be the case for just about any port I try and fix.  I 
think this file is part of apache22 so I attempted to rebuild it.  It 
compiles fine but fails on the install portion with this output:


--->  Installing the new version via the port
===>  Installing for apache-2.2.21
===>   apache-2.2.21 depends on file: /usr/local/bin/perl5.12.4 - found
===>   apache-2.2.21 depends on shared library: expat.6 - found
===>   apache-2.2.21 depends on shared library: apr-1 - found
===>   apache-2.2.21 depends on shared library: pcre.0 - found
===>   apache-2.2.21 depends on shared library: iconv.3 - found
===>   Generating temporary packing list
Making install in srclib
Making install in os
Making install in unix
Making install in server
Making install in mpm
Making install in prefork
find: /usr/local/include/apr-1/apr.h: No such file or directory
...

And then includes "No such file or directory" for 2-3 screens of files.

How can I fix my system?

Thanks,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com


___
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: OT: how to tell when i've hit a Fn key?

2011-10-08 Thread Polytropon
On Fri, 7 Oct 2011 12:01:29 -0700, Gary Kline wrote:
>   i still have a few mile--maybe lightyears--to go, but
>   slowly...slowly this is coming back.  when ken arnold was
>   working on the early versions of curses i was
>   still learning C.  i dont remembr any arrow keys on the old
>   AMD3a terms so wasn't that interested in things-termcap.

The UNIX termcap representation differs from what programmers
of DOS time (not _that_ DOS, the other one) can remember. So
relying on NCurses is the optimal way to go, as it proves to
be most portable across UNIX and the various Linusi.



>   but what i'm doing with my clicky-keys for those FEW of use
>   who like feedback =proves= that, yes, there are new and
>   interesting uses for curses.  :_)  

Oh yes, there _are_ interesting uses for (n)curses. :-)



>   i have writeen the rough draft of a curses [or Ncurses]
>   test program that gets rid of the rat-a-tat-tat WAV response 
>   whenever i hit a non-std key.  say "home" or up-arrow, or
>   F12 or Scroll Lock.  how long it will be before i've joined
>   this test program with my kclick stuff is unknown.  maybe 45
>   mins, maybe 75 years. [[that's IFF they've got programming
>   in hell]]

They have. Never wondered where "Windows" comes from? :-)



>   **Change-of-topic:
> 
>   the GUI editor that has vi bindings is kate.  unfortunately,
>   kate has no abbrevs.   i asked the principal developer about
>   that.  no answer.  his site has a .de suffix.  (i was
>   wondering if he doesn't speak english.  he may be like me, 
>   a linguistic dimwit.  then again, he may not think much of
>   my idea.  or overwhelingly busy... .)

Programmers with no English skillz... hard to believe, but well,
in our modern times of "rapid application development" and layers
of layers of abstraction of libraries of layers of libraries of
abstraction of (cont. ad naus.) it wouldn't be a big surprise. :-)



>   anyway, for now, i think having a GUI editor that the speech
>   disabled can use to have their computer speak what they type
>   is better than using something like vim/gvim. 

Depends. When moving a mouse pointer or chasing across a full-sized
keyboard gets complicated (e. g. with limited movement of arm),
the "vi concept" may be superior, especially when the user does
more than just writing some few sentences, say he writes a complete
document (letter, essay, book); in this case, _not_ having too
much shift/alt/ctrl layers could be a benefit. Of course I do
acknowledge that using this approach requires learning and
training. Those who use vi on a regular basis do know this.

The strength of the "vi concept" is that the letter keys and
the "mode switch" Esc basically can do all the stuff other
editors need Ctrl-something, Alt-something, click-something
for - which can be hard to do under specific circumstances.



> the One
>   Laptop per Child bunch are still interested.  their device
>   has a membrane kybd.  i have heard that the keys are
>   somewhat hard to use.  

That's typical for lowest-end keyboards. Remember IBM's PCjr?
Also came with a weird keyboard. Today, you need to stick to
old keyboards (and adapters DIN -> PS/2 -> USB -> ?) when you
intendedly want a _good_ keyboard. :-)

The membrane keyboards often lack a usable tactile feedback
(as touch-interfaces do), so they might not be 1st choice in
every place.



>   IF there is another GUI editor that has builtin
>   abbreviations that you guys know of, please senf up some
>   smoke signals:)

Abbreviations are a _professional_ feature, while GUI editors
do not seem to cater the kind of users who _want_ those features,
they are not the primary target group. The result: Some GUI
editors even have limited keyboard support, expecting a
continuous "click & wait" flow.

Summary: Depends.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: OT: how to tell when i've hit a Fn key?

2011-10-07 Thread Gary Kline
On Fri, Oct 07, 2011 at 09:56:20AM +0200, Polytropon wrote:
> Date: Fri, 7 Oct 2011 09:56:20 +0200
> From: Polytropon 
> Subject: Re: OT: how to tell when i've hit a Fn key?
> To: Robert Bonomi 
> Cc: freebsd-questions@freebsd.org
> X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2)


See 90+ lines below!
> 
> On Fri, 7 Oct 2011 02:36:49 -0500 (CDT), Robert Bonomi wrote:
> > 
> > > Date: Fri, 7 Oct 2011 09:18:57 +0200
> > > From: Polytropon 
> > > Cc: FreeBSD Mailing List 
> > > Subject: Re: OT: how to tell when i've hit a Fn key?
> > >
> > > On Thu, 6 Oct 2011 15:41:17 -0700, Gary Kline wrote:
> > > > 
> > > > I've got a 103-key keyboard.  most  of them produce the right WAV
> > > > file.  i was having some trouble with the arrow key, but think i've
> > > > found a resolution.  next are the Function key, F1 to F12. 
> > > > 
> > > > anybody on-list familiar with curses and can help me  with this?
> > > > right now, most of the function keys output 4 clicks [!].  
> > >
> > > Capturing PF keys is very easy with ncurses.
> > > The macro KEY_F(n), n=1..12, can be checked
> > > as the result of the getch() function. The
> > > other "special keys" also have such macros
> > > assigned. You can find them in the header
> > > file /usr/local/include/ncurses/ncurses.h
> > > around line 1400.
> > 
> > No need to go chasing that far. 
> > 
> >#include 
> > 
> > pulls in the macro definitions as well.
> 
> That's what I wanted to suggest. :-)
> The NCurses function getch() deals well with the
> key macros defined here, so no need to deal with
> the zero-byte manually.
> 
> 
> 
> > KEY_F(n) supports 'n' values in the range from 0 to 64.  
> > value of this macro is a range of 64 consecutive values, starting with
> > KEY_F0 -- which is defined as *octal* 0410
> > 
> > it may take a little experimenting to see which key (plus modifier key(s)
> > like 'shift','control', etc, map to which 'n' values)
> 
> The port misc/kbdscan can be used to obtain keyboard
> information; however: "Please note that this program
> will only work in the FreeBSD console", but it works
> perfectly in the FreeBSD console (text mode); after
> a certain time-out, the program automatically quits
> as it will capture _all_ keys like Alt+F(n), ^C and
> the like. Sadly, there is no manpage that states this
> simple fact. :-(
> 
> In most cases, KEY_F(1) - KEY_F(12) will map to the
> physical F1 to F12 keys, KEY_F(13) - KEY_F(24) to
> the Shift+F1 to Shift+F12 keys; this mechanism has been
> the default idea of providing 24 function keys to keyboards
> that only offer 12 of them. But as many things that have
> proven to work flawlessly, this might have changed into
> something broken, erm "more modern"...
> 
> 
> 
> -- 
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


well, thanks to everyone who posted.  if i had written this
a few days ago i would have saved the concrete in my
driveway that is now lying, cracked by my head.

i still have a few mile--maybe lightyears--to go, but
slowly...slowly this is coming back.  when ken arnold was
working on the early versions of curses i was
still learning C.  i dont remembr any arrow keys on the old
AMD3a terms so wasn't that interested in things-termcap.

but what i'm doing with my clicky-keys for those FEW of use
who like feedback =proves= that, yes, there are new and
interesting uses for curses.  :_)  

i have writeen the rough draft of a curses [or Ncurses]
test program that gets rid of the rat-a-tat-tat WAV response 
whenever i hit a non-std key.  say "home" or up-arrow, or
F12 or Scroll Lock.  how long it will be before i've joined
this test program with my kclick stuff is unknown.  maybe 45
mins, maybe 75 years. [[that's IFF they've got programming
in hell]]



**Change-of-topic:

the GUI editor that has vi bindings is kate.  unfortunately,
kate has no abbrevs.   i asked the principal developer about
that.  no answer.  his site has a .de suffix.  (i was
wondering if he doesn't speak english.  he may be like me, 
a linguistic dimwit.  then again, he may not think much of
my idea.  or overwhelingly busy.

Re: OT: how to tell when i've hit a Fn key?

2011-10-07 Thread Polytropon
On Fri, 7 Oct 2011 02:36:49 -0500 (CDT), Robert Bonomi wrote:
> 
> > Date: Fri, 7 Oct 2011 09:18:57 +0200
> > From: Polytropon 
> > Cc: FreeBSD Mailing List 
> > Subject: Re: OT: how to tell when i've hit a Fn key?
> >
> > On Thu, 6 Oct 2011 15:41:17 -0700, Gary Kline wrote:
> > > 
> > > I've got a 103-key keyboard.  most  of them produce the right WAV
> > > file.  i was having some trouble with the arrow key, but think i've
> > > found a resolution.  next are the Function key, F1 to F12. 
> > > 
> > > anybody on-list familiar with curses and can help me  with this?
> > > right now, most of the function keys output 4 clicks [!].  
> >
> > Capturing PF keys is very easy with ncurses.
> > The macro KEY_F(n), n=1..12, can be checked
> > as the result of the getch() function. The
> > other "special keys" also have such macros
> > assigned. You can find them in the header
> > file /usr/local/include/ncurses/ncurses.h
> > around line 1400.
> 
> No need to go chasing that far. 
> 
>#include 
> 
> pulls in the macro definitions as well.

That's what I wanted to suggest. :-)
The NCurses function getch() deals well with the
key macros defined here, so no need to deal with
the zero-byte manually.



> KEY_F(n) supports 'n' values in the range from 0 to 64.  
> value of this macro is a range of 64 consecutive values, starting with
> KEY_F0 -- which is defined as *octal* 0410
> 
> it may take a little experimenting to see which key (plus modifier key(s)
> like 'shift','control', etc, map to which 'n' values)

The port misc/kbdscan can be used to obtain keyboard
information; however: "Please note that this program
will only work in the FreeBSD console", but it works
perfectly in the FreeBSD console (text mode); after
a certain time-out, the program automatically quits
as it will capture _all_ keys like Alt+F(n), ^C and
the like. Sadly, there is no manpage that states this
simple fact. :-(

In most cases, KEY_F(1) - KEY_F(12) will map to the
physical F1 to F12 keys, KEY_F(13) - KEY_F(24) to
the Shift+F1 to Shift+F12 keys; this mechanism has been
the default idea of providing 24 function keys to keyboards
that only offer 12 of them. But as many things that have
proven to work flawlessly, this might have changed into
something broken, erm "more modern"...



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: OT: how to tell when i've hit a Fn key?

2011-10-07 Thread Robert Bonomi

> Date: Fri, 7 Oct 2011 09:18:57 +0200
> From: Polytropon 
> Cc: FreeBSD Mailing List 
> Subject: Re: OT: how to tell when i've hit a Fn key?
>
> On Thu, 6 Oct 2011 15:41:17 -0700, Gary Kline wrote:
> > 
> > I've got a 103-key keyboard.  most  of them produce the right WAV
> > file.  i was having some trouble with the arrow key, but think i've
> > found a resolution.  next are the Function key, F1 to F12. 
> > 
> > anybody on-list familiar with curses and can help me  with this?
> > right now, most of the function keys output 4 clicks [!].  
>
> Capturing PF keys is very easy with ncurses.
> The macro KEY_F(n), n=1..12, can be checked
> as the result of the getch() function. The
> other "special keys" also have such macros
> assigned. You can find them in the header
> file /usr/local/include/ncurses/ncurses.h
> around line 1400.

No need to go chasing that far. 

   #include 

pulls in the macro definitions as well.

KEY_F(n) supports 'n' values in the range from 0 to 64.  
value of this macro is a range of 64 consecutive values, starting with
KEY_F0 -- which is defined as *octal* 0410

it may take a little experimenting to see which key (plus modifier key(s)
like 'shift','control', etc, map to which 'n' values)

___
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: OT: how to tell when i've hit a Fn key?

2011-10-07 Thread Polytropon
On Thu, 6 Oct 2011 21:51:01 -0700, Gary Kline wrote:
> On Thu, Oct 06, 2011 at 07:37:25PM -0400, Thomas Dickey wrote:
> > Date: Thu, 6 Oct 2011 19:37:25 -0400
> > From: Thomas Dickey 
> > Subject: Re: OT: how to tell when i've hit a Fn key?
> > To: Gary Kline 
> > Cc: FreeBSD Mailing List 
> > 
> > On Thu, Oct 06, 2011 at 03:41:17PM -0700, Gary Kline wrote:
> > > 
> > > I've got a 103-key keyboard.  most  of them produce the right WAV
> > > file.  i was having some trouble with the arrow key, but think i've
> > > found a resolution.  next are the Function key, F1 to F12. 
> > > 
> > > anybody on-list familiar with curses and can help me  with this?
> > > right now, most of the function keys output 4 clicks [!].  
> > 
> > I generally use tack for verifying the function-keys against the terminal
> > description.  (I don't recall seeing a port for tack, but it can probably
> > be built starting with ncurses-devel, though I haven't tried that, since
> > I build development versions of ncurses outside the ports).
> > 
> > For _seeing_ the codes, it helps to type ^V (lnext) right before pressing
> > a given key, making the escape character visible.
> > 
> 
>   Hm.  no joy in mudville.  i know the first byte ia an
>   ESC [ '\033].  the last, for F1, is an A.  the others are
>   hidden.

>From DOS times (that DOS, not _the_ DOS!) I remember that
the function keys do generate a "two-key sequene": The first
character is a 0x00 byte, the next one is a regular key,
such as "A" for PF1. So you did basically check (in pseudocode):

extended = false
c = read character
if c == 0x00 {
extended = true
c = read character
}
act upon c && if extended



>   i'll check ncurses-devel and see w hat it has.  REAL code
>   helps in stuff like this... .

I've written a (partially working) dialog library comparable
to NCurses Forms in C, using ncurses' built-in functionality.
So if you can, use what's already present and working. Instead
of dealing with the zero-bytes, it's much easier to use the
ncurses functionality.

Like this (except this is nonsense):

int c;

c = getch();
if(c == KEY_F(1))   /* PF1 */
do_stuff();
if(c == KEY_UP) /* Cursor up */
do_more_stuff();
if(c == 27) /* Escape key! */
get_out_of_prison();

>From memory: Space is 32, Return is 13, Backspace is 8, Tab is 9.
I think most of them are defined as macros in NCurses.

-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: OT: how to tell when i've hit a Fn key?

2011-10-07 Thread Polytropon
On Thu, 6 Oct 2011 15:41:17 -0700, Gary Kline wrote:
> 
> I've got a 103-key keyboard.  most  of them produce the right WAV
> file.  i was having some trouble with the arrow key, but think i've
> found a resolution.  next are the Function key, F1 to F12. 
> 
> anybody on-list familiar with curses and can help me  with this?
> right now, most of the function keys output 4 clicks [!].  

Capturing PF keys is very easy with ncurses.
The macro KEY_F(n), n=1..12, can be checked
as the result of the getch() function. The
other "special keys" also have such macros
assigned. You can find them in the header
file /usr/local/include/ncurses/ncurses.h
around line 1400.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: OT: how to tell when i've hit a Fn key?

2011-10-06 Thread Gary Kline
On Thu, Oct 06, 2011 at 07:37:25PM -0400, Thomas Dickey wrote:
> Date: Thu, 6 Oct 2011 19:37:25 -0400
> From: Thomas Dickey 
> Subject: Re: OT: how to tell when i've hit a Fn key?
> To: Gary Kline 
> Cc: FreeBSD Mailing List 
> 
> On Thu, Oct 06, 2011 at 03:41:17PM -0700, Gary Kline wrote:
> > 
> > I've got a 103-key keyboard.  most  of them produce the right WAV
> > file.  i was having some trouble with the arrow key, but think i've
> > found a resolution.  next are the Function key, F1 to F12. 
> > 
> > anybody on-list familiar with curses and can help me  with this?
> > right now, most of the function keys output 4 clicks [!].  
> 
> I generally use tack for verifying the function-keys against the terminal
> description.  (I don't recall seeing a port for tack, but it can probably
> be built starting with ncurses-devel, though I haven't tried that, since
> I build development versions of ncurses outside the ports).
> 
> For _seeing_ the codes, it helps to type ^V (lnext) right before pressing
> a given key, making the escape character visible.
> 

Hm.  no joy in mudville.  i know the first byte ia an
ESC [ '\033].  the last, for F1, is an A.  the others are
hidden.


i'll check ncurses-devel and see w hat it has.  REAL code
helps in stuff like this... .


> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a 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: OT: how to tell when i've hit a Fn key?

2011-10-06 Thread Thomas Dickey
On Thu, Oct 06, 2011 at 03:41:17PM -0700, Gary Kline wrote:
> 
> I've got a 103-key keyboard.  most  of them produce the right WAV
> file.  i was having some trouble with the arrow key, but think i've
> found a resolution.  next are the Function key, F1 to F12. 
> 
> anybody on-list familiar with curses and can help me  with this?
> right now, most of the function keys output 4 clicks [!].  

I generally use tack for verifying the function-keys against the terminal
description.  (I don't recall seeing a port for tack, but it can probably
be built starting with ncurses-devel, though I haven't tried that, since
I build development versions of ncurses outside the ports).

For _seeing_ the codes, it helps to type ^V (lnext) right before pressing
a given key, making the escape character visible.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpkRPxeLad9y.pgp
Description: PGP signature


OT: how to tell when i've hit a Fn key?

2011-10-06 Thread Gary Kline

I've got a 103-key keyboard.  most  of them produce the right WAV
file.  i was having some trouble with the arrow key, but think i've
found a resolution.  next are the Function key, F1 to F12. 

anybody on-list familiar with curses and can help me  with this?
right now, most of the function keys output 4 clicks [!].  

thanks in advance,

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a 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: snd_hda: how to configure line-in passthrough to line-out?

2011-10-06 Thread Brandon Kuczenski

On Wed, 5 Oct 2011, Polytropon wrote:


On Tue, 4 Oct 2011 20:58:14 -0700 (PDT), Brandon Kuczenski wrote:

I'm working on the sound on my system running 8.2-RELEASE.  Currently I
have sound input and output working using snd_hda (i.e. I can record on
line in, and play it back on line out).

What I would like to do is take the audio coming in on line-in and send it
back out the line-out "live" without recording it.

Is this easy to do?  I'd appreciate any hints.


I think it is easy to do. If I remember terminology
correctly, the thing you're searching for is MONITOR.
Instead of setting rec source to mic, set it to line,
and increase monitor level.


Thanks for your assistance.. unfortunately, setting the mixer
levels has not been enough to get a passthrough.  Here is my mixer output:

Mixer vol  is currently set to   1:1
Mixer pcm  is currently set to  45:45
Mixer line is currently set to  75:75
Mixer mic  is currently set to   0:0
Mixer cd   is currently set to  75:75
Mixer rec  is currently set to  75:75
Mixer igainis currently set to 100:100
Mixer ogainis currently set to  50:50
Mixer monitor  is currently set to 100:100
Recording source: line

I'm using wavplay(1) from the ports collection to record on line-in, and 
then I can play it back.  On playback I can hear it just fine-- it mixes 
with other outputs on the PCM channel as I would expect.  but when the 
line is "live" it is not being mixed into the output.





The line level should be possible to set independently
of the rec channel setting, so you should be able to
pass through line anyway - at least, that has been the
default ability of sound cards when they became available
for PC. But well... this has been 10... 20... years ago,
and nobody expects simple things to work as simple today
as they did in the past. :-)


Indeed, I wonder if it is a hardware capability problem, but I don't know 
how to try to answer that question.



___
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: snd_hda: how to configure line-in passthrough to line-out?

2011-10-05 Thread Carl Johnson
Brandon Kuczenski  writes:

> I'm working on the sound on my system running 8.2-RELEASE.  Currently
> I have sound input and output working using snd_hda (i.e. I can record
> on line in, and play it back on line out).
>
> What I would like to do is take the audio coming in on line-in and
> send it back out the line-out "live" without recording it.
>
> Is this easy to do?  I'd appreciate any hints.

I do that all the time, so it definitely is not a problem.  I find on my
card that the output volume is controlled by a combination of 'volume'
and 'mix' settings in mixer(8).  I also must have the 'igain' set to
something above 0, but the volume isn't directly controlled by it.
-- 
Carl Johnsonca...@peak.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: snd_hda: how to configure line-in passthrough to line-out?

2011-10-04 Thread Polytropon
On Tue, 4 Oct 2011 20:58:14 -0700 (PDT), Brandon Kuczenski wrote:
> I'm working on the sound on my system running 8.2-RELEASE.  Currently I 
> have sound input and output working using snd_hda (i.e. I can record on 
> line in, and play it back on line out).
> 
> What I would like to do is take the audio coming in on line-in and send it 
> back out the line-out "live" without recording it.
> 
> Is this easy to do?  I'd appreciate any hints.

I think it is easy to do. If I remember terminology
correctly, the thing you're searching for is MONITOR.
Instead of setting rec source to mic, set it to line,
and increase monitor level.

The line level should be possible to set independently
of the rec channel setting, so you should be able to
pass through line anyway - at least, that has been the
default ability of sound cards when they became available
for PC. But well... this has been 10... 20... years ago,
and nobody expects simple things to work as simple today
as they did in the past. :-)

On the line out channel, all input should be "accumulated"
according to the individual levels (pcm, line in, mic);
the setting which source to _record_ from is handled
independently.

Refer to "man mixer" on how to set the levels as you
require.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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"


snd_hda: how to configure line-in passthrough to line-out?

2011-10-04 Thread Brandon Kuczenski
I'm working on the sound on my system running 8.2-RELEASE.  Currently I 
have sound input and output working using snd_hda (i.e. I can record on 
line in, and play it back on line out).


What I would like to do is take the audio coming in on line-in and send it 
back out the line-out "live" without recording it.


Is this easy to do?  I'd appreciate any hints.

Thanks,
Brandon

___
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 i set the vi bindings to kwrite? [or kwrite-devel]?

2011-10-02 Thread Gary Kline

Ok, so it's KATE or kwrite or <>.  I
found something about 5yy (yank 5 lines).  But nothing about setting
up the vi/vim abbrevs feature; how to use the abbreviations feature
in this KDE edititor.  most of us---or, really, 100%---know how to
use the abbrev feature in vi.  but my intended user might be the
novice user in some backwoods country and might have trouble
learning tools like vi.  Thus, it makes more sense for these users
to use keyboard and mouse in the simplest GUI style.  While any GUI
text editor would do, it loooks like kwrite has C++ plugin
capabilities.

If  kwrite can bind to vi/vim, so much the better.

How do i set these binding, assuming that i can?

tia!

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a 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: top: how to obtain which process take CPU time

2011-10-01 Thread Dan Nelson
In the last episode (Oct 01), ??? ??? said:
> hi, Freebsd-questions.
> 
> last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
> 20:29:07
> 218 processes: 3 running, 215 sleeping
> CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
> Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
> Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse
> 
>   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
> 92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
> 92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
> 92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
> 92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
> 92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
> 
> top -SIHP
> last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
> 20:35:50
> 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
> CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
> Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
> Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse
> 
>   PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
>11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
> 98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
> 44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
> 99051 root440  3496K  2020K RUN  0:00  0.10% top
> 99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
> 99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
> 
> It is unclear which process take CPU time.
> is there any other tool, which help me to see processes that take CPU?

Take a look at the "last pid" values and the time of each top snapshot:

> last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
> 20:29:07
> last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
> 20:35:50

So, in 7 minutes your system has launched 6671 processes, and in your first
top snapshot I see sh and snmpget processses.  The reason you don't see any
processes in top consuming CPU is that they are being created and then exit
before top can print them.  If you turn process accounting on (add
accounting_enable="YES" to /etc/rc.conf, then run "/etc/rc.d.d/accounting
start"), you can run the "lastcomm" command to see a log of every process
that has exited and its CPU usage.  It won't really tell you any more than
"you are running Cacti and monitoring a lot of devices" :)

-- 
Dan Nelson
dnel...@allantgroup.com
___
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[2]: top: how to obtain which process take CPU time

2011-10-01 Thread Коньков Евгений
Здравствуйте, Frank.

Вы писали 1 октября 2011 г., 21:38:56:

FS> On Sat, Oct 01, 2011 at 08:38:49PM +0300, ??? ??? wrote:
>>
>> hi, Freebsd-questions.
>> 
>> last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
>> 20:29:07
>> 218 processes: 3 running, 215 sleeping
>> CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
>> Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
>> Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse
>> 
>>   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
>> 92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
>> 92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
>> 92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
>> 92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
>> 92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
>> 92518 cacti 1   80 23820K 12896K nanslp   0:00  0.98% php
>> 92528 cacti 1  -80 22796K 12640K piperd   0:00  0.98% php
>> 92555 cacti 1  -80  4620K  2332K piperd   0:00  0.98% perl5.8.8
>> 92556 root  1  960  3280K  1292K select   0:00  0.98% sudo
>> 92554 cacti 1   80  3460K  1120K wait 0:00  0.98% sh
>> 92542 cacti 1   80  3460K  1128K wait 0:00  0.98% sh
>> 92543 cacti 1  -80 10200K  3664K piperd   0:00  0.78% rrdtool
>> 81166 firebird  1  450 23344K  6188K select   0:08  0.49% 
>> fb_inet_serve

FS> That looks to me like quite a weak system and has got 3 running
FS> processes and 215 sleeping. I can easily see that 59.6% of your CPU is
FS> being used and your load averages being as they are.
I see that too, but which process take that CPU?

>> 
>> top -SIHP
>> last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
>> 20:35:50
>> 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
>> CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
>> Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
>> Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse
>> 
>>   PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
>>11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
>> 98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
>> 44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
>> 99051 root440  3496K  2020K RUN  0:00  0.10% top
>> 99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
>> 99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
>> 99333 root460  3240K  1008K select   0:00  0.00% ping
>> 99328 root450  3240K   972K select   0:00  0.00% ping
>> 99332 root470  3280K  1292K select   0:00  0.00% sudo
>> 99327 root470  3280K  1292K select   0:00  0.00% sudo
>> 
>> It is unclear which process take CPU time.
>> is there any other tool, which help me to see processes that take CPU?
>> 

FS> I don't think another tool would help. You've just got a weak system
FS> running lots of processes. None very big but they all add up to quite
FS> a big chunk of CPU. It looks like it's handling it OK though.
No. it is not weak. it is about 40% load averages, but somethig is
happen and take of 100% CPU (see SNMP graph).
 And I got a problem in FreeBSD I can not obtain which process take
 all CPU ((

> Robert Bonomi 
> It is unclear which process take CPU time. is there any other tool, which
> help me to see processes that take CPU?
>>One -obvious- anwser is the 'ps' commnd.
>>Something like 'ps gxua".
You mean that 'ps gxua' shows wrong results?



FS> Regards,___
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: top: how to obtain which process take CPU time

2011-10-01 Thread Frank Shute
On Sat, Oct 01, 2011 at 08:38:49PM +0300, ??? ??? wrote:
>
> hi, Freebsd-questions.
> 
> last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
> 20:29:07
> 218 processes: 3 running, 215 sleeping
> CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
> Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
> Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse
> 
>   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
> 92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
> 92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
> 92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
> 92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
> 92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
> 92518 cacti 1   80 23820K 12896K nanslp   0:00  0.98% php
> 92528 cacti 1  -80 22796K 12640K piperd   0:00  0.98% php
> 92555 cacti 1  -80  4620K  2332K piperd   0:00  0.98% perl5.8.8
> 92556 root  1  960  3280K  1292K select   0:00  0.98% sudo
> 92554 cacti 1   80  3460K  1120K wait 0:00  0.98% sh
> 92542 cacti 1   80  3460K  1128K wait 0:00  0.98% sh
> 92543 cacti 1  -80 10200K  3664K piperd   0:00  0.78% rrdtool
> 81166 firebird  1  450 23344K  6188K select   0:08  0.49% 
> fb_inet_serve

That looks to me like quite a weak system and has got 3 running
processes and 215 sleeping. I can easily see that 59.6% of your CPU is
being used and your load averages being as they are.

> 
> top -SIHP
> last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
> 20:35:50
> 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
> CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
> Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
> Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse
> 
>   PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
>11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
> 98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
> 44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
> 99051 root440  3496K  2020K RUN  0:00  0.10% top
> 99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
> 99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
> 99333 root460  3240K  1008K select   0:00  0.00% ping
> 99328 root450  3240K   972K select   0:00  0.00% ping
> 99332 root470  3280K  1292K select   0:00  0.00% sudo
> 99327 root470  3280K  1292K select   0:00  0.00% sudo
> 
> It is unclear which process take CPU time.
> is there any other tool, which help me to see processes that take CPU?
> 

I don't think another tool would help. You've just got a weak system
running lots of processes. None very big but they all add up to quite
a big chunk of CPU. It looks like it's handling it OK though.



Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpQUESt9mjgI.pgp
Description: PGP signature


Re: top: how to obtain which process take CPU time

2011-10-01 Thread Robert Bonomi

> Date: Sat, 1 Oct 2011 20:38:49 +0300
> From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= 
> To: freebsd-questions@freebsd.org
> Subject: top: how to obtain which process take CPU time
>
[[..  sneck  ..]]
>
> It is unclear which process take CPU time. is there any other tool, which 
> help me to see processes that take CPU?

One -obvious- anwser is the 'ps' commnd.

Something like 'ps gxua".


You may want to run it more than once, and look at the differences in the
TIME field.
___
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"


top: how to obtain which process take CPU time

2011-10-01 Thread Коньков Евгений
hi, Freebsd-questions.

last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  20:29:07
218 processes: 3 running, 215 sleeping
CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse

  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
92518 cacti 1   80 23820K 12896K nanslp   0:00  0.98% php
92528 cacti 1  -80 22796K 12640K piperd   0:00  0.98% php
92555 cacti 1  -80  4620K  2332K piperd   0:00  0.98% perl5.8.8
92556 root  1  960  3280K  1292K select   0:00  0.98% sudo
92554 cacti 1   80  3460K  1120K wait 0:00  0.98% sh
92542 cacti 1   80  3460K  1128K wait 0:00  0.98% sh
92543 cacti 1  -80 10200K  3664K piperd   0:00  0.78% rrdtool
81166 firebird  1  450 23344K  6188K select   0:08  0.49% fb_inet_serve

top -SIHP
last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  20:35:50
291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse

  PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
   11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
99051 root440  3496K  2020K RUN  0:00  0.10% top
99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
99333 root460  3240K  1008K select   0:00  0.00% ping
99328 root450  3240K   972K select   0:00  0.00% ping
99332 root470  3280K  1292K select   0:00  0.00% sudo
99327 root470  3280K  1292K select   0:00  0.00% sudo

It is unclear which process take CPU time.
is there any other tool, which help me to see processes that take CPU?



-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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[2]: dump/restore, how to reduce slice size

2011-09-30 Thread Коньков Евгений
Здравствуйте, Robert.

Вы писали 30 сентября 2011 г., 4:11:15:

>> From owner-freebsd-questi...@freebsd.org  Thu Sep 29 14:37:35 2011
>> Date: Thu, 29 Sep 2011 22:36:38 +0300
>> From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= 
>> To: freebsd-questions@freebsd.org
>> Subject: dump/restore, how to reduce slice size
>>
>> Hi, Freebsd-questions.
>>
>> # df -h
>> Filesystem SizeUsed   Avail Capacity  Mounted on
>> /dev/ad4s1a  2G206M1.6G11%/
>> devfs  1.0k1.0k  0B   100%/dev
>> /dev/ad4s1e3.9G 13M3.6G 0%/tmp
>> /dev/ad4s1f 40G 25G 12G67%/usr
>> /dev/ad4s1d 31G3.6G 24G13%/var
>> procfs 4.0k4.0k  0B   100%/proc
>> /dev/ad2s1f 39G 25G 10G71%/mnt
>> devfs  1.0k1.0k  0B   100%/var/named/dev
>>
>>
>> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G
>> but on ad4s1f only 25G used.
>>
>> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f?
>>
>> These commands:
>> #mount /dev/ad2s1f /mnt
>> #cd /mnt
>> #dump -0Lf - /usr | restore -rf -
>> does not help, because of ad2s1f does not have space to restore
>> 'end of ' /dev/ad4s1f.
>>
>> May help any?

RB> ad2s1f already has 25 gigs of stuff on it.  with ounly 14 gigs 'free'.
RB> ad4s1f has 25 gigs of stuff on _it_.

RB> The 25 gigs of ad4s1f will not fit in the  14 gigs of free space on
RB> ad2s1f.
It is state after restoration. Before that I do the prestine file
system with:
newfs /dev/ad2s1f
mount /dev/ad2s1f /mnt
cd /mnt
dump -0Lf - /usr | restore -rf -

at the end of restore process I got error about that on target file
system there is no inode . abourt? [yn]
I type 'n'. there are about 10 inodes missed.
when I compare files it seems that are same on source and target.
Is that Ok, may I do not worry about that error messages?

RB> Now, 
RB> *IF* the existing 'stuff' on ad2s1f is of no value,  and the -only- thing
RB> you want to have on that filesystem is the 'copy' of ad4s1f, 
RB> *THEN*  there is 'simple'  solution.  You need to delete the files on
RB> ad4s1f -before- trying the dump/restor.  In the commnds you show, above,
RB> fter the 'cd /mnt', and before the dump/restore, Type in 'rm -fr  /mnt/*',
RB> but DO NOT hit the enter key.  Look at what you typed, and make sure 
RB> that there is no white-spce immediately before the '*'.  Double check
RB> that there is no whitespce after the first '/'. or before the 2nd one.
RB> TRIPLE CHECK that there are no spaces before the '*'.   Have you made
RB> a full back-up of the system recently?  If not, abort this commqnd, and
RB> make the full backup before trying  this again.

RB> *IF* you are absolutely certain you have typed the commnd correctly, _and_
RB> you have  current full-system backup, then go ahead nd press the enter
RB> key.
thank you for attention. I understand that.

RB> As my friend Dante Brown once remarked: 

RB>  "All hope abandon
RB>   ye who press Enter
RB>   here."






-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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: dump/restore, how to reduce slice size

2011-09-30 Thread Jerry McAllister
On Fri, Sep 30, 2011 at 03:41:26PM +0200, Damien Fleuriot wrote:

> 
> 
> On 9/29/11 10:09 PM, Jerry McAllister wrote:
> > On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??? ??? wrote:
> > 
> >> Hi, Freebsd-questions.
> >>
> >> # df -h
> >> Filesystem SizeUsed   Avail Capacity  Mounted on
> >> /dev/ad4s1a  2G206M1.6G11%/
> >> devfs  1.0k1.0k  0B   100%/dev
> >> /dev/ad4s1e3.9G 13M3.6G 0%/tmp
> >> /dev/ad4s1f 40G 25G 12G67%/usr
> >> /dev/ad4s1d 31G3.6G 24G13%/var
> >> procfs 4.0k4.0k  0B   100%/proc
> >> /dev/ad2s1f 39G 25G 10G71%/mnt
> >> devfs  1.0k1.0k  0B   100%/var/named/dev
> >>
> >>
> >> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G
> >> but on ad4s1f only 25G used.
> >>
> >> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f?
> >>
> >> These commands:
> >> #mount /dev/ad2s1f /mnt
> >> #cd /mnt
> >> #dump -0Lf - /usr | restore -rf -
> >> does not help, because of ad2s1f does not have space to restore
> >> 'end of ' /dev/ad4s1f.
> >>
> >> May help any?
> > 
> > Well, you are going to have difficulty putting 50 GB on a 39 GB partition.
> >(25GB + 25GB = 50GB).
> > It won't work.
> > 
> > You could try compressing the dump, but dump files do not tend
> > to compress well and even if you got a 50% compression, you would
> > still be really close to overfill.
> > 
> > Probably you need to go to the store and get a nice big USB drive
> > and slice and partition it in to a bunch of 50 GB partitions and
> > pipe your dump to a restore in those partitions on that drive.
> > You can round-robin your backups to those USB partitions.
> > 
> > My backup to a USB hard drive just saved me the beginning of
> > this week when the old machine died of heat prostration.
> > 
> 
> 
> Dump is supposed to take only the used space.

 Yes.  He already has 25 GB used on the partition and wants
to add another approx 25 GB in a 39 GB partition.  There ain't room.

jerry

> 
> @OP, refer the following link for correct dump/restore syntax:
> http://www.wonkity.com/~wblock/docs/html/backup.html#_tt_dump_tt_with_compression
> 
> ___
> 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: dump/restore, how to reduce slice size

2011-09-30 Thread John Levine
>>> # df -h
>>> Filesystem SizeUsed   Avail Capacity  Mounted on
>>> /dev/ad4s1a  2G206M1.6G11%/
>>> devfs  1.0k1.0k  0B   100%/dev
>>> /dev/ad4s1e3.9G 13M3.6G 0%/tmp
>>> /dev/ad4s1f 40G 25G 12G67%/usr
>>> /dev/ad4s1d 31G3.6G 24G13%/var
>>> procfs 4.0k4.0k  0B   100%/proc
>>> /dev/ad2s1f 39G 25G 10G71%/mnt
>>> devfs  1.0k1.0k  0B   100%/var/named/dev
>>>
>>>
>>> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G
>>> but on ad4s1f only 25G used.
>>>
>>> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f?

You can't.  ad4s1f has 25G of files, but ad2s1f only has 10G of
free space.  You need a bigger disk.

If you're just moving things around, I agree that a $100 USB
disk is the best way to store backups temporarily.

R's,
John
___
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: dump/restore, how to reduce slice size

2011-09-30 Thread Damien Fleuriot


On 9/29/11 10:09 PM, Jerry McAllister wrote:
> On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??? ??? wrote:
> 
>> Hi, Freebsd-questions.
>>
>> # df -h
>> Filesystem SizeUsed   Avail Capacity  Mounted on
>> /dev/ad4s1a  2G206M1.6G11%/
>> devfs  1.0k1.0k  0B   100%/dev
>> /dev/ad4s1e3.9G 13M3.6G 0%/tmp
>> /dev/ad4s1f 40G 25G 12G67%/usr
>> /dev/ad4s1d 31G3.6G 24G13%/var
>> procfs 4.0k4.0k  0B   100%/proc
>> /dev/ad2s1f 39G 25G 10G71%/mnt
>> devfs  1.0k1.0k  0B   100%/var/named/dev
>>
>>
>> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G
>> but on ad4s1f only 25G used.
>>
>> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f?
>>
>> These commands:
>> #mount /dev/ad2s1f /mnt
>> #cd /mnt
>> #dump -0Lf - /usr | restore -rf -
>> does not help, because of ad2s1f does not have space to restore
>> 'end of ' /dev/ad4s1f.
>>
>> May help any?
> 
> Well, you are going to have difficulty putting 50 GB on a 39 GB partition.
>(25GB + 25GB = 50GB).
> It won't work.
> 
> You could try compressing the dump, but dump files do not tend
> to compress well and even if you got a 50% compression, you would
> still be really close to overfill.
> 
> Probably you need to go to the store and get a nice big USB drive
> and slice and partition it in to a bunch of 50 GB partitions and
> pipe your dump to a restore in those partitions on that drive.
> You can round-robin your backups to those USB partitions.
> 
> My backup to a USB hard drive just saved me the beginning of
> this week when the old machine died of heat prostration.
> 


Dump is supposed to take only the used space.

@OP, refer the following link for correct dump/restore syntax:
http://www.wonkity.com/~wblock/docs/html/backup.html#_tt_dump_tt_with_compression

___
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: dump/restore, how to reduce slice size

2011-09-29 Thread Jerry McAllister
On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??? ??? wrote:

> Hi, Freebsd-questions.
> 
> # df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ad4s1a  2G206M1.6G11%/
> devfs  1.0k1.0k  0B   100%/dev
> /dev/ad4s1e3.9G 13M3.6G 0%/tmp
> /dev/ad4s1f 40G 25G 12G67%/usr
> /dev/ad4s1d 31G3.6G 24G13%/var
> procfs 4.0k4.0k  0B   100%/proc
> /dev/ad2s1f 39G 25G 10G71%/mnt
> devfs  1.0k1.0k  0B   100%/var/named/dev
> 
> 
> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G
> but on ad4s1f only 25G used.
> 
> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f?
> 
> These commands:
> #mount /dev/ad2s1f /mnt
> #cd /mnt
> #dump -0Lf - /usr | restore -rf -
> does not help, because of ad2s1f does not have space to restore
> 'end of ' /dev/ad4s1f.
> 
> May help any?

Well, you are going to have difficulty putting 50 GB on a 39 GB partition.
   (25GB + 25GB = 50GB).
It won't work.

You could try compressing the dump, but dump files do not tend
to compress well and even if you got a 50% compression, you would
still be really close to overfill.

Probably you need to go to the store and get a nice big USB drive
and slice and partition it in to a bunch of 50 GB partitions and
pipe your dump to a restore in those partitions on that drive.
You can round-robin your backups to those USB partitions.

My backup to a USB hard drive just saved me the beginning of
this week when the old machine died of heat prostration.

jerry


jerry


> 
> -- 
> Konkov  mailto:kes-...@yandex.ru
> 
> ___
> 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"


dump/restore, how to reduce slice size

2011-09-29 Thread Коньков Евгений
Hi, Freebsd-questions.

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a  2G206M1.6G11%/
devfs  1.0k1.0k  0B   100%/dev
/dev/ad4s1e3.9G 13M3.6G 0%/tmp
/dev/ad4s1f 40G 25G 12G67%/usr
/dev/ad4s1d 31G3.6G 24G13%/var
procfs 4.0k4.0k  0B   100%/proc
/dev/ad2s1f 39G 25G 10G71%/mnt
devfs  1.0k1.0k  0B   100%/var/named/dev


as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G
but on ad4s1f only 25G used.

How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f?

These commands:
#mount /dev/ad2s1f /mnt
#cd /mnt
#dump -0Lf - /usr | restore -rf -
does not help, because of ad2s1f does not have space to restore
'end of ' /dev/ad4s1f.

May help any?

-- 
Konkov  mailto:kes-...@yandex.ru

___
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 should I complain about ARM compiler?

2011-09-26 Thread Naoyuki Tai

Hello,

I'm working on running a FreeBSD system on Globalscale's
DreamPlug. It's an ARM processor hardware.

I hit a problem which is the PR  arm/154189, and it turned out that
there is a bug in GCC's ARM's code generation.

The GCC in arm's "world" is cross-compiled from Release 8.2 on
i386, and is version 4.2.1.

I looked at the GNU's bug tracking web site, and looks like the
similar bug is reported but not exact. However, there is a certain
chance that it is fixed in later versions of GCC than 4.2.

I wanted to see whether or not fixed. So naturally, I tried to install the
GCC versions from the port, but GCC 4.2 is the only one that supports
ARM. None of newer versions is marked to work on ARM.

I could file a PR to GNU's. If it's new or dupe or already-fixed bug,
at some point, it may or may not be fixed.
But, bigger problem to me is that, FreeBSD 8.2's GCC 4.2 is the
only one that marked to work for ARM, either in the distribution or
in the port tree.

So, who should I complain to?
Chances are slim that -STABLE's compiler gets updated to my
liking. I have no way of knowing right now that the compilers
in the ports work for me or not.
My best case scenario is that, someone patches up GCC 4.2.1's
arm backend in -STABLE. If this is to happen, am I filing a PR
to -STABLE or under arm/ (which gets virtually no attension)?

Should I ask GCC 4.5 or 4.6 to work for arm? It may or may not
fix my problem, so I'm not sure I want to file PR for the GCCs in
the port to support ARM.

Although I was able to get around the build problem of perl5.12,
(as in arm/154189), I just hit another problem with devel/icu,
which I'm chasing right now, and maybe I have to file a PR.
So, my confidence in GCC 4.2.1 for ARM is zero.

Please someone tell me what is the right way to complain about
the ARM's compiler situation.
Thanks.

-- Tai

___
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 find out which version of PF a given box is using...

2011-09-21 Thread Matthew Seaman
On 21/09/2011 09:17, krad wrote:
> If its been syncd to openbsd 4.5 version of pf, its still quite a way behind
> openbsd's version in the latest release as they are not on 4.9 with 5.0
> imminent. Looking at the docs there were quite a lot of changes when openbsd
> was bumped to 4.7

Yes.  However I believe this does solve the incompatibility between PF
and vimage, which is fantastic.  There's been a lot of work gone into
FreeBSD network stack to add capabilities that OpenBSD simply doesn't
have -- mostly to do with fine-grained locking, multiprocessing support
and virtualization -- all of which makes the importing process pretty
non-trivial.

Cheers,

Matthew

PS.  Mac OS X Lion now uses PF for firewalling too.  Apparently it's
even older than the PF in FreeBSD:

   http://quigon.bsws.de/papers/2011/pf10yrs/mgp00078.html

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: How to find out which version of PF a given box is using...

2011-09-21 Thread krad
On 21 September 2011 09:05, Matthew Seaman
wrote:

> On 21/09/2011 08:34, Matthew Seaman wrote:
> > On 21/09/2011 07:34, Modulok wrote:
> >> Is there an easy way to find out what version of PF a given FreeBSD
> version is
> >> using? Currently I'm doing this:
> >>
> >> grep -iE '\bpf\b' /usr/src/UPDATING
> >>
> >> Just wondering if I'm missing something. I didn't see any '--version'
> >> flag in pfctl.
> >
> > Uh -- bpf is a different thing to PF.  bpf is Berkeley Packet Filter
> > which isn't anything to do with firewalling, but used eg. by tcpdump to
> > select certain packets from the wire.  As far as I know, bpf doesn't
> > have a separate version number; it just uses the OS version number.
> > It's been part of BSD Unices since dinosaurs roamed the earth.
>
> One of these days I'll learn not to send e-mail before coffee.  Please
> ignore the above -- red herring.
>
> > PF is the firewalling code imported from OpenBSD.  Again, it's part of
> > the base system in OpenBSD so it just uses the OpenBSD version number.
> > Every so often there will be a new import from OpenBSD -- I believe most
> > released versions of FreeBSD are using PF from OpenBSD 4.2, but there is
> > an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0
> > release.  You'ld have to check the commit history in CVS or SVN to be
> sure.
>
> In fact, the last import listed as such in the CVS history was from
> OpenBSD 4.1 but that was around 2007 when FreeBSD was on version 6.x --
> long time ago.  There's been plenty of updates since (which, IIRC, made
> the FreeBSD code pretty much equivalent to what is in OpenBSD 4.2), but
> no wholesale reimport until about 2 months ago, when OpenBSD 4.5 code
> was imported into head.
>
> http://svnweb.freebsd.org/base?view=revision&revision=223637
>
> AFAIK, that is not a candidate for MFC to stable/8 or earlier, as it
> modifies KBIs.
>
>Cheers,
>
>Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
>  Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
> JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
>
>
If its been syncd to openbsd 4.5 version of pf, its still quite a way behind
openbsd's version in the latest release as they are not on 4.9 with 5.0
imminent. Looking at the docs there were quite a lot of changes when openbsd
was bumped to 4.7
___
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 find out which version of PF a given box is using...

2011-09-21 Thread Matthew Seaman
On 21/09/2011 08:34, Matthew Seaman wrote:
> On 21/09/2011 07:34, Modulok wrote:
>> Is there an easy way to find out what version of PF a given FreeBSD version 
>> is
>> using? Currently I'm doing this:
>>
>> grep -iE '\bpf\b' /usr/src/UPDATING
>>
>> Just wondering if I'm missing something. I didn't see any '--version'
>> flag in pfctl.
> 
> Uh -- bpf is a different thing to PF.  bpf is Berkeley Packet Filter
> which isn't anything to do with firewalling, but used eg. by tcpdump to
> select certain packets from the wire.  As far as I know, bpf doesn't
> have a separate version number; it just uses the OS version number.
> It's been part of BSD Unices since dinosaurs roamed the earth.

One of these days I'll learn not to send e-mail before coffee.  Please
ignore the above -- red herring.

> PF is the firewalling code imported from OpenBSD.  Again, it's part of
> the base system in OpenBSD so it just uses the OpenBSD version number.
> Every so often there will be a new import from OpenBSD -- I believe most
> released versions of FreeBSD are using PF from OpenBSD 4.2, but there is
> an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0
> release.  You'ld have to check the commit history in CVS or SVN to be sure.

In fact, the last import listed as such in the CVS history was from
OpenBSD 4.1 but that was around 2007 when FreeBSD was on version 6.x --
long time ago.  There's been plenty of updates since (which, IIRC, made
the FreeBSD code pretty much equivalent to what is in OpenBSD 4.2), but
no wholesale reimport until about 2 months ago, when OpenBSD 4.5 code
was imported into head.

http://svnweb.freebsd.org/base?view=revision&revision=223637

AFAIK, that is not a candidate for MFC to stable/8 or earlier, as it
modifies KBIs.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: How to find out which version of PF a given box is using...

2011-09-21 Thread Matthew Seaman
On 21/09/2011 07:34, Modulok wrote:
> Is there an easy way to find out what version of PF a given FreeBSD version is
> using? Currently I'm doing this:
> 
> grep -iE '\bpf\b' /usr/src/UPDATING
> 
> Just wondering if I'm missing something. I didn't see any '--version'
> flag in pfctl.

Uh -- bpf is a different thing to PF.  bpf is Berkeley Packet Filter
which isn't anything to do with firewalling, but used eg. by tcpdump to
select certain packets from the wire.  As far as I know, bpf doesn't
have a separate version number; it just uses the OS version number.
It's been part of BSD Unices since dinosaurs roamed the earth.

PF is the firewalling code imported from OpenBSD.  Again, it's part of
the base system in OpenBSD so it just uses the OpenBSD version number.
Every so often there will be a new import from OpenBSD -- I believe most
released versions of FreeBSD are using PF from OpenBSD 4.2, but there is
an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0
release.  You'ld have to check the commit history in CVS or SVN to be sure.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


How to find out which version of PF a given box is using...

2011-09-21 Thread Modulok
List,

Is there an easy way to find out what version of PF a given FreeBSD version is
using? Currently I'm doing this:

grep -iE '\bpf\b' /usr/src/UPDATING

Just wondering if I'm missing something. I didn't see any '--version'
flag in pfctl.
-Modulok-
___
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 can I disable hyperthreads, but NOT smp ?

2011-09-20 Thread b. f.
> On 20/09/2011 21:34, Jason Usher wrote:
> > FreeBSD 6.4-RELEASE system with two physical CPUs, each of which are HT 
> > capable.  From dmesg:
> >
> > cpu0 (BSP): APIC ID: 0
> > cpu1 (AP): APIC ID: 1
> > cpu2 (AP): APIC ID: 6
> > cpu3 (AP): APIC ID: 7
> >
> > I also see this:
> >
> > machdep.hyperthreading_allowed: 0
> >
> > The problem is, I have reason to believe that my workload benefits greatly 
> > from SMP, but is not playing nicely with hyperthreading.  That is, it is 
> > trying to farm out 4 things at a time to a cpu setup that really is only 
> > able to do two things at a time.
> >
> > How can I disable HT completely, but still retain ALL the benefits of SMP ?

If you are sure about your machine's hardware, and that
machdep.hyperthreading_allowed is really set to 0 in loader.conf(5),
then you may want to glance at:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/i386/mp_machdep.c?annotate=1.252.2.16

to see where the enforcement of this tunable is failing, and file a
PR.  Although I have not tried to use them, there are supposed to be
alternative mechanisms to disable cpus, or at least to ignore them in
certain circumstances:

--on recent versions of FreeBSD (> 6) you could use cpuset(1) to
ignore some of them in certain circumstances;
--on older versions of FreeBSD (< 9) you could use the sysctl
machdep.hlt_logical_cpus=1 (see smp(4));
--on older versions of FreeBSD (< 9) you could use the sysctl
machdep.hlt_cpus to add a bitmap of the logical cpus that you want to
disable (see smp(4));
--you can use the loader hint hint.lapic.X.disable=1 to disable a cpu
with APIC ID X.

But note the warnings in the Andriy Gapon's commit message and
UPDATING entry for:

http://svnweb.FreeBSD.org/base?view=revision&revision=222853



> It's usually a setting in the BIOS to disable Hyperthreading then
> reconfigure the kernel to only use 2 cores (which it might do
> automatically).
>
> Hyperthreading is outside the world of FreeBSD. As far as it knows there
> is still 4 "logical processors". Disabling hyperthreading it should see
> 2 LPs.

This isn't completely true.  Yes, many systems have a BIOS setting to
toggle hyperthreading on and off.  The loader tunable can be used for
those machines that don't have such a setting, or for remote machines
for which it is not convenient to change the setting.  But FreeBSD
attempts to determine if any of the logical cpus are hyperthreads, so
that the loader tunable machdep.hyperthreading_allowed can be enforced
(it was introduced a long time ago when a security hole was discovered
with some early hyperthread implementations), and also because
hyperthreads are treated differently from physical cpus with regard to
interrupt handling, scheduling (with ULE), ACPI, PMC, etc.  So FreeBSD
is supposed to be "hyperthread-aware".

b.
___
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 can I disable hyperthreads, but NOT smp ?

2011-09-20 Thread RW
On Tue, 20 Sep 2011 22:28:18 +0100
Richard Collyer wrote:

> On 20/09/2011 21:34, Jason Usher wrote:
> > FreeBSD 6.4-RELEASE system with two physical CPUs, each of which
> > are HT capable.  From dmesg:
> >
> > cpu0 (BSP): APIC ID: 0
> > cpu1 (AP): APIC ID: 1
> > cpu2 (AP): APIC ID: 6
> > cpu3 (AP): APIC ID: 7
> >
> > I also see this:
> >
> > machdep.hyperthreading_allowed: 0

> > How can I disable HT completely, but still retain ALL the benefits
> > of SMP ?
> >
> > Thanks.
> 
> It's usually a setting in the BIOS to disable Hyperthreading then 
> reconfigure the kernel to only use 2 cores (which it might do 
> automatically).
> 
> Hyperthreading is outside the world of FreeBSD. As far as it knows
> there is still 4 "logical processors".

It's not completely outside; an OS should still be able to determine
which logical CPUs are on the same core. And, presumably
machdep.hyperthreading_allowed=0 tells  the scheduler not to use the
additional logical CPUs. I'm wondering if hyperthreading is unused, but
the full set of logical CPU is still displayed, or perhaps 6.4 is
failing to recognise the hardware.


___
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 can I disable hyperthreads, but NOT smp ?

2011-09-20 Thread Richard Collyer

On 20/09/2011 21:34, Jason Usher wrote:

FreeBSD 6.4-RELEASE system with two physical CPUs, each of which are HT 
capable.  From dmesg:

cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu2 (AP): APIC ID: 6
cpu3 (AP): APIC ID: 7

I also see this:

machdep.hyperthreading_allowed: 0

The problem is, I have reason to believe that my workload benefits greatly from 
SMP, but is not playing nicely with hyperthreading.  That is, it is trying to 
farm out 4 things at a time to a cpu setup that really is only able to do two 
things at a time.

How can I disable HT completely, but still retain ALL the benefits of SMP ?

Thanks.


It's usually a setting in the BIOS to disable Hyperthreading then 
reconfigure the kernel to only use 2 cores (which it might do 
automatically).


Hyperthreading is outside the world of FreeBSD. As far as it knows there 
is still 4 "logical processors". Disabling hyperthreading it should see 
2 LPs.


Richard

--
Richard Collyer
Blue Apex Ltd
07900 997 380

Registered as a company in England and Wales (Reg Number: 05982514).
Registered Address: 42 King Richards Hill, Earl Shilton, Leicester, LE9 7EY



__ Information from ESET NOD32 Antivirus, version of virus signature 
database 6480 (20110920) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


___
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 can I disable hyperthreads, but NOT smp ?

2011-09-20 Thread Jason Usher
FreeBSD 6.4-RELEASE system with two physical CPUs, each of which are HT 
capable.  From dmesg:

cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu2 (AP): APIC ID: 6
cpu3 (AP): APIC ID: 7

I also see this:

machdep.hyperthreading_allowed: 0

The problem is, I have reason to believe that my workload benefits greatly from 
SMP, but is not playing nicely with hyperthreading.  That is, it is trying to 
farm out 4 things at a time to a cpu setup that really is only able to do two 
things at a time.

How can I disable HT completely, but still retain ALL the benefits of SMP ?

Thanks.
___
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: Using ports and packages together (or, how do I get mod_php5 ? )

2011-09-20 Thread Jason C. Wells

On 09/20/11 01:23, Matthew Seaman wrote:

'Latest' packages are built for each updated port + OS version +
architecture combination whenever resources are available on the build
cluster.  Typically that implies a delay of a few days or a week or so
after the update hits the ports CVS.  Yes, if you install the latest
pkgs everything should still remain consistent -- but that means you
should install all of the available updates: picking and choosing is the
route to tears before bedtime[*].
For my part, I plan to update all.  I have decided over the years that 
letting the FreeBSD project manage my ports versions for me is the way 
to happiness.  Roll-your-own is a thing of my past.


That said, updating onesy-twosy has only caused me a manageable amount 
of grief.  The problem is the timing.  It is always before bed, or 
before my paper is due, and openoffice is griping about something do 
with java and java is now done differently than it has been... Like I 
said, updating onesy-twosy can be a serious PITA.


Later,
Jason
___
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: Using ports and packages together (or, how do I get mod_php5 ? )

2011-09-20 Thread Matthew Seaman
On 20/09/2011 05:33, Jason C. Wells wrote:
> I noticed only recently that there are now packages on FTP in a folder
> called packages-8-stable.  I am not sure how often these are built.  I
> expect that the entire ports tree is built much like it is during a
> release, except at some later point in time.  I would expect that those
> ports are all "dependency consistent" with each other to the maximum
> extent possible.

'Latest' packages are built for each updated port + OS version +
architecture combination whenever resources are available on the build
cluster.  Typically that implies a delay of a few days or a week or so
after the update hits the ports CVS.  Yes, if you install the latest
pkgs everything should still remain consistent -- but that means you
should install all of the available updates: picking and choosing is the
route to tears before bedtime[*].

Cheers,

Matthew

[*] Unless you know exactly what you're doing and understand how all the
dependency relationships work.

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Using ports and packages together (or, how do I get mod_php5 ? )

2011-09-19 Thread Jason C. Wells

On 09/19/11 13:56, Lars Eighner wrote:

On Mon, 19 Sep 2011, Brandon Kuczenski wrote:

I'm concerned that, if I have some packages built from ports and some 
installed from the release, that the system will become unstable if 
things get too out of sync.




Doh, I just read the handbook.

http://www.freebsd.org/doc/handbook/packages-using.html

**

   If you want to force pkg_add(1)
    to
   download FreeBSD 8-STABLE packages, set PACKAGESITE to
   ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/.

Later,
Jason
___
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: Using ports and packages together (or, how do I get mod_php5 ? )

2011-09-19 Thread Jason C. Wells

On 09/19/11 13:56, Lars Eighner wrote:

On Mon, 19 Sep 2011, Brandon Kuczenski wrote:

I'm concerned that, if I have some packages built from ports and some 
installed from the release, that the system will become unstable if 
things get too out of sync.


I noticed only recently that there are now packages on FTP in a folder 
called packages-8-stable.  I am not sure how often these are built.  I 
expect that the entire ports tree is built much like it is during a 
release, except at some later point in time.  I would expect that those 
ports are all "dependency consistent" with each other to the maximum 
extent possible.


I also prefer packages to ports, but there are a few updates to ports 
that I want now (xorg, xfce, rhythmbox), but I really don't want to try 
9.0 when it becomes a release.


I plan to upgrade my packages to 8-stable from this directory in a 
couple weeks. Maybe this policy will work for you.


Later,
Jason
___
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: Using ports and packages together (or, how do I get mod_php5 ? )

2011-09-19 Thread Lars Eighner

On Mon, 19 Sep 2011, Brandon Kuczenski wrote:

I'm concerned that, if I have some packages built from ports and some 
installed from the release, that the system will become unstable if things 
get too out of sync.


I'd like to say it doesn't matter, but ...

If you are using packages from the time of 8.2 release, you almost certainly
will have trouble using the current (not CURRENT) ports tree for 8.2.  With
a fresh ports tree study UPDATING.  There is quite a lot of reading since
8.2 release. Ruby rolled forth and back, perl has rolled forward etc.

You may do better upgrading with packages first before recompiling things
you need to recompile.

In principle there is nothing wrong with having mixed self-compiled ports
and packages.

THE MAIN PERILS are letting the ports tree get out of sync with itself. 
This could happen, for example, if you cvsup and it stops (or is stopped)

before it is finished (to deal with that example, redo cvsup and be sure it
completes before doing anything with ports); or getting the package database
snafued which can happen if you or the electric company interrupt the
database update process.



Am I incorrect? i.e. should I just go ahead and install libtool 2.4 from the 
port?  I don't see this discussed explicitly in the handbook.


The handbook should not have much to say about this. Compiling ports
yourself or using packages should leave you in exactly the same place
(unless of course you make changes when you compile).  The system cannot
tell where the binary came from. We have the habit of saying "port" when we
compile from the ports tree and "package" when install a package - but they
are really the same thing at a slightly deeper level.  Packages ARE ports.

/usr/ports/UPDATING is the key document.

I don't see any notes since 8.2 release to suggest libtool backward
compatibility problems have cropped up since then. Since more things depend
on libtool than you can shake a stick at it is likely to a long time for
pkgdb to edit the dependencies in the usual way.  Investigating -s might
help.


PS: installing mod_php is an option which I think is called WITH_APACHE.
To be absolutely sure it is set, run make config in php5 port.  The config
will be saved and some port maintenance tools may assume it is right without
prompting you.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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 ports and packages together (or, how do I get mod_php5 ? )

2011-09-19 Thread Brandon Kuczenski

Hi,

I'm running RELENG_8_2 and I've been using packages instead of ports for 
most things, because they're so much quicker.  But certain packages aren't 
compiled the way I need them to be-- postfix had no TLS or SASL support, 
for example, so I built it from the port.


However, that is beginning to lead to some dependency issues.  When 
attempting to build php5 in order to obtain the apache module (see: 
http://lists.freebsd.org/pipermail/freebsd-questions/2009-March/195199.html 
)  Portinstall informs that libtool-2.2.10 (from the release package) is 
too old, that I need to upgrade to libtool 2.4 (which is available from 
the port).


I'm concerned that, if I have some packages built from ports and some 
installed from the release, that the system will become unstable if things 
get too out of sync.


Am I incorrect? i.e. should I just go ahead and install libtool 2.4 from 
the port?  I don't see this discussed explicitly in the handbook.


Thanks in advance,
Brandon

___
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 make devfs show fdisk updates?

2011-09-12 Thread Adam Vande More
On Mon, Sep 12, 2011 at 11:32 PM, Benjamin Kaduk  wrote:

> Dear all,
>
> I have recently been using fdisk(8) to activate additional partitions, but
> have been unable to cause the device nodes corresponding to the new
> partition to appear in /dev other than by rebooting.  (This is on the device
> which contains the root filesystem, so kern.geom.debugflags=16 is necessary
> to perform the fdisk.)
> Please advise on how to effect the creation of the device node(s) in a
> non-disruptive fashion.
>

You can force a GEOM retaste by issuing a "true > /dev/devname".

-- 
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: how to make devfs show fdisk updates?

2011-09-12 Thread Polytropon
On Tue, 13 Sep 2011 00:32:27 -0400 (EDT), Benjamin Kaduk wrote:
> Dear all,
> 
> I have recently been using fdisk(8) to activate additional partitions, but 
> have been unable to cause the device nodes corresponding to the new 
> partition to appear in /dev other than by rebooting.  (This is on the 
> device which contains the root filesystem, so kern.geom.debugflags=16 is 
> necessary to perform the fdisk.)
> Please advise on how to effect the creation of the device node(s) in a 
> non-disruptive fashion.

I think it's still "common practice" to "taste"
the device file in order to make new partitions
show up:

# true > /dev/da0

In this example, I assume that da0 is the _disk_
in question where you've added partitions. Now
the proper device files (e. g. /dev/da0a, /dev/da0d,
/dev/da0e, /dev/da0f... resp. /dev/da0s1a, /dev/da0s1d,
/dev/da0s1e, /dev/da0s1f...) should appear in
the device file system.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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 make devfs show fdisk updates?

2011-09-12 Thread Benjamin Kaduk

Dear all,

I have recently been using fdisk(8) to activate additional partitions, but 
have been unable to cause the device nodes corresponding to the new 
partition to appear in /dev other than by rebooting.  (This is on the 
device which contains the root filesystem, so kern.geom.debugflags=16 is 
necessary to perform the fdisk.)
Please advise on how to effect the creation of the device node(s) in a 
non-disruptive fashion.


Thanks,

Ben Kaduk
___
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: Re[4]: How to check where space is LOST

2011-09-12 Thread Adam Vande More
2011/9/12 Adam Vande More 

> 2011/9/12 Коньков Евгений 
>
>> # fstat -f /var
>>
>> USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
>>
>> root snmpd  205453 /var  47141 -rw---  37217152  w
>>
>> root snmpd  205458 /var  47159 -rw-r- 728  r
>>
>> root cron   20455   wd /var  47105 drwxr-x--- 512  r
>>
>> ...
>>
>>
>> # find /var -inum 47141 -ls
>>
> You find the inode number with fstat(1) then use find(1) to translate it to
> a filename.  It works fine here, if it doesn't work for you perhaps you have
> a user error or there is some other sort of bug.
>

One other thing, it's possible the inode is gone by the time you have run
find(1) so be sure you are working with current fstat(1) output.  May be
easier to script the transform if this is something you are doing regularly.


-- 
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: Re[4]: How to check where space is LOST

2011-09-12 Thread Adam Vande More
2011/9/12 Коньков Евгений 
>
> # fstat -f /var
>
> USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
>
> root snmpd  205453 /var  47141 -rw---  37217152  w
>
> root snmpd  205458 /var  47159 -rw-r- 728  r
>
> root cron   20455   wd /var  47105 drwxr-x--- 512  r
>
> ...
>
>
> # find /var -inum 47141 -ls
>
You find the inode number with fstat then use find to translate it to a
filename.  It works fine here, if it doesn't work for you perhaps you have a
user error or there is some other sort of bug.


-- 
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"


BUG: snmpd or How to check where space is LOST

2011-09-12 Thread Коньков Евгений
Здравствуйте, Robert.

Вы писали 12 сентября 2011 г., 10:28:22:

>> From kes-...@yandex.ru  Mon Sep 12 00:51:16 2011
>> Date: Mon, 12 Sep 2011 08:51:27 +0300
>> From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= 
>> To: Robert Bonomi 
>> Subject: Re[2]: How to check where space is LOST
>>
>> Caoaanoaoeoa, Robert.
>>
>>  u ienaee 12 naioyaoy 2011 a., 4:33:25:
>>
>> >> From owner-freebsd-questi...@freebsd.org  Sun Sep 11 17:23:57 2011
>> >> Date: Mon, 12 Sep 2011 01:23:32 +0300
>> >> From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= 
>> >> To: freebsd-questions@freebsd.org
>> >> Subject: How to check where space is LOST
>> >>
>> >> Hi.
>> >>
>> >> I notice that some times /var is overfull
>> >>
>> >> # df -h
>> >> Filesystem SizeUsed   Avail Capacity  Mounted on
>> >> /dev/ad1s1d989M349M561M38%/var
>> >>
>> >> # cd /var/
>> >>
>> >> # du -h -d 1
>> >>  98M.
>> >>
>> >> If I just #reboot system. I get that on /var is only 98M used.
>> >>
>> >> # df -h
>> >> Filesystem SizeUsed   Avail Capacity  Mounted on
>> >> /dev/ad1s1d989M 98M891M12%/var
>> >>
>> >> How to obtain what take space on /var
>>
>> RB> Probably, you *don't*.  
>>
>> RB> "df" _is_ telling the truth.
>> RB> 'du' is, arguably, 'telling lies'.
>>
>> RB> The difference concerns files that have been deleted (rm) _after_
>> RB> they have been opened, and not yet closed.  The file handle/descriptor
>> RB> that  has the file open silll has access to all the data in the file.
>> RB> but *NOTHING*ELSE* -- inlcuding 'du' -- can access that file, so the
>> RB> space occupied by that deletedd file is not counted.
>>
>> RB> Note: this *IS* a FAQ.
>>
>> thank you very much.
>>
>> fstat -f /var tell me that process snmpd with file descriptor 3 take
>> spece:

RB> It's not unreasonable that snmpd (the 'simple network management protocol'
RB> daemon) needs a *lot* of private storage.

RB> In short, don't worry about it.


Ok, How you can explain this:

# df -h
/dev/ad1s1d989M138M772M15%/var

# fstat -f /var
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
root snmpd  205453 /var  47141 -rw---  37217152  w
root snmpd  205458 /var  47159 -rw-r- 728  r

snmpd has 35MB of space

# find /var -inum 47141 -ls
output is empty ((

# /usr/local/etc/rc.d/snmpd restart
Stopping snmpd.
Starting snmpd.

# df -h
/dev/ad1s1d989M102M808M11%/var

# fstat -f /var/
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
root snmpd  407663 /var  47171 -rw---   23311  w
root snmpd  407668 /var  47159 -rw-r- 728  r

after 3-4 weeks and snmpd overfull /var filesystem 

Test on other system:
# df -h
/dev/ad0s1d6.7G2.1G4.1G34%/var
# fstat -f /var | grep snmp
root snmpd   71403 -588866 -rw-r--r--  947424261  w
root snmpd   71408 /var 588842 -rw-r- 728  r
# /usr/local/etc/rc.d/snmpd restart
Stopping snmpd.
Waiting for PIDS: 7140.
Starting snmpd.
# fstat -f /var | grep snmp
root snmpd  233763 /var 588894 -rw-r--r-- 132  w
root snmpd  233768 /var 588872 -rw-r- 728  r
# df -h
/dev/ad0s1d6.7G1.2G  5G19%/var

It seems that that is the BUG of snmpd

# snmpd -v

NET-SNMP version:  5.5
Web:   http://www.net-snmp.org/
Email: net-snmp-cod...@lists.sourceforge.net

# uname -a
FreeBSD flux 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Fri Jun 10 01:30:12 UTC 2011   
  adm@:/usr/obj/usr/src/sys/PAE_KES  i386


-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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]: How to check where space is LOST

2011-09-12 Thread Коньков Евгений

   Hi, Adam

   # fstat -f /var

   USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W

   root snmpd  205453 /var  47141 -rw---  37217152  w

   root snmpd  205458 /var  47159 -rw-r- 728  r

   root cron   20455   wd /var  47105 drwxr-x--- 512  r

   ...

   # find /var -inum 47141 -ls

   OutPut is empty ((

   >

   2011/9/12 Kon'kov Evgenij <[1]kes-...@yandex.ru>

   # fstat -f /var

   USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W

   clamav   clamd  196823 /var  47113 -rw-r-  767747  w

   clamav   smtp-gated  9428   wd /var  23569 drwxr-xr-x 512  r

   >>> root snmpd   89483 /var  47171 -rw---
   282447082  w

   That is FD #3, how to find what file is that?

   find /var -inum 47171 -ls

   --

   Adam Vande More

   --

   S uvazheniem,

Kon'kov  [2]mailto:kes-...@yandex.ru

References

   1. mailto:kes-...@yandex.ru
   2. mailto:kes-...@yandex.ru
___
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[2]: How to check where space is LOST

2011-09-12 Thread Коньков Евгений

   Zdravstvujte, Adam.

   Vy pisali 12 sentyabrya 2011 g., 3:32:06:

   >

   2011/9/11 Kon'kov Evgenij <[1]kes-...@yandex.ru>

   If I just #reboot system. I get that on /var is only 98M used.

   # df -h

   Filesystem SizeUsed   Avail Capacity  Mounted on

   /dev/ad1s1a496M239M217M52%/

   devfs  1.0K1.0K  0B   100%/dev

   /dev/ad1s1e124M 40K114M 0%/tmp

   /dev/ad1s1f1.8G1.1G596M65%/usr

   /dev/ad1s1d989M 98M891M12%/var

   devfs  1.0K1.0K  0B   100%/var/named/dev

   How to obtain what take space on /var

   fstat -f /var

   --

   Adam Vande More

   # fstat -f /var

   USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W

   root cron   20455   wd /var  47105 drwxr-x--- 512  r

   root cron   204553 /var  94235 -rw---   5  w

   smmspsendmail   20432   wd /var  23564 drwxrwx---8192  r

   smmspsendmail   204324 /var  23567 -rw---  51  w

   root sendmail   20418   wd /var  23561 drwxr-xr-x 512  r

   root sendmail   204185 /var  94226 -rw---  80  w

   clamav   clamd  196823 /var  47113 -rw-r-  767747  w

   clamav   smtp-gated  9428   wd /var  23569 drwxr-xr-x 512  r

   >>> root snmpd   89483 /var  47171 -rw---
   282447082  w

   root snmpd   89488 /var  47187 -rw-r- 728  r

   bind named   7738 root /var  70659 drwxr-xr-x 512  r

   bind named   7738   wd /var  70672 drwxr-xr-x 512  r

   bind named   7738 jail /var  70659 drwxr-xr-x 512  r

   root mpd537614 /var  94245 -rw-r--r--   5 rw

   root syslogd 37423 /var  94231 -rw---   4  w

   root syslogd 3742   13 /var  47122 -rw-r--r-- 182  w

   root syslogd 3742   14 /var  47131 -rw---   99770  w

   root syslogd 3742   15 /var  47114 -rw---   79173  w

   root syslogd 3742   16 /var  47136 -rw-r-  360039  w

   root syslogd 3742   17 /var  47134 -rw-r--r--  56  w

   root syslogd 3742   18 /var  47194 -rw---  56  w

   root syslogd 3742   19 /var  47127 -rw---   90695  w

   root syslogd 3742   20 /var  47128 -rw---   99531  w

   root syslogd 3742   21 /var  47157 -rw-r-  56  w

   root syslogd 3742   22 /var  47153 -rw---  69165428  w

   root syslogd 3742   23 /var  47144 -rwxr-xr-x  10941641  w

   root devd36835 /var  94230 -rw---   4  w

   That is FD #3, how to find what file is that?

   --

   S uvazheniem,

Kon'kov  [2]mailto:kes-...@yandex.ru

References

   1. mailto:kes-...@yandex.ru
   2. mailto:kes-...@yandex.ru
___
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: Re[2]: How to check where space is LOST

2011-09-11 Thread Adam Vande More
2011/9/12 Коньков Евгений 

> **
>
> # fstat -f /var
>
> USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
>
> clamav   clamd  196823 /var  47113 -rw-r-  767747  w
>
> clamav   smtp-gated  9428   wd /var  23569 drwxr-xr-x 512  r
>
> >>> root snmpd   89483 /var  47171 -rw---  282447082  w
>
> That is FD #3, how to find what file is that?
>

find /var -inum 47171 -ls

-- 
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: How to check where space is LOST

2011-09-11 Thread Adam Vande More
2011/9/11 Коньков Евгений 

> If I just #reboot system. I get that on /var is only 98M used.
>
> # df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ad1s1a496M239M217M52%/
> devfs  1.0K1.0K  0B   100%/dev
> /dev/ad1s1e124M 40K114M 0%/tmp
> /dev/ad1s1f1.8G1.1G596M65%/usr
> /dev/ad1s1d989M 98M891M12%/var
> devfs  1.0K1.0K  0B   100%/var/named/dev
>
> How to obtain what take space on /var
>

fstat -f /var

-- 
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: How to check where space is LOST

2011-09-11 Thread Rares Aioanei
On Mon, 12 Sep 2011 01:23:32 +0300
Коньков Евгений  wrote:

> Hi.
> 
> I notice that some times /var is overfull
> 
> # df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ad1s1a496M239M217M52%/
> devfs  1.0K1.0K  0B   100%/dev
> /dev/ad1s1e124M 40K114M 0%/tmp
> /dev/ad1s1f1.8G1.1G596M65%/usr
> /dev/ad1s1d989M349M561M38%/var
> devfs  1.0K1.0K  0B   100%/var/named/dev
> 
> # cd /var/
> 
> # du -h -d 1
> 2.0K./.snap
> 2.0K./account
> 6.0K./at
> 2.0K./audit
>  12K./backups
> 4.0K./crash
> 4.0K./cron
> 2.0K./empty
> 2.0K./heimdal
>  79M./log
>  19M./mail
> 4.0K./msgs
> 159K./named
> 2.0K./preserve
>  60K./run
> 2.0K./rwho
>  70K./spool
>  14K./tmp
>  24K./yp
> 2.0K./games
> 2.0K./agentx
>  22K./net-snmp
> 4.0K./lost+found
>  98M.
> 
> If I just #reboot system. I get that on /var is only 98M used.
> 
> # df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ad1s1a496M239M217M52%/
> devfs  1.0K1.0K  0B   100%/dev
> /dev/ad1s1e124M 40K114M 0%/tmp
> /dev/ad1s1f1.8G1.1G    596M65%/usr
> /dev/ad1s1d989M 98M891M12%/var
> devfs  1.0K1.0K  0B   100%/var/named/dev
> 
> How to obtain what take space on /var
> 
> -- 
> С уважением,
>  Коньков  mailto:kes-...@yandex.ru
> 
> ___
> 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"

http://www.freebsddiary.org/file-system-full.php

It really depends IMHO what you use your computer for (server ore 
workstation...). I'd bet on /var/tmp somehow .
-- 
Rares Aioanei
___
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 check where space is LOST

2011-09-11 Thread ill...@gmail.com
2011/9/11 Коньков Евгений :
> Hi.
>
> I notice that some times /var is overfull
>
> # df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ad1s1a    496M    239M    217M    52%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ad1s1e    124M     40K    114M     0%    /tmp
> /dev/ad1s1f    1.8G    1.1G    596M    65%    /usr
> /dev/ad1s1d    989M    349M    561M    38%    /var
> devfs          1.0K    1.0K      0B   100%    /var/named/dev
>
> # cd /var/
>
> # du -h -d 1
> 2.0K    ./.snap
> 2.0K    ./account
> 6.0K    ./at
> 2.0K    ./audit
>  12K    ./backups
> 4.0K    ./crash
> 4.0K    ./cron
> 2.0K    ./empty
> 2.0K    ./heimdal
>  79M    ./log
>  19M    ./mail
> 4.0K    ./msgs
> 159K    ./named
> 2.0K    ./preserve
>  60K    ./run
> 2.0K    ./rwho
>  70K    ./spool
>  14K    ./tmp
>  24K    ./yp
> 2.0K    ./games
> 2.0K    ./agentx
>  22K    ./net-snmp
> 4.0K    ./lost+found
>  98M    .
>
> If I just #reboot system. I get that on /var is only 98M used.
>
> # df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ad1s1a    496M    239M    217M    52%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ad1s1e    124M     40K    114M     0%    /tmp
> /dev/ad1s1f    1.8G    1.1G    596M    65%    /usr
> /dev/ad1s1d    989M     98M    891M    12%    /var
> devfs          1.0K    1.0K      0B   100%    /var/named/dev
>
> How to obtain what take space on /var
>

You probably have a process that is holding a file open
that has been rotated or deleted.  Probably a log file.

sysutils/lsof can help.

Also, once you track down which
process is holding open files, you should try to find out
why (/etc/syslog.conf is a suspect, obviously).


-- 
--
___
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 check where space is LOST

2011-09-11 Thread Коньков Евгений
Hi.

I notice that some times /var is overfull

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad1s1a496M239M217M52%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad1s1e124M 40K114M 0%/tmp
/dev/ad1s1f1.8G1.1G596M65%/usr
/dev/ad1s1d989M349M561M38%/var
devfs  1.0K1.0K  0B   100%/var/named/dev

# cd /var/

# du -h -d 1
2.0K./.snap
2.0K./account
6.0K./at
2.0K./audit
 12K./backups
4.0K./crash
4.0K./cron
2.0K./empty
2.0K./heimdal
 79M./log
 19M./mail
4.0K./msgs
159K./named
2.0K./preserve
 60K./run
2.0K./rwho
 70K./spool
 14K./tmp
 24K./yp
2.0K./games
2.0K./agentx
 22K./net-snmp
4.0K./lost+found
 98M.

If I just #reboot system. I get that on /var is only 98M used.

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad1s1a496M239M217M52%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad1s1e124M 40K114M 0%/tmp
/dev/ad1s1f1.8G1.1G596M65%/usr
/dev/ad1s1d989M 98M891M12%/var
devfs  1.0K1.0K  0B   100%/var/named/dev

How to obtain what take space on /var

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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 check current port options before updating

2011-08-31 Thread zszalbot
Hello!
 
> does it. Will "make config" show it?

> 
> make showconfig


Thank you very much to everyone who has contributed - you're simply the best 
:)! 
"make showconfig" is great for this purpose indeed! 

Many thanks again!

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"


Re: How to check current port options before updating

2011-08-31 Thread George Liaskos
On Wed, Aug 31, 2011 at 8:36 AM,   wrote:
> Dear all,
>
> I have been wondering how I can check current options of a port before I 
> update it. The port in question (apache22) has a number of options and I 
> would like to look at the current ones so that I do not install options that 
> I may not need. I'd appreciate if you can point me to a reference or a 
> command that does it. Will "make config" show it?
>
> Many thanks!

You can also use --force-config if you use portmaster.

Regards,
George
___
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 check current port options before updating

2011-08-31 Thread Robert Huff

Kaspars Bankovskis writes:

>  Yes, "make config" shows saved options.

For clarity: do this in /.
"make showconfig" is the read-only alternative.

>  You can find them in the file /var/db/ports/portname/options as
>  well.

That works too.


Robert Huff

___
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 check current port options before updating

2011-08-31 Thread Chris Hill

On Tue, 30 Aug 2011, zszal...@ovi.com wrote:

I have been wondering how I can check current options of a port before I 
update it. The port in question (apache22) has a number of options and I 
would like to look at the current ones so that I do not install options 
that I may not need. I'd appreciate if you can point me to a reference 
or a command that does it. Will "make config" show it?


 make showconfig

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging  ]
___
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 check current port options before updating

2011-08-31 Thread Kaspars Bankovskis
Yes, "make config" shows saved options.
You can find them in the file /var/db/ports/portname/options as well.

On Tue, Aug 30, 2011 at 10:36:16PM -0700, zszal...@ovi.com wrote:
> Dear all,
> 
> I have been wondering how I can check current options of a port before I 
> update it. The port in question (apache22) has a number of options and I 
> would like to look at the current ones so that I do not install options that 
> I may not need. I'd appreciate if you can point me to a reference or a 
> command that does it. Will "make config" show it?
> 
> Many thanks!
>  
> 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"
> 
___
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 check current port options before updating

2011-08-31 Thread zszalbot
Dear all,

I have been wondering how I can check current options of a port before I update 
it. The port in question (apache22) has a number of options and I would like to 
look at the current ones so that I do not install options that I may not need. 
I'd appreciate if you can point me to a reference or a command that does it. 
Will "make config" show it?

Many thanks!
 
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"


Re: How is my vnc getting started at boot

2011-08-29 Thread akshay sreeramoju
Thank you Bernt. You are right. I found vncserver.sh there.

Regards,

Akshay

On Mon, Aug 29, 2011 at 8:01 PM, Bernt Hansson  wrote:

> 2011-08-30 04:47, akshay sreeramoju skrev:
>
>  Hi!
>>
>> I am unable to figure how vncserver is being launched during "local
>> package
>> initialization" of my FreBSD 8.2 Release boot.
>>
>> Can anyone help or point me in right direction to figure where my
>> vncserver
>> is being launched from?
>>
>> I need to change my vnc root window size.
>>
>> Thanks,
>>
>> Akshay
>>
>
> Check /usr/local/etc/rc.d/* where 3:d party programs normally is started
> from.
>
___
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 is my vnc getting started at boot

2011-08-29 Thread Bernt Hansson

2011-08-30 04:47, akshay sreeramoju skrev:

Hi!

I am unable to figure how vncserver is being launched during "local package
initialization" of my FreBSD 8.2 Release boot.

Can anyone help or point me in right direction to figure where my vncserver
is being launched from?

I need to change my vnc root window size.

Thanks,

Akshay


Check /usr/local/etc/rc.d/* where 3:d party programs normally is started 
from.

___
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 is my vnc getting started at boot

2011-08-29 Thread akshay sreeramoju
Hi!

I am unable to figure how vncserver is being launched during "local package
initialization" of my FreBSD 8.2 Release boot.

Can anyone help or point me in right direction to figure where my vncserver
is being launched from?

I need to change my vnc root window size.

Thanks,

Akshay
___
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 can I use portmaster to update but skip a package

2011-08-28 Thread Antonio Olivares
>>> You don't seem to have libnotify installed which will get you notify.h.
>>>
>>
>> It was there, but something could have been wrong?  I cd'd to
>> /usr/ports/devel/libnotify and ran
>> make install clean, and it told me that it was already installed and
>> that I should run make deinstall&  reintstall again.  After I did
>> that, now gnome-mount gets updated and only Libreoffice bombs out:
>>
>> ===>>>  Port directory: /usr/ports/editors/libreoffice
>>
>>        ===>>>  This port is marked BROKEN
>>        ===>>>  build is too fragile and break too often -- try
>> libreoffice-legacy
>>
>>        ===>>>  If you are sure you can build it, remove the
>>               BROKEN line in the Makefile and try again.
>
> Have you tried to comment out the BROKEN line and rebuilt?
>

No, if the package fails to build what do I lose?  except time of
course.  The package will stay where it is right?

I don't if I should wait for the port maintainer to remove this by
him/her(self); it is marked for a reason.  In one of the machines I
went with legacy, but the two at home, I have skipped updating this
port.  It is segfaulting and dropped an soffice.core in ~/ (home
directory).  It was working fine, but now I don't know if I should or
not update it.

Has anyone updated to latest? and is it recommended to try and build
new package?

Thanks & sorry for asking.  I am not sure what to do here :(

Regards,

Antonio
___
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 can I use portmaster to update but skip a package

2011-08-28 Thread Bernt Hansson

2011-08-28 13:13, Antonio Olivares skrev:

On Sun, Aug 28, 2011 at 5:51 AM, Bernt Hansson  wrote:

2011-08-27 13:18, Antonio Olivares skrev:



I succeeded in updating like 5 packages out of 21, but now gnome-mount
does not compile :(

gnome-mount.c:44:30: error: libnotify/notify.h: No such file or directory


You don't seem to have libnotify installed which will get you notify.h.



It was there, but something could have been wrong?  I cd'd to
/usr/ports/devel/libnotify and ran
make install clean, and it told me that it was already installed and
that I should run make deinstall&  reintstall again.  After I did
that, now gnome-mount gets updated and only Libreoffice bombs out:

===>>>  Port directory: /usr/ports/editors/libreoffice

===>>>  This port is marked BROKEN
===>>>  build is too fragile and break too often -- try 
libreoffice-legacy

===>>>  If you are sure you can build it, remove the
   BROKEN line in the Makefile and try again.


Have you tried to comment out the BROKEN line and rebuilt?
___
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 can I use portmaster to update but skip a package

2011-08-28 Thread Antonio Olivares
On Sun, Aug 28, 2011 at 5:51 AM, Bernt Hansson  wrote:
> 2011-08-27 13:18, Antonio Olivares skrev:
>
>>
>> I succeeded in updating like 5 packages out of 21, but now gnome-mount
>> does not compile :(
>>
>> gnome-mount.c:44:30: error: libnotify/notify.h: No such file or directory
>
> You don't seem to have libnotify installed which will get you notify.h.
>

It was there, but something could have been wrong?  I cd'd to
/usr/ports/devel/libnotify and ran
make install clean, and it told me that it was already installed and
that I should run make deinstall & reintstall again.  After I did
that, now gnome-mount gets updated and only Libreoffice bombs out:

===>>> Port directory: /usr/ports/editors/libreoffice

===>>> This port is marked BROKEN
===>>> build is too fragile and break too often -- try 
libreoffice-legacy

===>>> If you are sure you can build it, remove the
   BROKEN line in the Makefile and try again.

===>>> Update for libreoffice-3.3.3_2 failed
===>>> Aborting update

Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found.
Fetching snapshot tag from portsnap1.FreeBSD.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.
===>>> New version available: libreoffice-3.4.2_1
===>>> 669 total installed ports
===>>> 1 has a new version available


This one might be worked on, so I think it will be better to wait for
the problems to be worked on and then reinstall, unless someone has
successfully updated to latest version and advices to proceed.

Thanks for helping.

Regards,

Antonio
___
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 can I use portmaster to update but skip a package

2011-08-28 Thread Bernt Hansson

2011-08-27 13:18, Antonio Olivares skrev:



I succeeded in updating like 5 packages out of 21, but now gnome-mount
does not compile :(

gnome-mount.c:44:30: error: libnotify/notify.h: No such file or directory


You don't seem to have libnotify installed which will get you notify.h.
___
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 can I use portmaster to update but skip a package

2011-08-27 Thread ajtiM
On Saturday 27 August 2011 00:56:20 Randal L. Schwartz wrote:
I use:

portmaster -ai

I ask you if you want to install or not.


Mitja

http://jpgmag.com/people/lumiwa
___
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 can I use portmaster to update but skip a package

2011-08-27 Thread Antonio Olivares
On Sat, Aug 27, 2011 at 6:01 AM, ajtiM  wrote:
> On Saturday 27 August 2011 00:56:20 Randal L. Schwartz wrote:
> I use:
>
> portmaster -ai
>
> I ask you if you want to install or not.
>
>
> Mitja
> 

Will it prompt me for every package?  Or just for the ones that are failing?

@all

I succeeded in updating like 5 packages out of 21, but now gnome-mount
does not compile :(

gnome-mount.c:44:30: error: libnotify/notify.h: No such file or directory
gnome-mount.c:1552: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
gnome-mount.c:1558: error: expected ')' before '*' token
gnome-mount.c: In function 'unmount_cache_timeout_func':
gnome-mount.c:1578: error: 'unmount_note' undeclared (first use in
this function)
gnome-mount.c:1578: error: (Each undeclared identifier is reported only once
gnome-mount.c:1578: error: for each function it appears in.)
gnome-mount.c:1585: error: 'unmount_note_close_func' undeclared (first
use in this function)
gnome-mount.c: In function 'unmount_cache_timeout_start':
gnome-mount.c:1604: error: 'unmount_note' undeclared (first use in
this function)
gnome-mount.c: In function 'unmount_cache_timeout_cancel':
gnome-mount.c:1611: error: 'unmount_note' undeclared (first use in
this function)
gmake[3]: *** [gnome-mount.o] Error 1
gmake[3]: Leaving directory
`/usr/ports/sysutils/gnome-mount/work/gnome-mount-0.8/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/sysutils/gnome-mount/work/gnome-mount-0.8/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/sysutils/gnome-mount/work/gnome-mount-0.8'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/sysutils/gnome-mount.

===>>> make failed for sysutils/gnome-mount
===>>> Aborting update

===>>> Update for sysutils/gnome-mount failed
===>>> Aborting update

===>>> There are messages from installed ports to display,
   but first take a moment to review the error messages
   above.  Then press Enter when ready to proceed.


Regards,


Antonio
___
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 can I use portmaster to update but skip a package

2011-08-27 Thread Antonio Olivares
On Fri, Aug 26, 2011 at 11:08 PM, Warren Block  wrote:
> On Fri, 26 Aug 2011, Antonio Olivares wrote:
>
>> Is there a way to update most packages except this one?
>
> See
>  man portmaster | less +2/-x
>

Running
# portmaster -a -x libreoffice

does the trick :)  Thanks very much.  I ran the man portmaster and
could not find the right switch :(  It has many options.  This is why
I asked to be sure.

Thanks to all for replying.  It makes things easier when there are
nice folks that can provide help when one asks for it.

Regards,

Antonio
___
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 can I use portmaster to update but skip a package

2011-08-26 Thread Randal L. Schwartz
> "Ross" == Ross   writes:

Ross> Maybe I spent to little time with portmaster, but I eventually
Ross> switched to portupgrade. I'ts more mature in my opinion. And
Ross> portupgrade -a doesn't have the problem you are referring to.

I started with portupgrade, and am now firmly in the portmaster camp.

I think this is a "vi vs emacs" or "perl vs python" argument.  Just
religious.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
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 can I use portmaster to update but skip a package

2011-08-26 Thread Warren Block

On Fri, 26 Aug 2011, Antonio Olivares wrote:


Is there a way to update most packages except this one?


See
  man portmaster | less +2/-x
___
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 can I use portmaster to update but skip a package

2011-08-26 Thread Ross
On Sat, Aug 27, 2011 at 5:33 AM, Antonio Olivares
 wrote:
> Dear folks,
>
> I am trying to update one of my machines and I ran portmaster -a and got 
> errors:
>
> http://forums.freebsd.org/showthread.php?p=145268
>
> I overcome most by unselecting GNUTLS from cups-image and cups-base,
> and then comes
>
> ===>>> Launching child to update libreoffice-3.3.3_2 to libreoffice-3.4.2_1
>
> ===>>> Port directory: /usr/ports/editors/libreoffice
>
>        ===>>> This port is marked BROKEN
>        ===>>> build is too fragile and break too often -- try 
> libreoffice-legacy
>
>        ===>>> If you are sure you can build it, remove the
>               BROKEN line in the Makefile and try again.
>
> ===>>> Update for libreoffice-3.3.3_2 failed
> ===>>> Aborting update
>
> Is there a way to update most packages except this one?
>
> or should I uninstall it and reinstall it again later?  This is not
> optimal, but it would be something I can try.  I would prefer not to
> do this :(
>
> Thanks in advance,
>
> Antonio
> ___
> 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"
>

Maybe I spent to little time with portmaster, but I eventually
switched to portupgrade. I'ts more mature in my opinion. And
portupgrade -a doesn't have the problem you are referring to.
___
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 can I use portmaster to update but skip a package

2011-08-26 Thread Antonio Olivares
Dear folks,

I am trying to update one of my machines and I ran portmaster -a and got errors:

http://forums.freebsd.org/showthread.php?p=145268

I overcome most by unselecting GNUTLS from cups-image and cups-base,
and then comes

===>>> Launching child to update libreoffice-3.3.3_2 to libreoffice-3.4.2_1

===>>> Port directory: /usr/ports/editors/libreoffice

===>>> This port is marked BROKEN
===>>> build is too fragile and break too often -- try 
libreoffice-legacy

===>>> If you are sure you can build it, remove the
   BROKEN line in the Makefile and try again.

===>>> Update for libreoffice-3.3.3_2 failed
===>>> Aborting update

Is there a way to update most packages except this one?

or should I uninstall it and reinstall it again later?  This is not
optimal, but it would be something I can try.  I would prefer not to
do this :(

Thanks in advance,

Antonio
___
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 allow Amanda to install as operator?

2011-08-23 Thread Chris Rees
On 23 Aug 2011 21:42, "Morse, Richard E.MGH"  wrote:
>
> On Aug 23, 2011, at 4:01 PM, Chris Rees wrote:
>
> > "Morse, Richard E.MGH" wrote:
> >>   GID_FILES="/usr/ports/OP_GROUP" UID_FILES="/usr/ports/OP_USER"
> >> AMANDA_USER="operator" AMANDA_GROUP="operator" make install
> >>
> >> This runs along for a while, then dies with the note:
> >>
> >>   ** /usr/ports/OP_GROUP doesn't exist. Exiting.
> >>   *** Error code 1
> >>
> >>
> >> If I do a `less /usr/ports/OP_GROUP` (copying exactly from the error
> >> message), I can see the file I created just fine.
> >>
> >> Is there something that I'm missing? How am I supposed to install a
port as
> >> a user that already exists? Why doesn't make see that the file exists?
> >>
> >
> > Update your ports tree and try again. Let me know if it doesn't work!
> >
> > http://lists.freebsd.org/pipermail/cvs-ports/2011-August/224032.html
>
> Thanks! This change made the install happen OK.
>
> I am still wondering if there was something I should have done to make
overriding GID_FILES and UID_FILES work?
>

Lose the quotes ;)

Chris
___
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 allow Amanda to install as operator?

2011-08-23 Thread Morse, Richard E.MGH
On Aug 23, 2011, at 4:01 PM, Chris Rees wrote:

> "Morse, Richard E.MGH" wrote:
>>   GID_FILES="/usr/ports/OP_GROUP" UID_FILES="/usr/ports/OP_USER"
>> AMANDA_USER="operator" AMANDA_GROUP="operator" make install
>> 
>> This runs along for a while, then dies with the note:
>> 
>>   ** /usr/ports/OP_GROUP doesn't exist. Exiting.
>>   *** Error code 1
>> 
>> 
>> If I do a `less /usr/ports/OP_GROUP` (copying exactly from the error
>> message), I can see the file I created just fine.
>> 
>> Is there something that I'm missing? How am I supposed to install a port as
>> a user that already exists? Why doesn't make see that the file exists?
>> 
> 
> Update your ports tree and try again. Let me know if it doesn't work!
> 
> http://lists.freebsd.org/pipermail/cvs-ports/2011-August/224032.html

Thanks! This change made the install happen OK.

I am still wondering if there was something I should have done to make 
overriding GID_FILES and UID_FILES work?

Thanks,
Ricky


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-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: How to allow Amanda to install as operator?

2011-08-23 Thread Chris Rees
Please CC me in replies, this was passed on to me by someone subscribed.


"Morse, Richard E.MGH" wrote:
> Hi! I'm trying to upgrade my Amanda installation from a v2.6 to v3.2 via
> ports. I had configured Amanda previously to be installed as the user
> `operator`. The upgraded version wants to install as the user `amanda`;
> however this presents all kinds of problems:
>- the `amanda` user has no home directory, one is needed to put the
> access file in
>- I already have all of the directories set up as owned by operator
>- I have a number of clients that are all set up to allow operator to
> access them, but not "amanda".
>
> I have tried setting AMANDA_USER and AMANDA_GROUP to be `operator`, but this
> then complains that `operator` is not found in `/usr/ports/GIDs` and
> `/usr/ports/UIDs`. Since these are part of the base system, I don't want to
> mess with them, so I groveled through the .mk files, and determined that I
> should be able to provide my own user and group files by setting the
> GID_FILES and UID_FILES environment variable.
>
> I tried this. I created the necessary files (greping out the data from
> /etc/passwd and /etc/group), put them in the same directory as GIDs and
> UIDs, and ran the make command:
>
>GID_FILES="/usr/ports/OP_GROUP" UID_FILES="/usr/ports/OP_USER"
> AMANDA_USER="operator" AMANDA_GROUP="operator" make install
>
> This runs along for a while, then dies with the note:
>
>** /usr/ports/OP_GROUP doesn't exist. Exiting.
>*** Error code 1
>
>
> If I do a `less /usr/ports/OP_GROUP` (copying exactly from the error
> message), I can see the file I created just fine.
>
> Is there something that I'm missing? How am I supposed to install a port as
> a user that already exists? Why doesn't make see that the file exists?
>

Update your ports tree and try again. Let me know if it doesn't work!

http://lists.freebsd.org/pipermail/cvs-ports/2011-August/224032.html

Chris

-- 
Chris Rees          | FreeBSD Developer
cr...@freebsd.org   | http://people.freebsd.org/~crees
___
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 allow Amanda to install as operator?

2011-08-23 Thread Jason Helfman

On Tue, Aug 23, 2011 at 07:20:32PM +, Morse, Richard E.MGH thus spake:

Hi! I'm trying to upgrade my Amanda installation from a v2.6 to v3.2 via ports. 
I had configured Amanda previously to be installed as the user `operator`. The 
upgraded version wants to install as the user `amanda`; however this presents 
all kinds of problems:
- the `amanda` user has no home directory, one is needed to put the 
access file in
- I already have all of the directories set up as owned by operator
- I have a number of clients that are all set up to allow operator to access 
them, but not "amanda".

I have tried setting AMANDA_USER and AMANDA_GROUP to be `operator`, but this 
then complains that `operator` is not found in `/usr/ports/GIDs` and 
`/usr/ports/UIDs`. Since these are part of the base system, I don't want to 
mess with them, so I groveled through the .mk files, and determined that I 
should be able to provide my own user and group files by setting the GID_FILES 
and UID_FILES environment variable.

I tried this. I created the necessary files (greping out the data from 
/etc/passwd and /etc/group), put them in the same directory as GIDs and UIDs, 
and ran the make command:

GID_FILES="/usr/ports/OP_GROUP" UID_FILES="/usr/ports/OP_USER" 
AMANDA_USER="operator" AMANDA_GROUP="operator" make install

This runs along for a while, then dies with the note:

** /usr/ports/OP_GROUP doesn't exist. Exiting.
*** Error code 1


If I do a `less /usr/ports/OP_GROUP` (copying exactly from the error message), 
I can see the file I created just fine.

Is there something that I'm missing? How am I supposed to install a port as a 
user that already exists? Why doesn't make see that the file exists?

Thanks,
Ricky



If you update your portstree, this should be fixed now.
I notificed crees@ and he committed to UIDs/GIDs the operator user and
group, so they may be used for installing.

-jgh

--
Jason Helfman
System Administrator
experts-exchange.com
http://www.experts-exchange.com/M_4830110.html
E4AD 7CF1 1396 27F6 79DD  4342 5E92 AD66 8C8C FBA5
___
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 allow Amanda to install as operator?

2011-08-23 Thread Morse, Richard E.MGH
Hi! I'm trying to upgrade my Amanda installation from a v2.6 to v3.2 via ports. 
I had configured Amanda previously to be installed as the user `operator`. The 
upgraded version wants to install as the user `amanda`; however this presents 
all kinds of problems:
- the `amanda` user has no home directory, one is needed to put the 
access file in
- I already have all of the directories set up as owned by operator
- I have a number of clients that are all set up to allow operator to 
access them, but not "amanda".

I have tried setting AMANDA_USER and AMANDA_GROUP to be `operator`, but this 
then complains that `operator` is not found in `/usr/ports/GIDs` and 
`/usr/ports/UIDs`. Since these are part of the base system, I don't want to 
mess with them, so I groveled through the .mk files, and determined that I 
should be able to provide my own user and group files by setting the GID_FILES 
and UID_FILES environment variable.

I tried this. I created the necessary files (greping out the data from 
/etc/passwd and /etc/group), put them in the same directory as GIDs and UIDs, 
and ran the make command:

GID_FILES="/usr/ports/OP_GROUP" UID_FILES="/usr/ports/OP_USER" 
AMANDA_USER="operator" AMANDA_GROUP="operator" make install

This runs along for a while, then dies with the note:

** /usr/ports/OP_GROUP doesn't exist. Exiting.
*** Error code 1


If I do a `less /usr/ports/OP_GROUP` (copying exactly from the error message), 
I can see the file I created just fine.

Is there something that I'm missing? How am I supposed to install a port as a 
user that already exists? Why doesn't make see that the file exists?

Thanks,
Ricky


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-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: How much memory does ZFS use?

2011-08-21 Thread RW
On Sat, 20 Aug 2011 11:38:27 -0700
Yuri wrote:

> Someone told me that ZFS is a memory hog and it should be avoided as
> such. Is this true?

I wonder if this might be a mix-up between virtual and physical
memory. It's use of address space can be prohibitive on i386.
___
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 much memory does ZFS use?

2011-08-20 Thread Adam Vande More
On Sat, Aug 20, 2011 at 1:38 PM, Yuri  wrote:

> Someone told me that ZFS is a memory hog and it should be avoided as such.
> Is this true?
>

A rather ridiculous statement you were told and full of ignorance in my
opinion.  The 1908 Ford Model T got 25 MPG and my 2006 Mazda Speed6 gets
about 21 on the highway.  Which one would you rather drive around and
entrust with your family's safety?

Look at it this way, computer performance has increased very
rapidly(particularly in terms of CPU) over the last 30 years with one key
exception:  disk performance.  ZFS, among it's other benefits, does what it
can to mask this deficiency by offloading what it to more CPU and memory
intensive operations.  Offloading(where possible) slow disk to faster CPU
and memory resources which many server and desktops already have in abundant
excess is an excellent tradeoff IMO.

What difference does it make if it's a kernel module or not in terms of
memory usage?  Either way, set the appropriate tunable to control memory
usage and you're done.

vfs.zfs.arc_max="2048M"

-- 
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: How much memory does ZFS use?

2011-08-20 Thread Yuri

On 08/20/2011 11:45, Gary Gatten wrote:

Zfs isn't a typical daemon/process. That's like saying databased is a memory 
hog cause it needs a lot of ram for caching.


I know it's a kernel module.



Zfs ram requirements will depend on your file system i/o load, types/sizes of 
files, types and rates of file system ops, etc.  512MB may be fine, or you may 
need 4GB for optimum performance.


I meant mostly, for the same type of FS access, how does ZFS memory 
consumption compare with situation if I used UFS?


Also how can I see what memory consumption is for each kernel module?

Yuri
___
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 much memory does ZFS use?

2011-08-20 Thread Gary Gatten
Zfs isn't a typical daemon/process. That's like saying databased is a memory 
hog cause it needs a lot of ram for caching.

Zfs ram requirements will depend on your file system i/o load, types/sizes of 
files, types and rates of file system ops, etc.  512MB may be fine, or you may 
need 4GB for optimum performance.

- Original Message -
From: Yuri [mailto:y...@rawbw.com]
Sent: Saturday, August 20, 2011 01:38 PM
To: FreeBSD Questions 
Subject: How much memory does ZFS use?

Someone told me that ZFS is a memory hog and it should be avoided as such.
Is this true?
How can I understand how much memory particular kernel module consumes?
In Solaris there is mdb for that, what is an equivalent in FreeBSD?

Yuri
___
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"








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


___
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 much memory does ZFS use?

2011-08-20 Thread Yuri

Someone told me that ZFS is a memory hog and it should be avoided as such.
Is this true?
How can I understand how much memory particular kernel module consumes?
In Solaris there is mdb for that, what is an equivalent in FreeBSD?

Yuri
___
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 much disk space required for make release?

2011-08-17 Thread Miller, Vincent (Rick)
I want to thank everyone for their suggestions.  I ended up creating a
larger swap and /tmp and reran make release with much better results.
It's not completely finished yet, but has certainly progressed much
further than the other day.

==
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com

t: 703-948-4395
21345 Ridgetop Cir Dulles, VA 20166

VerisignInc.com





On 8/16/11 5:50 PM, "Edwin L. Culp W."  wrote:

>On Tue, Aug 16, 2011 at 1:38 PM, Miller, Vincent (Rick)
> wrote:
>> Hello all,
>>
>> I am attempting to 'make release' 8.2-RELEASE.  After running for a few
>>hours, it died citing lack of disk space. The filesystem has
>>approximately 80GB available.  How much disk space is required when
>>making a release?
>>
>> ==
>> Vincent (Rick) Miller
>> Systems Engineer
>> vmil...@verisign.com
>>
>> t: 703-948-4395
>> 21345 Ridgetop Cir Dulles, VA 20166
>>
>> VerisignInc.com
>> ___
>> 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"
>>
>I am not running 8.  Only 7, soon to be updated to 9, but I just
>finished building a release on Current amd64.  I doubt that it will
>help much but . . .
>
># du -s -m  release
>8693release
>
>A little less than 9G.  I wouldn't want to have less that 10G free, if
>I were going to build regularly.
>
>Boy am I glad that disks are so much cheaper now.
>
>ed

___
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 much disk space required for make release?

2011-08-16 Thread Edwin L. Culp W.
On Tue, Aug 16, 2011 at 1:38 PM, Miller, Vincent (Rick)
 wrote:
> Hello all,
>
> I am attempting to 'make release' 8.2-RELEASE.  After running for a few 
> hours, it died citing lack of disk space. The filesystem has approximately 
> 80GB available.  How much disk space is required when making a release?
>
> ==
> Vincent (Rick) Miller
> Systems Engineer
> vmil...@verisign.com
>
> t: 703-948-4395
> 21345 Ridgetop Cir Dulles, VA 20166
>
> VerisignInc.com
> ___
> 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"
>
I am not running 8.  Only 7, soon to be updated to 9, but I just
finished building a release on Current amd64.  I doubt that it will
help much but . . .

# du -s -m  release
8693release

A little less than 9G.  I wouldn't want to have less that 10G free, if
I were going to build regularly.

Boy am I glad that disks are so much cheaper now.

ed
___
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 much disk space required for make release?

2011-08-16 Thread Julian H. Stacey
Hi,
Reference:
> From: "Miller, Vincent (Rick)"  
> Date: Tue, 16 Aug 2011 18:38:31 + 
> Message-id:

"Miller, Vincent (Rick)" wrote:
> Hello all,
> 
> I am attempting to 'make release' 8.2-RELEASE.  After running for a few 
> hours, it died citing lack of disk space. The filesystem has approximately 
> 80GB available.  How much disk space is required when making a release?

A gig or 2 I recall,
(each of src/ & obj/ I recall is ~ 600M 
then there's a chroot, so same again, but a few gig should be 
sufficient.
80G is more than enough,
You must have some partiton that overflowed, maybe /tmp or /var.

If you cant find what,
just run eg
touch ~//df.log
#!/bin/csh
while (1)
df >> ~/df.log
sleep 300
end

& then start release again,
the log will show where its getting eaten

However I seem to recall some env var that allows piorts/ to be called in too
Now ports/distfiles alone is maybe 100 Gig or so ... so avoid ports/

Sorry to be imprecise, I havent rolled a release for months,
though I used to do it very frequently.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below, not above;  Indent with "> ";  Cumulative like a play script.
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
___
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 much disk space required for make release?

2011-08-16 Thread Devin Teske
> -Original Message-
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of Miller, Vincent (Rick)
> Sent: Tuesday, August 16, 2011 11:39 AM
> To: FreeBSD
> Subject: How much disk space required for make release?
> 
> Hello all,
> 
> I am attempting to 'make release' 8.2-RELEASE.  After running for a few hours,
it
> died citing lack of disk space. The filesystem has approximately 80GB
available.
> How much disk space is required when making a release?

According to my notes...

You will need approximately 600MB of storage space available on the filesystem
that `/usr/src' resides on.

Meanwhile, you'll need an additional 3GB (approximately) of storage space
available on the filesystem that `/usr/release' resides on.

And further still, you'll need an additional 600MB of storage space for the
`/usr/obj' directory.

So if all three directories (`/usr/src', `/usr/obj', and `/usr/release') live on
the same filesystem, you'll need approximately 4.2GB of free space to build a
FreeBSD release (including the source).

Please note however, that this estimate is low because I never compile a release
with the default options.

I usually use the following:

make release CHROOTDIR=/usr/release EXTSRCDIR=/usr/src KERNELS_BASE= \
NODOC=YES NO_FLOPPIES=YES NOCDROM=YES NOPORTS=YES

The above options _significantly_ reduce the size of disk space required to
build the release.
-- 
Devin


_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_
___
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 much disk space required for make release?

2011-08-16 Thread Miller, Vincent (Rick)
Hello all,

I am attempting to 'make release' 8.2-RELEASE.  After running for a few hours, 
it died citing lack of disk space. The filesystem has approximately 80GB 
available.  How much disk space is required when making a release?

==
Vincent (Rick) Miller
Systems Engineer
vmil...@verisign.com

t: 703-948-4395
21345 Ridgetop Cir Dulles, VA 20166

VerisignInc.com
___
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 get ip address automatically from different dhcp server

2011-08-14 Thread dave jones
On Sat, Aug 13, 2011 at 2:32 AM, Christopher J. Ruwe  wrote:
> On Fri, 12 Aug 2011 11:46:34 +0800
> dave jones  wrote:
>
> I rearrange your mail and post bottom to enable others to have a look.
>
>>On Thu, Jul 28, 2011 at 4:30 AM, Christopher J. Ruwe  wrote:
>>> On Wed, 27 Jul 2011 10:49:42 +0800
>>> dave jones  wrote:
>>>
>>>> Hi,
>>>>
>>>> I cat get an IP address from dhcp server by adding the line
>>>> in /etc/rc.conf:
>>>>
>>>> ifconfig_em0="DHCP"
>>>>
>>>> If I move my laptop to another place, I have to manually run
>>>> "dhclient em0" to get an IP. Otherwise, it won't get an IP
>>>> automatically.
>>>>
>>>> My question is it's possible to get ip address automatically from
>>>> different dhcp server? thanks.
>>>>
>>>> Regards,
>>>> Dave.
>>>> ___
>>>> 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"
>>>
>>> Have a look at /etc/devd.conf. Mine include a portion
>>>
>>> #
>>> # Try to start dhclient on Ethernet like interfaces when the link comes
>>> # up.  Only devices that are configured to support DHCP will actually
>>> # run it.  No link down rule exists because dhclient automaticly exits
>>> # when the link goes down.
>>> #
>>> notify 0 {
>>>        match "system"          "IFNET";
>>>        match "type"            "LINK_UP";
>>>        media-type              "ethernet";
>>>        action "/etc/rc.d/dhclient quietstart $subsystem";
>>> };
>>> #
>>> notify 0 {
>>>        match "system"          "IFNET";
>>>        match "type"            "LINK_DOWN";
>>>        media-type              "ethernet";
>>>        action "/etc/rc.d/dhclient quietstop $subsystem ; ifconfig 
>>> $subsystem inet 0.0.0.0";
>>> };
>>>
>>> I am under the impression that this rule does what you want to do.
>>>
>>> Cheers,
>>> --
>>> Christopher J. Ruwe
>>> TZ GMT + 2
>>>
>
>> Hi Christopher,
>>
>> Thanks for your solution. It does help a lot, but there's one problem.
>> For example, DHCP server is not started for some reason and my computer's
>> ethernet cable is plugged. Once dhcp server started, I can't get the IP 
>> unless
>> I unplug and then plug the ethernet cable. Do you know how to solve
>> this issue? Thank you.
>>
>> Regards,
>> Dave.
>>
>
> Ok. To check whether I understand what you are saying: Your computer is 
> running, but an external DHCP-server is not. Your computer tries to get an IP 
> from the external DHCP server, which is down, so dhclient is unsuccessful. 
> You then kick the DHCP-server back to live and then you have to plug in and 
> out to get an IP?

Right. I'm sorry for the confusion.

> Assuming I understand correctly, that is exactly what should happen. You see, 
> normally DHCP-servers don't flood the network with "Hello all dhclients, I am 
> dhcp-server, please tell me if you need an IP", usually the opposite 
> direction is in order as in "hello dhcp-server, I am dhclient, I need an IP, 
> please give me one".
> You now have two options: 1) You coerce a manual request be running dhclient. 
> 2) You plug in and out, which runs dhclient as you have configured to do so 
> in your devd.conf.
> Of course you can set the retry-time for dhclient (see `man dhclient`) to an 
> absurldly low threshold, so you are saved doing the dhcp-discover-procedure 
> manually. It is, however, dubious, whether you want to do so. It might be a 
> smarter way to fix that DHCP-server of yours.

Thank you for the clear explanation. I will add "retry 10" in
dhclient.conf and give it a try.
I'm wondering if net/ifstated will work in this case. I'll give it a
shot as well.
Thanks again!

> Hope to have been of some help here,
> cheers
> --
> Christopher J. Ruwe
> TZ GMT + 2
>

Regards,
Dave.
___
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 get ip address automatically from different dhcp server

2011-08-12 Thread Christopher J. Ruwe
On Fri, 12 Aug 2011 11:46:34 +0800
dave jones  wrote:

I rearrange your mail and post bottom to enable others to have a look.

>On Thu, Jul 28, 2011 at 4:30 AM, Christopher J. Ruwe  wrote:
>> On Wed, 27 Jul 2011 10:49:42 +0800
>> dave jones  wrote:
>>
>>> Hi,
>>>
>>> I cat get an IP address from dhcp server by adding the line
>>> in /etc/rc.conf:
>>>
>>> ifconfig_em0="DHCP"
>>>
>>> If I move my laptop to another place, I have to manually run
>>> "dhclient em0" to get an IP. Otherwise, it won't get an IP
>>> automatically.
>>>
>>> My question is it's possible to get ip address automatically from
>>> different dhcp server? thanks.
>>>
>>> Regards,
>>> Dave.
>>> ___
>>> 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"
>>
>> Have a look at /etc/devd.conf. Mine include a portion
>>
>> #
>> # Try to start dhclient on Ethernet like interfaces when the link comes
>> # up.  Only devices that are configured to support DHCP will actually
>> # run it.  No link down rule exists because dhclient automaticly exits
>> # when the link goes down.
>> #
>> notify 0 {
>>        match "system"          "IFNET";
>>        match "type"            "LINK_UP";
>>        media-type              "ethernet";
>>        action "/etc/rc.d/dhclient quietstart $subsystem";
>> };
>> #
>> notify 0 {
>>        match "system"          "IFNET";
>>        match "type"            "LINK_DOWN";
>>        media-type              "ethernet";
>>        action "/etc/rc.d/dhclient quietstop $subsystem ; ifconfig $subsystem 
>> inet 0.0.0.0";
>> };
>>
>> I am under the impression that this rule does what you want to do.
>>
>> Cheers,
>> --
>> Christopher J. Ruwe
>> TZ GMT + 2
>>

> Hi Christopher,
> 
> Thanks for your solution. It does help a lot, but there's one problem.
> For example, DHCP server is not started for some reason and my computer's
> ethernet cable is plugged. Once dhcp server started, I can't get the IP unless
> I unplug and then plug the ethernet cable. Do you know how to solve
> this issue? Thank you.
> 
> Regards,
> Dave.
> 

Ok. To check whether I understand what you are saying: Your computer is 
running, but an external DHCP-server is not. Your computer tries to get an IP 
from the external DHCP server, which is down, so dhclient is unsuccessful. You 
then kick the DHCP-server back to live and then you have to plug in and out to 
get an IP?

Assuming I understand correctly, that is exactly what should happen. You see, 
normally DHCP-servers don't flood the network with "Hello all dhclients, I am 
dhcp-server, please tell me if you need an IP", usually the opposite direction 
is in order as in "hello dhcp-server, I am dhclient, I need an IP, please give 
me one". 
You now have two options: 1) You coerce a manual request be running dhclient. 
2) You plug in and out, which runs dhclient as you have configured to do so in 
your devd.conf.
Of course you can set the retry-time for dhclient (see `man dhclient`) to an 
absurldly low threshold, so you are saved doing the dhcp-discover-procedure 
manually. It is, however, dubious, whether you want to do so. It might be a 
smarter way to fix that DHCP-server of yours.

Hope to have been of some help here, 
cheers
-- 
Christopher J. Ruwe
TZ GMT + 2
___
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 get ip address automatically from different dhcp server

2011-08-11 Thread dave jones
Hi Christopher,

Thanks for your solution. It does help a lot, but there's one problem.
For example, DHCP server is not started for some reason and my computer's
ethernet cable is plugged. Once dhcp server started, I can't get the IP unless
I unplug and then plug the ethernet cable. Do you know how to solve
this issue? Thank you.

Regards,
Dave.

On Thu, Jul 28, 2011 at 4:30 AM, Christopher J. Ruwe  wrote:
> On Wed, 27 Jul 2011 10:49:42 +0800
> dave jones  wrote:
>
>> Hi,
>>
>> I cat get an IP address from dhcp server by adding the line
>> in /etc/rc.conf:
>>
>> ifconfig_em0="DHCP"
>>
>> If I move my laptop to another place, I have to manually run
>> "dhclient em0" to get an IP. Otherwise, it won't get an IP
>> automatically.
>>
>> My question is it's possible to get ip address automatically from
>> different dhcp server? thanks.
>>
>> Regards,
>> Dave.
>> ___
>> 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"
>
> Have a look at /etc/devd.conf. Mine include a portion
>
> #
> # Try to start dhclient on Ethernet like interfaces when the link comes
> # up.  Only devices that are configured to support DHCP will actually
> # run it.  No link down rule exists because dhclient automaticly exits
> # when the link goes down.
> #
> notify 0 {
>        match "system"          "IFNET";
>        match "type"            "LINK_UP";
>        media-type              "ethernet";
>        action "/etc/rc.d/dhclient quietstart $subsystem";
> };
> #
> notify 0 {
>        match "system"          "IFNET";
>        match "type"            "LINK_DOWN";
>        media-type              "ethernet";
>        action "/etc/rc.d/dhclient quietstop $subsystem ; ifconfig $subsystem 
> inet 0.0.0.0";
> };
>
> I am under the impression that this rule does what you want to do.
>
> Cheers,
> --
> Christopher J. Ruwe
> TZ GMT + 2
>
___
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 turn off screen blanking

2011-08-11 Thread Al Plant

Aryeh Friedman wrote:

I have a kiosk system I am almost done building and the last snag is
attempting to make it so idle time (no keyboard or mouse attached) does not
blank the screen.   I have already tried the following:

vidcontrol -S off
disabling acpi and apmd from the kernel config
enabling dpms via the kernel config and then running xset -dpms

Any other ideas?
___
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 Aryeh,

In my shed the three generic servers are headless and all will show 
video on demand using a kvm switch. I had to set the bios show no errors 
 on the boxes to make this work. There are not new by any means but may 
give you an idea what to try. I believe these are hardware settings.


-

~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"


How can I unblur emacs and firefox menu fonts.

2011-08-11 Thread akshay sreeramoju
Hi,

My emacs and firefox, and maybe other apps, display is blurred?
On emacs the content itself is clear, just the menu is blurred (
http://s1202.photobucket.com/albums/bb375/aksreera/?action=view¤t=emacs.jpg
).
On firefox both content and menu are blurred (
http://s1202.photobucket.com/albums/bb375/aksreera/?action=view¤t=firefox.jpg
).

Can any one help with guidance or pointers on what to install/configure to
unblur them? Your help is appreciated.

I am using xorg as my display manager and fvwm as my window manager
with setup truetype fonts. Some configs are appended below, please let me
know if you need any other info.


Thank you,

Akshay

Following is my system configuration:
[aksreera@cleanfreebsd /usr/home/aksreera]$ uname -a
FreeBSD x.x.x.x. 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC
2011 r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

[aksreera@cleanfreebsd /usr/home/aksreera]$ cat /etc/rc.conf
# -- sysinstall generated deltas -- # Sun Aug  7 05:41:11 2011
# Created: Sun Aug  7 05:41:11 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="cleanfreebsd.hsd1.ca.comcast.net."
ifconfig_em0="DHCP"
inetd_enable="YES"
moused_enable="YES"
nfs_client_enable="YES"
nfs_server_enable="YES"
rpcbind_enable="YES"
sshd_enable="YES"
#mountd_flags="-r"
# -- sysinstall generated deltas -- # Sun Aug  7 13:50:14 2011
sshd_enable="NO"
hald_enable="YES"
dbus_enable="YES"
gnome_enable="YES"
[aksreera@cleanfreebsd /usr/home/aksreera]$
___
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 turn off screen blanking

2011-08-10 Thread Aryeh Friedman
Thanks!!! will tell you the results (yes it is a browser only thing... boot
into ff to a specific URL and dial out via a 3g USB wireless modem [the
second part took over 2 weeks of fiddling to get all three brands of modems
that will be used in production to work])

On Wed, Aug 10, 2011 at 5:21 PM, Frank Shute  wrote:

> On Wed, Aug 10, 2011 at 04:04:42PM -0400, Aryeh Friedman wrote:
> >
> > I have a kiosk system I am almost done building and the last snag is
> > attempting to make it so idle time (no keyboard or mouse attached) does
> not
> > blank the screen.   I have already tried the following:
> >
> > vidcontrol -S off
> > disabling acpi and apmd from the kernel config
> > enabling dpms via the kernel config and then running xset -dpms
> >
> > Any other ideas?
>
> IIRC your kiosk machine is just a browser running on X.
>
> In that case, make sure dpms is enabled and try:
>
> $ xset dpms 0 0 0
>
> That should disable any blanking.
>
>
> Regards,
>
> --
>
>  Frank
>
>  Contact info: http://www.shute.org.uk/misc/contact.html
>
>
>
___
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 turn off screen blanking

2011-08-10 Thread Frank Shute
On Wed, Aug 10, 2011 at 04:04:42PM -0400, Aryeh Friedman wrote:
>
> I have a kiosk system I am almost done building and the last snag is
> attempting to make it so idle time (no keyboard or mouse attached) does not
> blank the screen.   I have already tried the following:
> 
> vidcontrol -S off
> disabling acpi and apmd from the kernel config
> enabling dpms via the kernel config and then running xset -dpms
> 
> Any other ideas?

IIRC your kiosk machine is just a browser running on X.

In that case, make sure dpms is enabled and try:

$ xset dpms 0 0 0

That should disable any blanking.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgp3N26RmiaAF.pgp
Description: PGP signature


Re: How to turn off screen blanking

2011-08-10 Thread Antonio Olivares
> I have a kiosk system I am almost done building and the last snag is
> attempting to make it so idle time (no keyboard or mouse attached) does not
> blank the screen.   I have already tried the following:
>
> vidcontrol -S off
> disabling acpi and apmd from the kernel config
> enabling dpms via the kernel config and then running xset -dpms
>
> Any other ideas?

I had a similar situation, but I had a monitor with built in speakers
and it turned off automatically(screen saver/dpms), and I had to wake
it up in order to play some songs and I could hear them :)  The
monitor was in sleep mode.  I had a script that powered it back up:

/***/
#!/bin/sh

export DISPLAY=:0
/usr/local/bin/xset dpms force on;
/usr/local/bin/xterm -display :0 -bg white \
-e /usr/local/bin/mplayer --really-quiet -shuffle -playlist
~/.playlist -stop-xscreensaver & PID=$! > /dev/null 2>&1
sleep 1800
kill $PID
/usr/local/bin/xset +dpms
/***/

The line that should do it is this one :

/usr/local/bin/xset dpms force on;

The rest was for playing music at a certain time :) [via crontab
entry], several kind members of this list suggested the $PID=$! trick
and then kill $PID.  I was trying to use killall -9
/usr/local/bin/mplayer to stop mplayer from playing, then I found that
pkill /usr/local/bin/mplayer to do it.  But that was not optimal.
Hope you test it and that it would work for what you intend to use it
for :)

Regards,

Antonio
___
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 turn off screen blanking

2011-08-10 Thread Matthias Apitz
El día Wednesday, August 10, 2011 a las 03:46:15PM -0500, Gary Gatten escribió:


Hello Gary,

Sorry for have mistyped your name.

> I see  So I try to follow the rules and bottom post, and apparently I 
> STILL don't do it right?? (SIGH)
> 
> SERIOUSLY!  I use Outlook.  I write something and hit reply - period.  I 
> am NOT going to take the time to scroll back in the message and add ">" or 
> some other delimiter to every line.  MAYBE next time I'll make a one line 
> comment or something to delineate the OP and my reply - MAYBE  Or MAYBE 
> you can just deal with it?  It doesn't take a rocket scientist to follow the 
> thread!

Google for "outlook quotefix' to see how this could be fixed.
And google for my name, if you want, to see that I'm providing help as
well here.

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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 turn off screen blanking

2011-08-10 Thread Gary Gatten
> 
> I have a kiosk system I am almost done building and the last snag is
> attempting to make it so idle time (no keyboard or mouse attached) does not
> blank the screen.   I have already tried the following:
> 
> vidcontrol -S off
> disabling acpi and apmd from the kernel config
> enabling dpms via the kernel config and then running xset -dpms
> 
> Any other ideas?
> 
> 
> Does the monitor itself have "Green" options that can be adjusted/disabled on 
> the monitor itself?
> 
> 

Hello Garry,

Despite of the fact that in your reply there is no chance to distinguish
between your lines and the text of the OP, please be so kind and stop
sending such nonsense as your footer, to be seen below, to a public mailing
list like the FreeBSD mailing list.

Thanks in advance

matthias
> 
> 
> 


I see  So I try to follow the rules and bottom post, and apparently I STILL 
don't do it right?? (SIGH)

SERIOUSLY!  I use Outlook.  I write something and hit reply - period.  I am 
NOT going to take the time to scroll back in the message and add ">" or some 
other delimiter to every line.  MAYBE next time I'll make a one line comment or 
something to delineate the OP and my reply - MAYBE  Or MAYBE you can just 
deal with it?  It doesn't take a rocket scientist to follow the thread!

Some people on here are SO freaking ridiculous - finding every possible thing 
to complain about regarding grammar, semantics, policies vs. focusing on the 
SPIRIT of this and other user lists - HELPING PEOPLE  Before you (whomever) 
fires off an email bitching about something, please keep in mind that NO one is 
forcing anyone to be here, and people (such as myself) are taking their time to 
TRY to help others.  If all we ever receive is worthless criticism because we 
don't follow the policy to the letter, maybe we'll stop trying to help - and if 
enough do that then what?  I'm on one of those lists now where I'm one of the 
only ones that replies to peoples questions and tries to help.  Guess what?  NO 
ONE bitches at me (or anyone) for how we reply because they APPRECIATE the 
HELP

WTF PEOPLE!!!  Get over yourselves!  If you don't like how I (or anyone) 
formats their post / reply - build yourself a nice little filter so you don't 
have to see such grievous errors that cause you SO much pain and discomfort!

I have ZERO control over what my corporate MTA's add to my message.  Deal with 
it.

And next time you want to bitch at someone, perhaps you could take the time to 
spell their name correctly?  Hello?  Pot, this is Kettle...

I appreciate your kindly worded request, and I will CONSIDER making an effort 
to address your concerns in the future.

G











"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


___
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"


<    4   5   6   7   8   9   10   11   12   13   >