Re: FreeBSD 11.0: Installation of icingaweb2

2017-02-07 Thread Kevin Oberman
On Tue, Feb 7, 2017 at 5:02 PM, Kevin Oberman  wrote:

> On Tue, Feb 7, 2017 at 10:41 AM, Lars Engels  wrote:
>
>> On Mon, Feb 06, 2017 at 05:48:23PM +0100, Thorsten Baumeister wrote:
>> > Hi folks,
>> > last weekend I tried to install the port icingaweb2 on a patched
>> > FreeBSD 11.0 server. 'make' worked fine, but 'make install' failed.
>> > Has anyone seen / resolved this problem?
>> >
>> > ===>  Checking if icingaweb2 already installed
>> > ===>   Registering installation for icingaweb2-2.4.1
>> > pkg-static: Unable to access file /usr/ports/net-mgmt/icingaweb2
>> /work/stage/usr/local/share/examples/icingaweb2/apache/icingaweb2.conf:
>> No such file or directory
>> > pkg-static: Unable to access file /usr/ports/net-mgmt/icingaweb2
>> /work/stage/usr/local/share/examples/icingaweb2/nginx/icingaweb2.conf:
>> No such file or directory
>> > *** Error code 74
>> >
>> > Stop.
>> > make[1]: stopped in /usr/ports/net-mgmt/icingaweb2
>> > *** Error code 1
>> >
>> > Stop.
>> > make: stopped in /usr/ports/net-mgmt/icingaweb2
>> >
>> Hi Thorsten,
>>
>> I am the maintainer of the icingaweb2 port.
>> Unfortunately, I cannot reproduce this. The poudriere run doesn't show
>> this behaviour.
>>
>> Do you have any local modifications?
>>
>>
>> Lars
>>
>
> Lars,
>
> The pkg-plist certainly contains 
> "%%PORTEXAMPLESEXAMPLESDIR%%/nginx/icingaweb2.conf"
> but I don't find that file (or any reference to nginx) in either the
> distribution or in github. Unless some part of the build generates this
> file (which is possible, I guess), I can't figure out where it comes from.
> Only the apache example config is found.
>
> I'm not willing to install php56 right now. It will be a while before my
> chromium rebuild is done.So I can't do any real testing on it ATM. Maybe
> tonight or tomorrow. Then i can look through the logs and find out exactly
> where this file does (or does not) come from and whether the package
> installs OK for me. M.B. I don't use nginx PHP, though, so I won't be
> testing it, just building..
> --
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkober...@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
>

I did install the port and found that themising file SHOUL be te very last
things the stage operation does.
"(cd /usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2 &&
./bin/icingacli setup config webserver nginx --path=/icingaweb2
--root=/usr/local/www/icingaweb2/public --config=/usr/local/etc/icingaweb2
--file=/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/nginx/icinga\
web2.conf)

So it is generated and for some reason it was not. I have not had time to
look at the internal make scripts to see if there are options that might
cause the file not to be generated.

Thorsten, can you provide the final lines of the "stage"operation when you
build? The lines of interest are the four lines before "===>  Checking if
icingaweb2 already installed"? This is where the file should be generated.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkober...@gmail.com
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: FreeBSD 11.0: Installation of icingaweb2

2017-02-07 Thread Kevin Oberman
On Tue, Feb 7, 2017 at 10:41 AM, Lars Engels  wrote:

> On Mon, Feb 06, 2017 at 05:48:23PM +0100, Thorsten Baumeister wrote:
> > Hi folks,
> > last weekend I tried to install the port icingaweb2 on a patched
> > FreeBSD 11.0 server. 'make' worked fine, but 'make install' failed.
> > Has anyone seen / resolved this problem?
> >
> > ===>  Checking if icingaweb2 already installed
> > ===>   Registering installation for icingaweb2-2.4.1
> > pkg-static: Unable to access file /usr/ports/net-mgmt/
> icingaweb2/work/stage/usr/local/share/examples/
> icingaweb2/apache/icingaweb2.conf: No such file or directory
> > pkg-static: Unable to access file /usr/ports/net-mgmt/
> icingaweb2/work/stage/usr/local/share/examples/
> icingaweb2/nginx/icingaweb2.conf: No such file or directory
> > *** Error code 74
> >
> > Stop.
> > make[1]: stopped in /usr/ports/net-mgmt/icingaweb2
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/net-mgmt/icingaweb2
> >
> Hi Thorsten,
>
> I am the maintainer of the icingaweb2 port.
> Unfortunately, I cannot reproduce this. The poudriere run doesn't show
> this behaviour.
>
> Do you have any local modifications?
>
>
> Lars
>

Lars,

The pkg-plist certainly contains
"%%PORTEXAMPLESEXAMPLESDIR%%/nginx/icingaweb2.conf" but I don't find
that file (or any reference to nginx) in either the distribution or in
github. Unless some part of the build generates this file (which is
possible, I guess), I can't figure out where it comes from. Only the apache
example config is found.

I'm not willing to install php56 right now. It will be a while before my
chromium rebuild is done.So I can't do any real testing on it ATM. Maybe
tonight or tomorrow. Then i can look through the logs and find out exactly
where this file does (or does not) come from and whether the package
installs OK for me. M.B. I don't use nginx PHP, though, so I won't be
testing it, just building..
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkober...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


FBSD 10.3 + ZFS + Sun x4500 = utter lock up.

2017-02-07 Thread Lee Damon
FreeBSD [redacted] 10.3-STABLE FreeBSD 10.3-STABLE #2 r313008: Tue Jan
31 01:50:49 PST 2017 lvd@[redacted]:/usr/obj/usr/src/sys/GENERIC  amd64

I'm trying to get FBSD 10.3 working on a Sun x4500 (don't ask) for use
as a ZFS-based backup server. However, whenever any amount of data is
put into a zpool and then zpool scrub is run the host locks up hard. On
reboot it complains that a "Hyper transport sync flood occurred".

I found
https://lists.freebsd.org/pipermail/freebsd-stable/2012-January/065542.html
which seems to match but when I try the cpuset command mentioned there I
get an error:

; sudo cpuset -c -l 0 -x 58
cpuset: setaffinity: Invalid argument

Looks like the -c was invalid. After removing that I was informed -x 58
wasn't valid. Sure enough, there's no mpt0 or IRQ 58 on the host:

; vmstat -i
interrupt  total   rate
irq17: ohci28578  2
irq18: ohci3 473  0
irq19: ohci0 ohci1+ 4924  1
irq24: mvs0  457  0
irq32: mvs1  453  0
irq38: mvs2  451  0
irq46: mvs3 8063  1
irq52: em0152354 35
irq53: em1   140  0
irq68: mvs4  450  0
irq76: mvs5  454  0
cpu0:timer208311 48
cpu1:timer 98318 23
cpu2:timer105704 24
cpu3:timer106202 24
Total 695332162

Looking around with some help from #freebsd on efnet I found mvs0-5
which are connected to the Marvel drive controllers on the host. I then
used
  ; sudo cpuset -l 0 -x ##
where I replaced ## with 24, 32, 38, 46, 68, and 76.

After rebuilding the zpool I started writing to it. It took a lot less
time to crash - I didn't even need to run zpool scrub - but instead of
completely locking up it just rebooted. I did not see reference to the
hyper transport problem while watching it boot but given the poor
performance of the serial console I can't be 100% sure it wasn't there.

So now I turn here to ask for guidance. Is anyone currently successfully
running 10.x on a x4500 and if so, how are you doing it? If not, how can
I get this working?

thanks,
nomad
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: FreeBSD 11.0: Installation of icingaweb2

2017-02-07 Thread Lars Engels
On Mon, Feb 06, 2017 at 05:48:23PM +0100, Thorsten Baumeister wrote:
> Hi folks, 
> last weekend I tried to install the port icingaweb2 on a patched
> FreeBSD 11.0 server. 'make' worked fine, but 'make install' failed.
> Has anyone seen / resolved this problem? 
> 
> ===>  Checking if icingaweb2 already installed
> ===>   Registering installation for icingaweb2-2.4.1
> pkg-static: Unable to access file 
> /usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/apache/icingaweb2.conf:
>  No such file or directory
> pkg-static: Unable to access file 
> /usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/nginx/icingaweb2.conf:
>  No such file or directory
> *** Error code 74
> 
> Stop.
> make[1]: stopped in /usr/ports/net-mgmt/icingaweb2
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/net-mgmt/icingaweb2
> 
Hi Thorsten,

I am the maintainer of the icingaweb2 port.
Unfortunately, I cannot reproduce this. The poudriere run doesn't show
this behaviour.

Do you have any local modifications?


Lars


pgp9me9BiTtVV.pgp
Description: PGP signature


Re: Question about pmcstat

2017-02-07 Thread rainer

Am 2017-02-07 18:08, schrieb hiren panchasara:



Not sure if it's the mailer or what but it should be '-S' and not '?S'.


Yes, it's the mailer.

Or the cut and paste.

However, I now realize what the problem is:

(freebsd11 ) 64 # pmccontrol -L
SOFT
CLOCK.PROF
CLOCK.HARD
CLOCK.STAT
LOCK.FAILED
PAGE_FAULT.ALL
PAGE_FAULT.READ
PAGE_FAULT.WRITE


This is a XenServer DomU.

It seems, it doesn't really have virtualized performance counters.

On a "real" server, I get lots.


Thanks for your quick tip!



Best Regards
Rainer
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Question about pmcstat

2017-02-07 Thread hiren panchasara
On 02/07/17 at 05:55P, rai...@ultra-secure.de wrote:
> Hi,
> 
> in Brendan Gregg's tutorial:
> 
> http://www.brendangregg.com/blog/2015-03-10/freebsd-flame-graphs.html
> 
> it says to run
> 
> pmcstat ?S RESOURCE_STALLS.ANY -O out.pmcstat sleep 10

Not sure if it's the mailer or what but it should be '-S' and not '?S'.
> 
> However, I get
> 
> freebsd11 ) 0 # pmcstat ?S RESOURCE_STALLS.ANY -O out.pmcstat 
> sleep 10
> pmcstat: [options] [commandline]
>   Measure process and/or system performance using hardware
>   performance monitoring counters.
>   Options include:
>   -C  (toggle) show cumulative counts
>   -D path create profiles in directory "path"
>   -E  (toggle) show counts at process exit
>   -F file write a system-wide callgraph (Kcachegrind 
> format) to "file"
>   -G file write a system-wide callgraph to "file"
>   -M file print executable/gmon file map to "file"
>   -N  (toggle) capture callchains
>   -O file send log output to "file"
>   -P spec allocate a process-private sampling PMC
>   -R file read events from "file"
>   -S spec allocate a system-wide sampling PMC
>   -T  start in top mode
>   -W  (toggle) show counts per context switch
>   -a file print sampled PCs and callgraph to "file"
>   -c cpu-list set cpus for subsequent system-wide PMCs
>   -d  (toggle) track descendants
>   -e  use wide history counter for gprof(1) output
>   -f spec pass "spec" to as plugin option
>   -g  produce gprof(1) compatible profiles
>   -k dir  set the path to the kernel
>   -l secs set duration time
>   -m file print sampled PCs to "file"
>   -n rate set sampling rate
>   -o file send print output to "file"
>   -p spec allocate a process-private counting PMC
>   -q  suppress verbosity
>   -r fsroot   specify FS root directory
>   -s spec allocate a system-wide counting PMC
>   -t process-spec attach to running processes matching 
> "process-spec"
>   -v  increase verbosity
>   -w secs set printing time interval
>   -z depthlimit callchain display depth
> 
> 
> I assume, the event specifier is not correct. Is there a list of the 
> valid ones in FreeBSD 11?

You can see available event-spacs via 'pmccontrol -L'.

Cheers,
Hiren


pgpBpyfDeXAaD.pgp
Description: PGP signature


Question about pmcstat

2017-02-07 Thread rainer

Hi,

in Brendan Gregg's tutorial:

http://www.brendangregg.com/blog/2015-03-10/freebsd-flame-graphs.html

it says to run

pmcstat –S RESOURCE_STALLS.ANY -O out.pmcstat sleep 10

However, I get

freebsd11 ) 0 # pmcstat –S RESOURCE_STALLS.ANY -O out.pmcstat 
sleep 10

pmcstat: [options] [commandline]
 Measure process and/or system performance using hardware
 performance monitoring counters.
 Options include:
 -C  (toggle) show cumulative counts
 -D path create profiles in directory "path"
 -E  (toggle) show counts at process exit
 -F file write a system-wide callgraph (Kcachegrind 
format) to "file"

 -G file write a system-wide callgraph to "file"
 -M file print executable/gmon file map to "file"
 -N  (toggle) capture callchains
 -O file send log output to "file"
 -P spec allocate a process-private sampling PMC
 -R file read events from "file"
 -S spec allocate a system-wide sampling PMC
 -T  start in top mode
 -W  (toggle) show counts per context switch
 -a file print sampled PCs and callgraph to "file"
 -c cpu-list set cpus for subsequent system-wide PMCs
 -d  (toggle) track descendants
 -e  use wide history counter for gprof(1) output
 -f spec pass "spec" to as plugin option
 -g  produce gprof(1) compatible profiles
 -k dir  set the path to the kernel
 -l secs set duration time
 -m file print sampled PCs to "file"
 -n rate set sampling rate
 -o file send print output to "file"
 -p spec allocate a process-private counting PMC
 -q  suppress verbosity
 -r fsroot   specify FS root directory
 -s spec allocate a system-wide counting PMC
 -t process-spec attach to running processes matching 
"process-spec"

 -v  increase verbosity
 -w secs set printing time interval
 -z depthlimit callchain display depth


I assume, the event specifier is not correct. Is there a list of the 
valid ones in FreeBSD 11?



What am I missing?



Best Regards
Rainer
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Bogus pwstat instruction count in guest OS

2017-02-07 Thread Derrick McKee
Hi,

I am trying to count instructions executed for programs running in an 11.0
guest OS (Virtual Box is the hypervisor).  However, pwstat is reporting
obviously low numbers.  Firefox, for example, is reporting ~7000
instructions when executing the Kraken benchmark.  I've installed the
emulator/virtualbox-ose-additions package, as well as put
vboxguest_enable="YES" and vboxservice_enable="YES" in my /etc/rc.conf.
After executing kldload hwpmc, dmesg reports hwpc_core: unknown PMC
architecture: 0.  Any ideas as to what could be the problem?  Thanks.
-- 
Derrick McKee
Ph.D. Student at Purdue University
-- 
Derrick McKee
Ph.D. Student at Purdue University
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"