Re: Errors building vortex port

2013-05-21 Thread Anton Yuzhaninov
On Thu, 16 May 2013 18:30:05, C. L. Martinez wrote:
CLM ===  Building for vortex-2.9.0.59
CLM cd /wrkdirs/usr/ports/net/vortex/work/vortex-2.9.0  cc -c vortex.c
CLM -I/usr/local/include
CLM cd /wrkdirs/usr/ports/net/vortex/work/vortex-2.9.0  cc -o vortex
CLM vortex.o -L/usr/local/lib /usr/local/lib/libnids.a
CLM `/usr/local/bin/libnet11-config --libs` -lgthread-2.0 -lpcap
CLM /usr/local/lib/libnids.a(killtcp.o): In function `raw_init':
CLM killtcp.c:(.text+0xa): undefined reference to `libnet_open_raw_sock'
CLM /usr/local/lib/libnids.a(killtcp.o): In function `nids_killtcp_seq':
CLM killtcp.c:(.text+0xc7): undefined reference to `libnet_build_ip'
CLM killtcp.c:(.text+0x14d): undefined reference to `libnet_write_ip'
CLM killtcp.c:(.text+0x18f): undefined reference to `libnet_build_ip'
CLM killtcp.c:(.text+0x20f): undefined reference to `libnet_write_ip'

May be libnids broken with libnet 1.1. Try to libnet 1.0

___
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: IPMI SOL setup on FreeBSD 9.1 amd64 supermicro X9SCM-F/X9CL-F

2013-01-23 Thread Anton Yuzhaninov
On Mon, 21 Jan 2013 22:52:17, Derek Ragona wrote:
DR I have a couple servers that are built using the supermicro X9SCM-F/X9CL-F 
DR motherboards, and I can't quite get IPMI SOL working right.
DR 
DR These motherboards have 3 NIC's.  One NIC is for a dedicated IPMI interface.
DR 
DR I have both servers configured to use the dedicated IPMI NIC and these 
DR NIC's are plugged into a separate unmanaged switch.
DR 
DR Both systems boards are set to redirect com1.  I changed /etc/ttys to run a 
DR getty on /dev/ttyu0.  I have com1 configured to 115,200 baud, 8, n, 1, no 
DR flowcontrol in the BIOS.  I in have /etc/ttys:
DR ttyu0   /usr/libexec/getty std.115200 vt100   on secure

/etc/ttys:
ttyu1   /usr/libexec/getty std.115200 vt100   on  secure

/boot/loader.conf:
hint.uart.0.flags=0
hint.uart.1.flags=0x10
boot_serial=YES
boot_multicons=YES
comconsole_speed=115200
console=comconsole vidconsole

-- 
 Anton Yuzhaninov

___
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: high performance open source DHCP solution?

2011-07-20 Thread Anton Yuzhaninov
On Tue, 19 Jul 2011 23:26:55 -0300, Rogelio wrote:
R The free DHCP solution, ISC, seems to be having scaling issues (i.e.
R handling only about 200 DHCPDISCOVER and 20 DHCPRENEW requests), and I
R was wondering if anyone had any open source suggestions of solutions
R that could scale much better?

1. May be it is possible to decrease load of DHCP server by increasing
lease time.
If address pool is the limit, adaptive-lease-time-threshold option in ISC dhcpd 
may be
useful.

2. Which dhcpd version is used? According to changelog 4.2 has some
performance improvements.

-- 
 Anton Yuzhaninov

___
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 enable NCQ on Intel ESB2 AHCI SATA?controller/ST31000340NS

2011-03-24 Thread Anton Yuzhaninov
On Wed, 23 Mar 2011 16:37:11 -0500, Dan Nelson wrote:
DN If you do a verbose boot, you should get a couple more lines printed:
DN 
DN ahci0: Caps: 64bit NCQ SNTF AL CLO 3Gbps PM PMD SSC PSC 32cmd CCC EM 6ports
DN ahci0: Caps2:
DN ahci0: EM Caps: ALHD XMT SMB LED
DN 
DN If you see NCQ in your Caps line, then queueing should be supported by the
DN controller.  Looking at the ahci.c source, there is a quirk AHCI_Q_NONCQ
DN that disables NCQ, but it it only used for VIA VT8251 chips.

It seems to be NCQ not supported by this controller:
ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported
ahci0: Caps: 64bit ALP AL 3Gbps PM SSC PSC 32cmd 6ports
ahci0: Caps2:

-- 
WBR,
 Anton Yuzhaninov

___
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 enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS

2011-03-22 Thread Anton Yuzhaninov
How to enable NCQ on this controller:
ahci0@pci0:0:31:2:  class=0x010601 card=0x808015d9 chip=0x26818086
rev=0x09 hdr=0x00
vendor = 'Intel Corporation'
device = 'LSI LOGIC, 62089A2, LSISAS1068 B0, T 0620, WE 119200.1
(62089A2)'
class  = mass storage
subclass   = SATA
bar   [10] = type I/O Port, range 32, base 0x18a0, size  8, enabled
bar   [14] = type I/O Port, range 32, base 0x1874, size  4, enabled
bar   [18] = type I/O Port, range 32, base 0x1878, size  8, enabled
bar   [1c] = type I/O Port, range 32, base 0x1870, size  4, enabled
bar   [20] = type I/O Port, range 32, base 0x1880, size 32, enabled
bar   [24] = type Memory, range 32, base 0xd8700400, size 1024,
enabled
cap 01[70] = powerspec 2  supports D0 D3  current D0
cap 12[a8] = SATA Index-Data Pair

dmesg:
ahci0: Intel ESB2 AHCI SATA controller port
0x18a0-0x18a7,0x1874-0x1877,0x1878-0x187f,0x1870-0x1873,0x1880-0x189f
mem 0xd8700400-0xd87007ff irq 19 at device 31.2 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported
...
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: ST31000340NS SN05 ATA-8acd0: DVDROM DVD-ROM UJDA780/1.50 at
ata0-slave UDMA33
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: ST31000340NS SN05 ATA-8 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)


There is no lines Command Queueing enabled

# camcontrol tags ada0
(pass0:ahcich0:0:0:0): device openings: 2
camcontrol identify ada0
pass0: ST31000340NS SN05 ATA-8 SATA 2.x device
pass0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)

protocol  ATA/ATAPI-8 SATA 2.x
device model  ST31000340NS
firmware revision SN05
serial number 9QJ1L67B
WWN   5000c500d902ea3
cylinders 16383
heads 16
sectors/track 63
sector size   logical 512, physical 512, offset 0
LBA supported 268435455 sectors
LBA48 supported   1953525168 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM 7200

Feature  Support  Enabled   Value   Vendor
read ahead yes  yes
write cacheyes  yes
flush cacheyes  yes
overlapno
Tagged Command Queuing (TCQ)   no   no
Native Command Queuing (NCQ)   yes  32 tags


# uname -srp
FreeBSD 8.2-STABLE-20110315 amd64

-- 
WBR,
 Anton Yuzhaninov

___
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: PHP Command Line

2010-11-30 Thread Anton Yuzhaninov
On Mon, 29 Nov 2010 23:01:28 -0800, David Allen wrote:
DA I'm new to PHP, and I'm trying to make use of the interactive commandline,
DA but I'm finding 'php -a' isn't working.  More specifically, no 'php'
DA prompt, no output, nada.

If you need prompt, try to install realine extension from
/usr/ports/lang/php52-extensions
(if php52 is used).

-- 
WBR,
 Anton Yuzhaninov

___
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: what does kernel option UWX_TRACE_ENABLE do?

2010-05-06 Thread Anton Yuzhaninov
On Thu, 6 May 2010 10:51:59 +0100, Anton Shterenlikht wrote:
AS What does kernel option UWX_TRACE_ENABLE do?
AS 
AS I did a quick search on the net, but no help.
AS 

from sys/ia64/conf/NOTES

# Build the unwinder with tracing support. This option is used to debug the
# unwinder itself and the glue around it.

-- 
WBR,
 Anton Yuzhaninov

___
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: Strange diskspace loss

2010-05-04 Thread Anton Yuzhaninov
On Tue, 4 May 2010 09:51:46 +0400, áÎÔÏÎ ëÌÅÓÓ wrote:
áë I'm running 7.2-RELEASE amd64. Uptime 24 days.
áë I was told that server stoped to send emails and started to look at. There
áë are strange things:
áë 
áë # df -h
áë FilesystemSizeUsed   Avail Capacity  Mounted on
áë /dev/aacdu0s1a7.7G582M6.6G 8%/
áë devfs 1.0K1.0K  0B   100%/dev
áë /dev/aacdu0s1d 31G276M 28G 1%/tmp
áë /dev/aacdu0s1f350G125G197G39%/usr
áë /dev/aacdu0s1e 31G 29G-25M   100%/var
áë /dev/aacdu1s1d450G3.0G411G 1%/var/db/mysql
áë fdescfs   1.0K1.0K  0B   100%/dev/fd
áë 
áë /var is out of space. Hmm.
áë 
áë # du -sh /var
áë 3,3G/var

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DU-VS-DF

-- 
WBR,
 Anton Yuzhaninov

___
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: Strange diskspace loss

2010-05-04 Thread Anton Yuzhaninov
On Tue, 4 May 2010 10:04:30 +0400, áÎÔÏÎ ëÌÅÓÓ wrote:
áë And the fsck:
áë 
áë # fsck
áë ** /dev/aacdu0s1a (NO
áë WRITE)

Don't run fsck on mounted and used fs
It will show wrong info.

If you want to force fsck run reboot in single mode, and then run fsck.

-- 
WBR,
 Anton Yuzhaninov

___
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: perl links

2010-04-10 Thread Anton Yuzhaninov
On Sat, 10 Apr 2010 07:14:48 +0800, Aiza wrote:
A When installing perl i see 2 links between /usr/local/bin and /usr/bin. 
A Is this still required or is it something left over from when perl was 
A part of the base system?
A 
A symlinking /usr/local/bin/perl5.8.9 and /usr/bin/perl
A symlinking /usr/local/bin/perl5.8.9 and /usr/bin/perl5

most perl scripts begins with

#!/usr/bin/perl

this is common convention (also outside *BSD world)

-- 
WBR,
 Anton Yuzhaninov

___
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: premature ENOMEM

2010-02-26 Thread Anton Yuzhaninov
On Thu, 25 Feb 2010 22:49:22 -0800, Brad Penoff wrote:
BP I have a 32-bit machine with 2 GB running FreeBSD 8.  I have a complex
BP application that starts getting ENOMEM once the resident memory is
BP about 200 MB.  I adjusted the appropriate /boot/loader.conf and
BP /etc/login.conf settings resulting in an increase in the limit
BP values to around 2 GB, but still the complex application gives me
BP ENOMEM at 200 MB.  Including swap space, I should be able to handle 3
BP GB in an application.  I need help understanding how I can enable this
BP or why I cannot.

Don't forget that increase of kern.maxdsiz will decrease space for mmap.

And by default malloc in FreeBSD 8 uses mmap.

Try to set kern.maxdsiz to small value (may be 0 will be ok).

http://docs.freebsd.org/cgi/mid.cgi?200207291839.g6TIduVw055637

-- 
WBR,
 Anton Yuzhaninov

___
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: bsnmpd vs net-snmp

2009-04-27 Thread Anton Yuzhaninov
On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote:
MK I'm setting up a firewall and would like to monitor certain system
MK parameters like network, cpu, and memory usage. SNMP is an obvious
MK choice to do the monitoring and I'm planning to set up rrdtool to
MK generate graphs of captured data. The question is what SNMP agent to
MK use. I found net-snmp and bsnmpd (which is included in the base
MK system). Has anyone here used both implementations, and if so, what
MK are the basic differences?

main difference is the set of supported MIBs.

In general net-snmp supports more MIBs than bsnmpd.

E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring pf(4),
UCD-SNMP-MIB supported only by net-snmp and useful for monitoring CPU load
(ssCpuRaw* counters).

-- 
 Anton Yuzhaninov

___
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: netstat doesn't work

2009-04-27 Thread Anton Yuzhaninov
On Tue, 28 Apr 2009 01:24:58 +0800, Dsewnr Lu wrote:
DL I've used FreeBSD 8.0-CURRENT for a month.
DL My kernel is: ( FreeBSD localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #6: 
DL Mon Apr 13 23:56:04 CST 2009 
DL r...@localhost:/usr/obj/usr/src/sys/FB8  i386 )
DL Most things work fine, but the netstat command shows nothing for me.
DL Could someone help me ?

Probably you rebuild only kernel or only world. Try to rebuild both: kernel and
world from same source.

-- 
 Anton Yuzhaninov

___
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 which FIB has a given process

2009-04-16 Thread Anton Yuzhaninov
On Wed, 15 Apr 2009 20:04:38 +0300, KES wrote:
K Hi, Freebsd-questions.
K 
K I can set process to have some FIB
K setfib X /some/programm
K 
K How to check which FIB has some process?
K 

It is not easy, but possible via kgdb.

under root run:

cd /usr/obj/usr/src/sys/GENERIC
(if you use custom kernel replace GENERIC by kernel name)
make gdbinit
kgdb kernel.debug /dev/mem
(kgdb) ps

find interesting process, than copy proc address (2-nd column)

(kgdb) set $pp = (struct proc*) 0xff000fff3000

And see FIB for this process:

(kgdb) p $pp.p_fibnum
$1 = 0x0

-- 
 Anton Yuzhaninov

P. S. For amd64 you will need this patch:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/133775

___
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: memtest question on 8 GB RAM AMD64 system

2009-04-10 Thread Anton Yuzhaninov
On Thu, 9 Apr 2009 11:43:08 -0700 (PDT), Dino Vliet wrote:
DV I have just installed 4 x 2gb kingston memory banks (Kingston HyperX 4GB 
800mhz DDR2 Non-ECC CL5 (5-5-5-15) DIMM) onto my AMD 64 system with a X2 5200 
CPU. The motherboard I have in this system is MSI K9AG Neo2-Digital.
DV 
DV The system boots fine and I wanted to try memtest to see if there would be 
errors. So I installed that /usr/ports/sysutils/memtest port and did 

For memory test it is better to use this:
http://www.memtest86.com/
or this
http://www.memtest.org/
tool

-- 
 Anton Yuzhaninov

___
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: bsnmpd

2009-04-06 Thread Anton Yuzhaninov
On Mon, 6 Apr 2009 14:19:27 -0400, alexus wrote:
a I have bsnmpd enabled in rc.conf
a 
a 
a r...@lama ~ 501$ grep ^b /etc/rc.conf
a bsnmpd_enable=YES
a r...@lama ~ 502$
a 
a yet, whenever I restart my computer, it won't start on boot, but if I
a run manual command
a 
a /etc/rc.d/bsnmpd start
a 
a it starts fine no problem
a 

May be you have some broken script in /usr/local/etc/rc.d/

Try to add
rc_debug=YES to /etc/rc.conf

reboot, and see in logs which script was started

-- 
 Anton Yuzhaninov

___
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 remove all files with a certain extension

2009-04-06 Thread Anton Yuzhaninov
On Mon, 6 Apr 2009 16:57:39 -0400, John Almberg wrote:
JA This is a real newbie question, but I can't figure it out...
JA 
JA I want to remove all .tar files from a directory tree. I think  
JA something like the following should work, but I must have something  
JA wrong, because it doesn't:
JA 
JA find . -name *.tar -exec rm /dev/null {} \;

find . -type f -name '*.tar' -delete

-- 
 Anton Yuzhaninov

___
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: gmirror 6.2 - 7.1

2009-04-01 Thread Anton Yuzhaninov
On Wed, 1 Apr 2009 10:11:56 +0200, Iv Ray wrote:
IR Do you think the following way to upgrade gmirror 6.2 - 7.1 is safe  
IR for the average person?
IR 
IR (The server is in a remote data center without physical console access.)

gmirror created on freebsd 6 works fine on freebsd 7

1. Backup (it may be useful even without any upgrade).
2. Upgrade as usually.

-- 
 Anton Yuzhaninov

___
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: Sysinstall with install.cfg

2009-04-01 Thread Anton Yuzhaninov
On Wed, 1 Apr 2009 23:25:16 +0200, Andreas Nilsson wrote:
AN 
AN # Now set the parameters for the partition editor on da0.
AN disk=da0
AN partition=all
AN bootManager=none

try
bootManager=standard

AN diskPartitionEditor
AN diskPartitionWrite

try to remove diskPartitionWrite

-- 
 Anton Yuzhaninov

___
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: Where is the Perl XML::Parser port

2009-03-29 Thread Anton Yuzhaninov
On Sun, 29 Mar 2009 22:07:42 +, af300...@gmail.com wrote:
awgc So, I've done some searches at freshports.org and I cannot find the  
awgc XML::Parser perl module anywhere in the ports tree. What is it under?

/usr/ports/textproc/p5-XML-Parser/

-- 
 Anton Yuzhaninov

___
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: utility that scans lan for client?

2009-03-23 Thread Anton Yuzhaninov
On Mon, 23 Mar 2009 14:59:36 -0400, John Almberg wrote:
JA I've tried googling for this, but I guess I don't know the name of a  
JA utility such as this...
JA 
JA What I'm looking for is a utility that can scan a LAN for attached  
JA clients... i.e., computers that are attached to the LAN.

ports/net/arping mat be useful for this

-- 
 Anton Yuzhaninov

___
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