information about configurable load-time parameters

2013-06-11 Thread Meny Yossefi
Hi,

I'm using FreeBSD 9.1 and looking for a way to pass a module parameters on load 
time.
I came across the 'TUNABLE' macros which provided a decent solution.

The question that remains is how to notify the user about those configurable 
load-time parameters ?
I guess I'm looking for some kind of 'modinfo' which describes those parameters 
among other things.

Thanks,
Meny Yossefi | SW Engineer | FreeBSD team
Mellanox Technologies Ltd
Work: +972-74-7129121, Cell: +972-52-8379557

___
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 unload/load modules that complied inside the kernel?

2013-05-29 Thread Alex Liptsin
Hello.

I am using FreeBSD9.1

[root@h-qa-033 ~]# uname -a
FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 IDT 
2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  amd64

OFED and IB support are compiled in kernel.


1.  How can I unload/load modules that complied inside the kernel?


[root@h-qa-033 ~]# kldstat -v | grep mlx4 -B 5
Id Refs AddressSize Name
1   10 0x8020 13dcbf8  kernel (/boot/kernel/kernel)
Contains modules:
Id Name
420 mlxen
418 mlx4ib
419 mlx4

I want to unload/load mlx4ib.


2.  Is there any way to take it out of kernel and load manually?

Like if_lagg for example:

[root@h-qa-033 ~]# kldstat
Id Refs AddressSize Name
1   10 0x8020 13dcbf8  kernel
31 0x81812000 2197 if_mos.ko
41 0x81815000 690a if_lagg.ko

Thanks a lot.
Alex.

___
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 unload/load modules that complied inside the kernel?

2013-05-29 Thread Olivier Nicole
 [root@h-qa-033 ~]# uname -a
 FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 IDT 
 2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  amd64
 
 OFED and IB support are compiled in kernel.
 
 
 1.  How can I unload/load modules that complied inside the kernel?

kldload and kldunload should be what you are looking for.

Olivier 
___
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 unload/load modules that complied inside the kernel?

2013-05-29 Thread Julian H. Stacey
Hi, Reference:
 From: Olivier Nicole olivier.nic...@cs.ait.ac.th 
 Date: Wed, 29 May 2013 17:54:59 +0700 (ICT) 

Olivier Nicole wrote:
  [root@h-qa-033 ~]# uname -a
  FreeBSD h-qa-033 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue May 28 11:26:45 
  IDT 2013 root@h-qa-033:/usr/obj/lab/odeds/freebsd/9.1.0/sys/MYKERNEL  
  amd64
  
  OFED and IB support are compiled in kernel.
  
  
  1.  How can I unload/load modules that complied inside the kernel?
 
 kldload and kldunload should be what you are looking for.

[Unless things have got more flexible] I dont believe you can
unload/load modules that complied inside the kernel.  I think you
need to compile a new kernel without the modules you want to toggle
on  off, Then you can use kldload and kldunload.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with  .
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
___
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


Subversion load problem- svnadmin: Dump stream contains a malformed header (with no ':')

2013-05-20 Thread h bagade
Hi all,

I have problem loading a partial dump of one repository into a new
repository. When I try to load a partial dump of the old repository, which
paths also corrected, I've got the Checksum mismatch error for a file.
When I try to replace the Text-content-md5 field of the file on the dump
with the correct one using sed command, another error regarding malformed
header is occurred(svnadmin: Dump stream contains a malformed header (with
no ':'))!
I don't know how to fix this problem and I really need this migration to be
done. I've searched a lot but couldn't find any solution.

Any suggestions or 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


Re: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-16 Thread J David
loader.conf was empty and there's no 4k gnops, geli, anything like that.
 This is a 100% normal install.

Although, since you mentioned 4k blocks, I did leave a gap between ada0p1
and ada0p2 to start the root partition on a 4k boundary.  (It's an SSD that
will almost never be written to once installed, so that might be a bit
silly, but it's a habit already.)

I decided to try this again without the gap, and that seems to have worked.
 I made it through install and partitioning and OS updating to 9-STABLE and
installing new boot blocks and it seems to have worked.  I even got it to
work with a ZFS root.

Here's the partition table I ended up with:

=   34  234441581  ada0  GPT  (111G)
 34990 1  freebsd-boot  (495k)
   1024  226051072 2  freebsd-zfs  (107G)
  2260520968389519 3  freebsd-swap  (4.0G)

I'm not sure why this would make a difference, but either it does or doing
it cleared out whatever else was wrong.  This box will be stress tested and
rebooted quite a bit in the next few days, so I will report back if it
comes unglued. :)

Thanks for the suggestion!
___
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: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-16 Thread Joshua Isom

On 4/16/2013 1:36 AM, J David wrote:

loader.conf was empty and there's no 4k gnops, geli, anything like that.
  This is a 100% normal install.

Although, since you mentioned 4k blocks, I did leave a gap between
ada0p1 and ada0p2 to start the root partition on a 4k boundary.  (It's
an SSD that will almost never be written to once installed, so that
might be a bit silly, but it's a habit already.)

I decided to try this again without the gap, and that seems to have
worked.  I made it through install and partitioning and OS updating to
9-STABLE and installing new boot blocks and it seems to have worked.  I
even got it to work with a ZFS root.

Here's the partition table I ended up with:

=   34  234441581  ada0  GPT  (111G)
  34990 1  freebsd-boot  (495k)
1024  226051072 2  freebsd-zfs  (107G)
   2260520968389519 3  freebsd-swap  (4.0G)

I'm not sure why this would make a difference, but either it does or
doing it cleared out whatever else was wrong.  This box will be stress
tested and rebooted quite a bit in the next few days, so I will report
back if it comes unglued. :)

Thanks for the suggestion!



I'd say file a bug report, since subtly hidden parts of the disk can be 
beneficial in the right circumstances.  That, and it should just work.


Does your drive report the blocks as 512 bytes or 4k?  If you're using 
zfs now, run `zdb | grep ashift` and it should list 12 if it's 4k. 
Otherwise, you can get a performance hit if the drive's 4k native.  Two 
of my drives are 4k native but report as 512b, so I had to trick zfs 
with gnop.

___
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


9-STABLE doesn't boot: can't load 'kernel'

2013-04-15 Thread J David
After installing 9.1-RELEASE amd64 on a system, it boots up fine.  If I
then build and install a new 9-STABLE kernel  world, reboots die in the
loader with:

can't load 'kernel'

This is a pretty straightforward system, one drive, not large (128GB SSD).
 GPT partitioned, gptboot boot code.  One UFS root partition to boot from,
a swap partition and, the rest for ZFS.

(At first I tried to do this system with root-on-ZFS but that also failed,
adding unable to load zpool by guid or similar before the can't load
'kernel' message.)

Once this happens, the disk is unbootable.  I can start from the install CD
and access the disk just fine, but even if I move kernel.old back to
kernel, it doesn't boot anymore.  Likewise, it doesn't matter if I
overwrite the boot code with gptboot  pmbr from the install CD or the new
ones from /boot after installworld.

The disk looks like:

# gpart show
= 34 234441581 ada0 GPT (111G)
34 222 1 freebsd-boot (111k)
256 1792 - free - (896k)
2048 8388608 2 freebsd-ufs (4.0G)
8390656 8388608 3 freebsd-swap (4.0G)
16779264 217662351 4 freebsd-zfs (103G)

In the loader:
BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS 621kB/2067924kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(root@builder, Mon Apr 15 09:14:38 UTC 2013)

can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK show
[…]
currdev=disk0p2:
[…]
loaddev=disk0p2:
[…]
OK lsdev
cd devices:
disk devices:
   disk0: BIOS drive C:
pxe devices:
OK ls
open '/' failed: no such file or directory
OK help
Verbose help not available, use '?' to list commands

So it's getting the boot device right (disk0p2 / ada0p2), but can't see it
at all.

Does anyone know what might be wrong?

Thanks for any advice!
___
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: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-15 Thread Joshua Isom
I can't recall, does the cd come with the btx loader?  Is it able to see 
the hard drive partitions and boot that way?


Did you put anything in loader.conf?  I'm guessing that if you're 
getting to /boot/loader but not any further, it's something wrong with 
the conf file.  If you're booting UFS, you might be safe just 
deleting/renaming the file.


And just for sanity's sake, you didn't try anything special with geom 
did you, such as 4k blocks, geli, etc?


On 4/15/2013 1:03 PM, J David wrote:

After installing 9.1-RELEASE amd64 on a system, it boots up fine.  If I
then build and install a new 9-STABLE kernel  world, reboots die in the
loader with:

can't load 'kernel'

This is a pretty straightforward system, one drive, not large (128GB SSD).
  GPT partitioned, gptboot boot code.  One UFS root partition to boot from,
a swap partition and, the rest for ZFS.

(At first I tried to do this system with root-on-ZFS but that also failed,
adding unable to load zpool by guid or similar before the can't load
'kernel' message.)

Once this happens, the disk is unbootable.  I can start from the install CD
and access the disk just fine, but even if I move kernel.old back to
kernel, it doesn't boot anymore.  Likewise, it doesn't matter if I
overwrite the boot code with gptboot  pmbr from the install CD or the new
ones from /boot after installworld.

The disk looks like:

# gpart show
= 34 234441581 ada0 GPT (111G)
34 222 1 freebsd-boot (111k)
256 1792 - free - (896k)
2048 8388608 2 freebsd-ufs (4.0G)
8390656 8388608 3 freebsd-swap (4.0G)
16779264 217662351 4 freebsd-zfs (103G)

In the loader:
BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS 621kB/2067924kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(root@builder, Mon Apr 15 09:14:38 UTC 2013)

can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK show
[…]
currdev=disk0p2:
[…]
loaddev=disk0p2:
[…]
OK lsdev
cd devices:
disk devices:
disk0: BIOS drive C:
pxe devices:
OK ls
open '/' failed: no such file or directory
OK help
Verbose help not available, use '?' to list commands

So it's getting the boot device right (disk0p2 / ada0p2), but can't see it
at all.

Does anyone know what might be wrong?

Thanks for any advice!
___
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


apache PHP suhosin load

2012-06-21 Thread n dhert
On FreeBSD 8.3 I have apache22 web server with PHP. PHP is PHP52 for
compatibility with existing applications, but the most recent version
in the php52 branch
$ php --version
PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May  7 2012 08:45:58)

From time to time, I notice in a top output, that a huge number of httpd
daemons are being started, making the load rapidly increase to levels of
5, 10, 15, ... and very slow interactive respons ...

Stopping apache makes the load rapidly decrease to a normal level.

I noticed at the console, at stopping apache, several messages such as

Jun 14 09:12:20 macos kernel: Jun 14 09:12:20 macos suhosin[28824]: ALERT -
canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR
not set', file
'/home/wins/win/win/www/wiki/mediawiki-1.16.0/includes/AutoLoader.php',
line 654)

(the file value differs, but it's always suhosin .. canany mismatch
- heap overflow detected)
My PHP has following options set
# cd /usr/ports/lang/php52

My PHP has following options set
# cd /usr/ports/lang/php52
# make showconfig
=== The following configuration options are available for php52-5.2.17_8:
 CLI=on: Build CLI version
 CGI=on: Build CGI version
 APACHE=on: Build Apache module
 DEBUG=off: Enable debug
 SUHOSIN=on: Enable Suhosin protection system (not for jails)
 MULTIBYTE=off: Enable zend multibyte support
 IPV6=on: Enable ipv6 support
 MAILHEAD=off: Enable mail header patch
 REDIRECT=off: Enable force-cgi-redirect support (CGI only)
 DISCARD=off: Enable discard-path support (CGI only)
 FASTCGI=on: Enable fastcgi support (CGI only)
 FPM=off: Enable fastcgi process manager (CGI only)
 PATHINFO=on: Enable path-info-check support (CGI only)
 LINKTHR=off: Link thread lib (for threaded extensions)

Is that heap overlow causing the trouble? Has suhosin to do something with
it?
How to solve?
___
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: apache PHP suhosin load

2012-06-21 Thread Damien Fleuriot

On 21 Jun 2012, at 08:34, n dhert ndhert...@gmail.com wrote:

 On FreeBSD 8.3 I have apache22 web server with PHP. PHP is PHP52 for
 compatibility with existing applications, but the most recent version
 in the php52 branch
 $ php --version
 PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May  7 2012 08:45:58)
 
 From time to time, I notice in a top output, that a huge number of httpd
 daemons are being started, making the load rapidly increase to levels of
 5, 10, 15, ... and very slow interactive respons ...
 
 Stopping apache makes the load rapidly decrease to a normal level.
 
 I noticed at the console, at stopping apache, several messages such as
 
 Jun 14 09:12:20 macos kernel: Jun 14 09:12:20 macos suhosin[28824]: ALERT -
 canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR
 not set', file
 '/home/wins/win/win/www/wiki/mediawiki-1.16.0/includes/AutoLoader.php',
 line 654)
 
 (the file value differs, but it's always suhosin .. canany mismatch
 - heap overflow detected)
 My PHP has following options set
 # cd /usr/ports/lang/php52
 
 My PHP has following options set
 # cd /usr/ports/lang/php52
 # make showconfig
 === The following configuration options are available for php52-5.2.17_8:
 CLI=on: Build CLI version
 CGI=on: Build CGI version
 APACHE=on: Build Apache module
 DEBUG=off: Enable debug
 SUHOSIN=on: Enable Suhosin protection system (not for jails)
 MULTIBYTE=off: Enable zend multibyte support
 IPV6=on: Enable ipv6 support
 MAILHEAD=off: Enable mail header patch
 REDIRECT=off: Enable force-cgi-redirect support (CGI only)
 DISCARD=off: Enable discard-path support (CGI only)
 FASTCGI=on: Enable fastcgi support (CGI only)
 FPM=off: Enable fastcgi process manager (CGI only)
 PATHINFO=on: Enable path-info-check support (CGI only)
 LINKTHR=off: Link thread lib (for threaded extensions)
 
 Is that heap overlow causing the trouble? Has suhosin to do something with
 it?
 How to solve?
 

For starters, I would suggest moving away from apace and towards nginx + 
fastcgi php.

A friend had a small dedicated server with a vbulletin forum overloaded with 
addons, and apache/php were bringing the server to high load levels, 10-20ish.

I've moved him to nginx and the server hardly ever goes above 1 now.

Additionally, nginx is immune to Slowloris attacks, while apache is not.



Only after migrating to nginx would I investigate of the suhosin problem still 
exists.___
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: apache PHP suhosin load

2012-06-21 Thread Michael Powell
n dhert wrote:

 On FreeBSD 8.3 I have apache22 web server with PHP. PHP is PHP52 for
 compatibility with existing applications, but the most recent version
 in the php52 branch
 $ php --version
 PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May  7 2012 08:45:58)
 
From time to time, I notice in a top output, that a huge number of httpd
 daemons are being started, making the load rapidly increase to levels of
 5, 10, 15, ... and very slow interactive respons ...
 
 Stopping apache makes the load rapidly decrease to a normal level.
 
 I noticed at the console, at stopping apache, several messages such as
 
 Jun 14 09:12:20 macos kernel: Jun 14 09:12:20 macos suhosin[28824]: ALERT
 - canary mismatch on efree() - heap overflow detected (attacker
 'REMOTE_ADDR not set', file
 '/home/wins/win/win/www/wiki/mediawiki-1.16.0/includes/AutoLoader.php',
 line 654)
 
 (the file value differs, but it's always suhosin .. canany mismatch
 - heap overflow detected)
 My PHP has following options set
 # cd /usr/ports/lang/php52
 
 My PHP has following options set
 # cd /usr/ports/lang/php52
 # make showconfig
 === The following configuration options are available for php52-5.2.17_8:
  CLI=on: Build CLI version
  CGI=on: Build CGI version
  APACHE=on: Build Apache module
  DEBUG=off: Enable debug
  SUHOSIN=on: Enable Suhosin protection system (not for jails)
  MULTIBYTE=off: Enable zend multibyte support
  IPV6=on: Enable ipv6 support
  MAILHEAD=off: Enable mail header patch
  REDIRECT=off: Enable force-cgi-redirect support (CGI only)
  DISCARD=off: Enable discard-path support (CGI only)
  FASTCGI=on: Enable fastcgi support (CGI only)
  FPM=off: Enable fastcgi process manager (CGI only)
  PATHINFO=on: Enable path-info-check support (CGI only)
  LINKTHR=off: Link thread lib (for threaded extensions)
 
 Is that heap overlow causing the trouble? Has suhosin to do something with
 it?

Most likely - yes. I noticed in your config above you built and installed the 
Apache PHP module in addition to CGI/FastCGI. If you are running Apache in a 
FastCGI mode you should check and make sure the following is indeed 
commented out like below:  

#LoadModule php5_modulelibexec/apache22/libphp5.so

The general purpose meaning of this error is that PHP has detected some form 
of memory corruption. But as to why/what exactly it doesn't help much.

The general way I used to look at Apache and PHP problems was to isolate 
pieces. Like only loading the core PHP and no extensions by renaming the 
extensions.ini to extensions.ini.bak. This is bound to cause problems as 
most PHP apps today require a certain basic number of modules enabled in 
order to work. 

2 things to troubleshoot looking for a bad module: comment each out one at a 
time and restart. When you comment out the bad one you will no longer see 
the error. Another second item to be aware of is sometimes certain module 
combinations need to be loaded in extensions.ini in a specific order. 
Figuring out this order can be nightmarish, should it ever actaully be found 
to be a problem. Long time ago someone wrote a script to automate this.

I seem to have a distant memory that back in early PHP 5.2.x days I had a 
problem with the mcrypt module. Maybe try commenting that one out first. If 
you don't need it leave it that way.  I also seem to have experienced this 
error a second time, and it was from a bad interaction between Suhosin patch 
and two other build options being enabled, one was the Mailhead and I don't 
remember what the other one was(maybe it was IPv6). I found when I disabled 
these 2 things I could build with the Suhosin patch and stuff ran correctly. 

-Mike




___
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


Gtk-Message: Failed to load module gnomesegvhandler after upgrade from 8.2 - 9.0

2012-04-05 Thread Scott Ballantyne
Hi,

I just upgraded from 8.2 - 9.0 using freebsd-update, my first time
for the binary upgrade.  Since the upgrade, I've been getting these
unable to load gnomesegvhandler messages from various software, such
as emacs. 

Any idea what I can do to fix his?

The upgrade went fairly smoothly, although freebsd-update deleted more
stuff than it should. I had to nuke my ports tree, and install
compat8x and all the ports from scratch.  I doubt this had anything to
do with my problem, just mentioning for the sake of completeness.

Thanks for any help,
Scott
-- 
s...@ssr.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[8]: high load system do not take all CPU time

2012-02-25 Thread Коньков Евгений
Здравствуйте, Robert.

Вы писали 26 декабря 2011 г., 23:54:59:


RB [drivelectomy -- 200+ lines]

RB You've been told the following, *repeatedly*:

RB Your hardware is not capable of keeping up with the level of network traffic
RB it is being subjected to.

RB Reaaltek cards and the 're' device driver are a *BAD*CHOICE* for systems 
with
RB heavy network traffic.  They're merely 'medium lousy' on a lightly-loaded
RB system, but you don't notice the problems under light loads.

RB You have two choices:
RB   1) live with the crappy performance
RB   2) get a better quality network card.

better card do not change situation http://youtu.be/f90nMtNdKB8

full video you can download
http://www.filehosting.org/file/details/316076/1.rar

igb3@pci0:1:0:3:class=0x02 card=0x00018086 chip=0x15218086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
class  = network
subclass   = ethernet

   12 root   -32- 0K   624K WAIT1   1:38  0.00% intr{swi4: cloc
0 root   -680 0K   384K -   3   1:08  0.00% kernel{dummynet
0 root   -160 0K   384K sched   2   0:44  0.00% kernel{swapper}
   12 root   -44- 0K   624K WAIT3   0:31  0.00% intr{swi1: neti
   12 root   -44- 0K   624K WAIT3   0:11  0.00% intr{swi1: neti
   12 root   -68- 0K   624K WAIT2   0:07  0.00% intr{irq263: ig
   12 root   -44- 0K   624K WAIT2   0:06  0.00% intr{swi1: neti
   13 root   -16- 0K64K sleep   1   0:06  0.00% ng_queue{ng_que
   13 root   -16- 0K64K sleep   1   0:06  0.00% ng_queue{ng_que
   13 root   -16- 0K64K sleep   1   0:06  0.00% ng_queue{ng_que
   13 root   -16- 0K64K sleep   1   0:06  0.00% ng_queue{ng_que
   12 root   -68- 0K   624K WAIT3   0:05  0.00% intr{irq276: re
   12 root   -44- 0K   624K WAIT3   0:04  0.00% intr{swi1: neti
   14 root   -16- 0K16K -   0   0:04  0.00% yarrow
   12 root   -68- 0K   624K WAIT1   0:01  0.00% intr{irq262: ig
   12 root   -68- 0K   624K WAIT1   0:01  0.00% intr{irq257: ig
   12 root   -68- 0K   624K WAIT0   0:01  0.00% intr{irq261: ig
   12 root   -68- 0K   624K WAIT2   0:01  0.00% intr{irq258: ig
   12 root   -68- 0K   624K WAIT3   0:01  0.00% intr{irq274: ig
   12 root   -68- 0K   624K WAIT3   0:01  0.00% intr{irq264: ig




-- 
С уважением,
 Коньков  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[9]: high load system do not take all CPU time

2012-01-08 Thread Коньков Евгений

Also I notice next:
 in case of overload  'ping localhost' or any IP this router has get
 timeouts about 50-100ms, pinging any external host on LAN or Internet
 get normal results: 5ms LAN, 40ms Internet.

I do not think this issue related to re0 interface or its driver.
This is related to kernel and its structures.


-- 
С уважением,
 Коньков  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[10]: high load system do not take all CPU time

2012-01-08 Thread Коньков Евгений

КЕ Also I notice next:
КЕ  in case of overload  'ping localhost' or any IP this router has get
КЕ  timeouts about 50-100ms, pinging any external host on LAN or Internet
КЕ  get normal results: 5ms LAN, 40ms Internet.

КЕ I do not think this issue related to re0 interface or its driver.
КЕ This is related to kernel and its structures.

details:

which system queues or buffers can cause such bad results for
localhost pinging?


# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=122.377 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=53.025 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=36.214 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=85.151 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=105.704 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=1.145 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=26.240 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=37.532 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=20.161 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=7.876 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=36.441 ms
64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.840 ms
64 bytes from 127.0.0.1: icmp_seq=12 ttl=64 time=45.483 ms
64 bytes from 127.0.0.1: icmp_seq=13 ttl=64 time=29.629 ms
64 bytes from 127.0.0.1: icmp_seq=14 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_seq=15 ttl=64 time=86.228 ms
64 bytes from 127.0.0.1: icmp_seq=16 ttl=64 time=141.489 ms
64 bytes from 127.0.0.1: icmp_seq=17 ttl=64 time=118.011 ms
64 bytes from 127.0.0.1: icmp_seq=18 ttl=64 time=14.077 ms
64 bytes from 127.0.0.1: icmp_seq=19 ttl=64 time=0.599 ms
64 bytes from 127.0.0.1: icmp_seq=20 ttl=64 time=0.041 ms
64 bytes from 127.0.0.1: icmp_seq=21 ttl=64 time=59.191 ms
64 bytes from 127.0.0.1: icmp_seq=22 ttl=64 time=36.222 ms
64 bytes from 127.0.0.1: icmp_seq=23 ttl=64 time=3.278 ms
64 bytes from 127.0.0.1: icmp_seq=24 ttl=64 time=153.970 ms
64 bytes from 127.0.0.1: icmp_seq=25 ttl=64 time=71.832 ms
64 bytes from 127.0.0.1: icmp_seq=26 ttl=64 time=0.740 ms
64 bytes from 127.0.0.1: icmp_seq=27 ttl=64 time=22.389 ms
64 bytes from 127.0.0.1: icmp_seq=28 ttl=64 time=6.637 ms
64 bytes from 127.0.0.1: icmp_seq=29 ttl=64 time=2.888 ms
64 bytes from 127.0.0.1: icmp_seq=30 ttl=64 time=27.595 ms
64 bytes from 127.0.0.1: icmp_seq=31 ttl=64 time=59.914 ms
64 bytes from 127.0.0.1: icmp_seq=32 ttl=64 time=8.892 ms
^C
--- 127.0.0.1 ping statistics ---
33 packets transmitted, 33 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.025/43.086/153.970/43.818 ms

last pid: 34214;  load averages:  4.02,  4.13,  4.38  up 8+20:50:08  
17:18:01
276 processes: 6 running, 251 sleeping, 16 waiting, 3 lock
CPU 0: 16.5% user,  0.0% nice, 12.2% system, 48.9% interrupt, 22.3% idle
CPU 1: 12.2% user,  0.0% nice, 13.7% system, 60.4% interrupt, 13.7% idle
CPU 2:  8.6% user,  0.0% nice,  8.6% system, 68.3% interrupt, 14.4% idle
CPU 3: 10.8% user,  0.0% nice,  4.3% system, 72.7% interrupt, 12.2% idle
Mem: 638M Active, 2804M Inact, 313M Wired, 135M Cache, 112M Buf, 8736K Free
Swap: 4096M Total, 16M Used, 4080M Free

  PID USERNAME   PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
   12 root   -72- 0K   160K *per-i  3  67.7H 95.26% {swi1: netisr 3}
   12 root   -72- 0K   160K CPU11  46.5H 84.62% {swi1: netisr 1}
   12 root   -72- 0K   160K *per-i  2  24.5H 36.57% {swi1: netisr 2}
   11 root   155 ki31 0K32K RUN 0 139.3H 34.81% {idle: cpu0}
   12 root   -72- 0K   160K *per-i  3  19.6H 32.57% {swi1: netisr 0}
   11 root   155 ki31 0K32K RUN 1 141.2H 19.48% {idle: cpu1}
   11 root   155 ki31 0K32K CPU22 140.2H 17.43% {idle: cpu2}
   11 root   155 ki31 0K32K CPU33 141.5H 15.92% {idle: cpu3}
   12 root   -92- 0K   160K WAIT0  26.4H 13.09% {irq256: re0}
93929 root240 15392K  5616K select  0  86:57  6.88% snmpd
   13 root   -16- 0K32K sleep   2 599:49  4.83% {ng_queue1}
   13 root   -16- 0K32K sleep   2 600:32  4.20% {ng_queue0}
   13 root   -16- 0K32K sleep   3 600:57  3.86% {ng_queue3}
   13 root   -16- 0K32K sleep   0 600:05  3.76% {ng_queue2}
34145 cacti   270 12000K  3096K select  0   0:00  1.22% snmpwalk
34185 cacti   520 32256K 16604K nanslp  2   0:00  0.93% php
86746 root200   139M 57632K select  2  17:09  0.29% {mpd5}
86746 root200   139M 57632K select  0   0:00  0.29% {mpd5}
86746 root200   139M 57632K select  2   0:00  0.29% {mpd5}
32865 freeradius  20  -20   151M   123M usem3   1:31  0.24% {radiusd}
32865 freeradius  20  -20   151M   123M usem2   1:31  0.24% {radiusd}
32865 freeradius  20  -20   151M   123M usem0   1:25  0.24% {radiusd}

1 usersLoad  4.88  4.34  4.45  Jan  8 17:18

Mem:KBREALVIRTUAL

Re[8]: high load system do not take all CPU time

2012-01-05 Thread Коньков Евгений

I get it!!

When one of netisr take 100% of CPU other netisr threads did not get
free CPU time.

http://piccy.info/view3/2444937/25e978a34d1da6b62e4e4602dee53d8b/

In this case network works without any problem

last pid: 23632;  load averages:  5.53,  5.76,  5.72up 
6+00:09:50  20:37:43
292 processes: 12 running, 265 sleeping, 15 waiting
CPU 0:  9.4% user,  0.0% nice, 18.4% system, 36.1% interrupt, 36.1% idle
CPU 1:  2.4% user,  0.0% nice, 12.2% system, 62.4% interrupt, 23.1% idle
CPU 2:  1.6% user,  0.0% nice,  4.3% system, 85.1% interrupt,  9.0% idle
CPU 3:  1.6% user,  0.0% nice,  3.9% system, 86.3% interrupt,  8.2% idle
Mem: 613M Active, 2788M Inact, 315M Wired, 122M Cache, 112M Buf, 59M Free
Swap: 4096M Total, 30M Used, 4065M Free

  PID USERNAME   PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
   12 root   -72- 0K   160K CPU33  43.4H 100.00% {swi1: netisr 
3}
   12 root   -72- 0K   160K CPU22  28.6H 93.60% {swi1: netisr 1}
   12 root   -72- 0K   160K CPU11 954:56 50.68% {swi1: netisr 2}
   11 root   155 ki31 0K32K RUN 0  96.7H 36.91% {idle: cpu0}
   12 root   -72- 0K   160K RUN 0 757:29 31.10% {swi1: netisr 0}
   11 root   155 ki31 0K32K RUN 1  98.4H 21.44% {idle: cpu1}
   12 root   -92- 0K   160K WAIT0  17.8H 12.94% {irq256: re0}
   11 root   155 ki31 0K32K RUN 2  97.7H 11.08% {idle: cpu2}
   11 root   155 ki31 0K32K RUN 3  98.6H 10.16% {idle: cpu3}
   13 root   -16- 0K32K sleep   0 411:30  4.25% {ng_queue0}
   13 root   -16- 0K32K sleep   0 411:54  4.20% {ng_queue3}
   13 root   -16- 0K32K RUN 0 411:05  4.10% {ng_queue1}
   13 root   -16- 0K32K RUN 2 411:16  3.81% {ng_queue2}
 5588 root210   222M   106M select  0 116:59  0.93% {mpd5}
 5588 root210   222M   106M select  1   0:00  0.93% {mpd5}
 5588 root210   222M   106M select  3   0:00  0.83% {mpd5}
 5588 root210   222M   106M select  0   0:00  0.83% {mpd5}
 5588 root210   222M   106M select  3   0:00  0.83% {mpd5}
 5588 root210   222M   106M select  3   0:00  0.83% {mpd5}
 5588 root210   222M   106M select  3   0:00  0.83% {mpd5}
32882 root210 15392K  5492K select  1 313:35  0.63% snmpd
 5588 root210   222M   106M select  3   0:00  0.54% {mpd5}
 5588 root200   222M   106M select  0   0:00  0.15% {mpd5}
 5588 root200   222M   106M select  2   0:00  0.15% {mpd5}
 5588 root200   222M   106M select  3   0:00  0.15% {mpd5}


# netstat -W 1 re0
input(Total)   output
   packets  errs idrops  bytespackets  errs  bytes colls
 96245 0 0   65271414 115828 0   80031246 0
104903 0 0   70367758 121943 0   85634456 0
102693 0 0   69663018 118800 0   83847075 0
108654 0 0   73776089 125368 0   88487518 0
100216 0 0   68186983 118522 0   80985757 0
 94819 0 0   63001720 107334 0   73020011 0
108428 0 0   73849974 127976 0   88674709 0


# vmstat -i
interrupt  total   rate
irq14: ata0 13841687 26
irq16: ehci0  782489  1
irq23: ehci1 1046847  2
cpu0:timer2140530447   4122
irq256: re0374422787721
cpu1:timer2132118859   4106
cpu3:timer2108526888   4061
cpu2:timer2131292574   4105
Total 8902562578  17147


1 usersLoad  5.87  5.62  5.65  Jan  5 20:41

Mem:KBREALVIRTUAL   VN PAGER   SWAP PAGER
Tot   Share  TotShareFree   in   out in   out
Act  737696   12284  315494038552  186192  count
All  946508   19628  540325288672  pages
Proc:Interrupts
  r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt760 cow   38031 total
227  128k 7771  14k  21k  13k 3996   1624 zfod 18 ata0 14
  189 ozfod 1 ehci0 16
 7.8%Sys  68.3%Intr  4.2%User  0.0%Nice 19.7%Idle  11%ozfod 2 ehci1 23
|||||||||||   daefr  4123 cpu0:timer
++ 1439 prcfr 21603 re0 256
   184 dtbuf 3275 totfr  4102 cpu1:timer
Namei Name-cache   Dir-cache142271 desvn  react  4083 cpu3:timer
   Callshits   %hits   % 46214 numvn  pdwak  4099 cpu2:timer
   26140   24882  95

re0 + high load CPU, some tests

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

if this is interesting for anyone.
 looks strange:
irq256 - WAIT   and
ng_queue - sleep

are they wait each other?

last pid: 70764;  load averages: 69.14, 48.87, 26.25  
up 9+03:32:40  21:01:21
197 processes: 101 running, 82 sleeping, 14 waiting
CPU: 14.2% user,  0.0% nice, 44.7% system, 41.2% interrupt,  0.0% idle
Mem: 192M Active, 343M Inact, 195M Wired, 112M Buf, 1259M Free
Swap: 512M Total, 512M Free

  PID USERNAME PRI NICE   SIZERES STATETIME   WCPU COMMAND
   12 root -76- 0K   112K WAIT19.2H 52.00% {irq256: re0}
   13 root   0- 0K 8K sleep  609:11 37.06% ng_queue
69225 root  380 13420K  5748K select   2:49  2.10% snmpd
70764 root  41  -10 11184K  3984K RUN  0:00  2.05% perl5.10.1
 7749 bind  370 62980K 49004K uwait   26:40  0.73% {named}
70762 root  360  9952K  2168K RUN  0:00  0.10% top
 3772 root  36  -10   103M 87944K wait12:06  0.05% {mpd5}
 3772 root  36  -10   103M 87944K RUN  0:00  0.05% {mpd5}

# vmstat -i
interrupt  total   rate
irq14: ata0  1430344  1
irq20: hpet0  3255183935   4118
irq23: uhci0 ehci085  0
irq256: re0   2672832531   3381
Total 5929446895   7501

1 usersLoad 79.81 59.43 33.65  Dec 30 21:03

Mem:KBREALVIRTUAL   VN PAGER   SWAP PAGER
Tot   Share  TotShareFree   in   out in   out
Act  2838566264   721084 7948 1289560  count
All  3847488944  287998818292  pages
Proc:Interrupts
  r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt 54 cow   15828 total
102  33   50k  590 4377  15k 3991  242116 zfod  3 ata0 14
9 ozfod  4120 hpet0 20
39.8%Sys  50.1%Intr 10.1%User  0.0%Nice  0.0%Idle   7%ozfod   uhci0 ehci
|||||||||||   daefr 11705 re0 256
+ 34 prcfr
33 dtbuf  206 totfr
Namei Name-cache   Dir-cache111725 desvn  react
   Callshits   %hits   % 64006 numvn  pdwak
21512151 100 27893 frevn  pdpgs
  intrn
Disks   ad1   da0 pass0199448 wire
KB/t  14.75  0.00  0.00208820 act
tps   3 0 0338932 inact
MB/s   0.04  0.00  0.00   cache
%busy 1 0 0   1289560 free

# uname -a
FreeBSD bor 9.0-CURRENT FreeBSD 9.0-CURRENT #1: Wed Feb 23 09:39:22 UTC 2011
 @:/usr/obj/usr/src/sys/KES_KERN_v9  i386

# vmstat -z
ITEM   SIZE  LIMIT USED FREE  REQ FAIL SLEEP

UMA Kegs:   128,  0,  92,  28,  92,   0,   0
UMA Zones:  224,  0,  92,  10,  92,   0,   0
UMA Slabs:  284,  0,1267,  21,   13143,   0,   0
UMA RCntSlabs:  544,  0, 727,   1, 727,   0,   0
UMA Hash:   128,  0,   2,  28,   3,   0,   0
16 Bucket:   76,  0,  38,  12,  38,   0,   0
32 Bucket:  140,  0,  53,   3,  54,   0,   0
64 Bucket:  268,  0,  89,   9,  93,  90,   0
128 Bucket: 524,  0, 861,   0,6885, 572,   0
VM OBJECT:  136,  0,   36908, 560, 8428863,   0,   0
MAP:140,  0,   7,  49,   7,   0,   0
KMAP ENTRY:  72,  57505,  31, 234,  105121,   0,   0
MAP ENTRY:   72,  0,1085, 982,19434967,   0,   0
DP fakepg:   72,  0,   0,   0,   0,   0,   0
SG fakepg:   72,  0,   0,   0,   0,   0,   0
mt_zone:   2060,  0, 268,  11, 268,   0,   0
16:  16,  0,4707, 571,57886292,   0,   0
32:  32,  0,   11879, 777,706645306,   0,   0
64:  64,  0,6726, 767,33742858,   0,   0
128:128,  0,   43378,   66482,61277757,   0,   0
256:256,  0,2808, 372,684799727,   0,   0
512:512,  0, 652, 236, 1592927,   0,   0
1024:  1024,  0, 532,  40,  605103,   0,   0
2048:  2048,  0, 269, 201,5976,   0,   0
4096:  4096,  0, 156,  27,  608758,   0,   0
Files:   56,  0, 193, 276,48647341,   0,   0
TURNSTILE

Re[8]: high load system do not take all CPU time

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

RB [drivelectomy -- 200+ lines]

RB You've been told the following, *repeatedly*:

RB Your hardware is not capable of keeping up with the level of network traffic
RB it is being subjected to.

RB Reaaltek cards and the 're' device driver are a *BAD*CHOICE* for systems 
with
RB heavy network traffic.  They're merely 'medium lousy' on a lightly-loaded
RB system, but you don't notice the problems under light loads.

RB You have two choices:
RB   1) live with the crappy performance
RB   2) get a better quality network card.

without only one ipfw fw rule:

 queue 54 config pipe 54 queue 50  mask dst-ip 0x gred 
0.002/10/30/0.1

 275 queue 54 all from any not 80,110 to any in recv re0

works more! better:

http://piccy.info/view3/2418620/59aa576c1006bbb046a13554d8468a6c/


with igb cards I get problems too! it put pptp traffice only to one
queue0 instead to spread to all: queue0 queue1 queue2 queue3 =`(



-- 
С уважением,
 Коньков  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[5]: high load system do not take all CPU time

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

Вы писали 25 декабря 2011 г., 18:10:17:

КЕ Здравствуйте, wishmaster.

КЕ Вы писали 19 декабря 2011 г., 6:54:08:



w   --- Original message ---
w  From: Коньков Евгений kes-...@yandex.ru
w  To: Daniel Staal dst...@usa.net
w   Date: 18 December 2011, 19:47:40
w  Subject: Re[2]: high load system do not take all CPU time
w  
w  


 Здравствуйте, Daniel.
 
 Вы писали 18 декабря 2011 г., 17:52:00:
 
 DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
 DS is alleged to have said:
 
  How to debug why system do not use free CPU resouces?
 
  On this pictures you can see that CPU can not exceed 400tics
  http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
  http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
  http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/
 
 
  On these pictures you can see that problems begin with trafic on re0
  when CPU load rise to maximum
  http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
  http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/
 
  But there is 25% CPU idle yet at that moment.
 
 DS snip
 
 # top -SIHP
  last pid: 93050;  load averages:  1.45,  1.41,  1.29
  up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
  stopped, 20 waiting
  CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
  CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
  CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
  CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
  Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
  Swap: 4096M Total, 15M Used, 4080M Free
 
 DS --As for the rest, it is mine.
 
 DS You are I/O bound; most of your time is spent in interrupts.  The CPU is
 DS dealing with things as fast as it can get them, but it has to wait for 
 the
 DS disk and/or network card to get them to it.  The CPU is not your 
 problem;
 DS if you need more performance, you need to tune the I/O.  (And possibly 
 get
 DS better I/O cards, if available.)
 
 DS Daniel T. Staal
 
 can I get interrupt limit or calculate it before that limit is
 reached?
 
 interrupt source is internal card:
 # vmstat -i
 interrupt  total   rate
 irq14: ata0   349756 78
 irq16: ehci07427  1
 irq23: ehci1   12150  2
 cpu0:timer  18268704   4122
 irq256: re0 85001260  19178
 cpu1:timer  18262192   4120
 cpu2:timer  18217064   4110
 cpu3:timer  18210509   4108
 Total  158329062  35724
 
 Have you any good I/O tuning links to read?
 
 -- 
 С уважением,
 Коньков  mailto:kes-...@yandex.ru
w   
w  Your problem is in the poor performance LAN Card. Guy from
w Calomel Org told you about it. He advised you to change to Intel Network 
Card.

КЕ see at time 17:20
КЕ http://piccy.info/view3/2404329/dd9f28f8ac74d3d2f698ff14c305fe31/

КЕ at this point freeradius start to work slow because of no CPU time is
КЕ allocated to it or is allocated to little and mpd5 start to drop users 
because of no response
КЕ from radius. I do not know what idle were on 'top', sadly.

КЕ does SNMP return right values for CPU usage?


last pid: 14445;  load averages:  6.88,  5.69,  5.33up 
0+12:11:35  20:37:57
244 processes: 12 running, 211 sleeping, 3 stopped, 15 waiting, 3 lock
CPU 0:  4.7% user,  0.0% nice, 13.3% system, 46.7% interrupt, 35.3% idle
CPU 1:  2.0% user,  0.0% nice,  9.8% system, 69.4% interrupt, 18.8% idle
CPU 2:  2.7% user,  0.0% nice,  8.2% system, 74.5% interrupt, 14.5% idle
CPU 3:  1.2% user,  0.0% nice,  9.4% system, 78.0% interrupt, 11.4% idle
Mem: 800M Active, 2708M Inact, 237M Wired, 60M Cache, 112M Buf, 93M Free
Swap: 4096M Total, 25M Used, 4071M Free

  PID USERNAME   PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
   12 root   -72- 0K   160K CPU11 159:49 100.00% {swi1: netisr 
3}
   12 root   -72- 0K   160K *per-i  2 101:25 84.57% {swi1: netisr 1}
   12 root   -72- 0K   160K *per-i  3  60:10 40.72% {swi1: netisr 2}
   12 root   -72- 0K   160K *per-i  2  41:54 39.26% {swi1: netisr 0}
   11 root   155 ki31 0K32K RUN 0 533:06 24.46% {idle: cpu0}
 3639 root360 10460K  3824K CPU33   7:43 22.17% zebra
   12 root   -92- 0K   160K CPU00  93:56 14.94% {irq256: re0}
   11 root   155 ki31 0K32K RUN 1 563:29 14.16% {idle: cpu1}
   11 root   155 ki31 0K32K RUN 2 551:46 12.79% {idle: cpu2}
   11 root   155 ki31 0K32K RUN 3 558:54 11.52% {idle: cpu3}
   13 root   -16- 0K32K sleep   3  16:56  4.93% {ng_queue2}
   13 root   -16- 0K32K RUN

Re[6]: high load system do not take all CPU time

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

Вы писали 26 декабря 2011 г., 20:52:11:

КЕ Здравствуйте, Коньков.

КЕ Вы писали 25 декабря 2011 г., 18:10:17:

КЕ Здравствуйте, wishmaster.

КЕ Вы писали 19 декабря 2011 г., 6:54:08:



w   --- Original message ---
w  From: Коньков Евгений kes-...@yandex.ru
w  To: Daniel Staal dst...@usa.net
w   Date: 18 December 2011, 19:47:40
w  Subject: Re[2]: high load system do not take all CPU time
w  
w  


 Здравствуйте, Daniel.
 
 Вы писали 18 декабря 2011 г., 17:52:00:
 
 DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
 DS is alleged to have said:
 
  How to debug why system do not use free CPU resouces?
 
  On this pictures you can see that CPU can not exceed 400tics
  http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
  http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
  http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/
 
 
  On these pictures you can see that problems begin with trafic on re0
  when CPU load rise to maximum
  http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
  http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/
 
  But there is 25% CPU idle yet at that moment.
 
 DS snip
 
 # top -SIHP
  last pid: 93050;  load averages:  1.45,  1.41,  1.29
  up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
  stopped, 20 waiting
  CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
  CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
  CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
  CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
  Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M 
  Free
  Swap: 4096M Total, 15M Used, 4080M Free
 
 DS --As for the rest, it is mine.
 
 DS You are I/O bound; most of your time is spent in interrupts.  The CPU 
 is
 DS dealing with things as fast as it can get them, but it has to wait for 
 the
 DS disk and/or network card to get them to it.  The CPU is not your 
 problem;
 DS if you need more performance, you need to tune the I/O.  (And possibly 
 get
 DS better I/O cards, if available.)
 
 DS Daniel T. Staal
 
 can I get interrupt limit or calculate it before that limit is
 reached?
 
 interrupt source is internal card:
 # vmstat -i
 interrupt  total   rate
 irq14: ata0   349756 78
 irq16: ehci07427  1
 irq23: ehci1   12150  2
 cpu0:timer  18268704   4122
 irq256: re0 85001260  19178
 cpu1:timer  18262192   4120
 cpu2:timer  18217064   4110
 cpu3:timer  18210509   4108
 Total  158329062  35724
 
 Have you any good I/O tuning links to read?
 
 -- 
 С уважением,
 Коньков  mailto:kes-...@yandex.ru
w   
w  Your problem is in the poor performance LAN Card. Guy from
w Calomel Org told you about it. He advised you to change to Intel Network 
Card.

КЕ see at time 17:20
КЕ http://piccy.info/view3/2404329/dd9f28f8ac74d3d2f698ff14c305fe31/

КЕ at this point freeradius start to work slow because of no CPU time is
КЕ allocated to it or is allocated to little and mpd5 start to drop users 
because of no response
КЕ from radius. I do not know what idle were on 'top', sadly.

КЕ does SNMP return right values for CPU usage?


КЕ last pid: 14445;  load averages:  6.88,  5.69,  5.33  up 
0+12:11:35  20:37:57
КЕ 244 processes: 12 running, 211 sleeping, 3 stopped, 15 waiting, 3 lock
КЕ CPU 0:  4.7% user,  0.0% nice, 13.3% system, 46.7% interrupt, 35.3% idle
КЕ CPU 1:  2.0% user,  0.0% nice,  9.8% system, 69.4% interrupt, 18.8% idle
КЕ CPU 2:  2.7% user,  0.0% nice,  8.2% system, 74.5% interrupt, 14.5% idle
КЕ CPU 3:  1.2% user,  0.0% nice,  9.4% system, 78.0% interrupt, 11.4% idle
КЕ Mem: 800M Active, 2708M Inact, 237M Wired, 60M Cache, 112M Buf, 93M Free
КЕ Swap: 4096M Total, 25M Used, 4071M Free

КЕ   PID USERNAME   PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
КЕ12 root   -72- 0K   160K CPU11 159:49 100.00% {swi1: 
netisr 3}
КЕ12 root   -72- 0K   160K *per-i  2 101:25 84.57% {swi1: 
netisr 1}
КЕ12 root   -72- 0K   160K *per-i  3  60:10 40.72% {swi1: 
netisr 2}
КЕ12 root   -72- 0K   160K *per-i  2  41:54 39.26% {swi1: 
netisr 0}
КЕ11 root   155 ki31 0K32K RUN 0 533:06 24.46% {idle: cpu0}
КЕ  3639 root360 10460K  3824K CPU33   7:43 22.17% zebra
КЕ12 root   -92- 0K   160K CPU00  93:56 14.94% {irq256: 
re0}
КЕ11 root   155 ki31 0K32K RUN 1 563:29 14.16% {idle: cpu1}
КЕ11 root   155 ki31 0K32K RUN 2 551:46 12.79% {idle: cpu2}
КЕ11 root   155 ki31 0K32K RUN 3 558:54 11.52

Re: Re[6]: high load system do not take all CPU time

2011-12-26 Thread Robert Bonomi

[drivelectomy -- 200+ lines]

You've been told the following, *repeatedly*:

Your hardware is not capable of keeping up with the level of network traffic
it is being subjected to.

Reaaltek cards and the 're' device driver are a *BAD*CHOICE* for systems with
heavy network traffic.  They're merely 'medium lousy' on a lightly-loaded 
system, but you don't notice the problems under light loads.

You have two choices:
  1) live with the crappy performance
  2) get a better quality network card.


___
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]: high load system do not take all CPU time

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

Вы писали 19 декабря 2011 г., 6:54:08:



w   --- Original message ---
w  From: Коньков Евгений kes-...@yandex.ru
w  To: Daniel Staal dst...@usa.net
w   Date: 18 December 2011, 19:47:40
w  Subject: Re[2]: high load system do not take all CPU time
w  
w  


 Здравствуйте, Daniel.
 
 Вы писали 18 декабря 2011 г., 17:52:00:
 
 DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
 DS is alleged to have said:
 
  How to debug why system do not use free CPU resouces?
 
  On this pictures you can see that CPU can not exceed 400tics
  http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
  http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
  http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/
 
 
  On these pictures you can see that problems begin with trafic on re0
  when CPU load rise to maximum
  http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
  http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/
 
  But there is 25% CPU idle yet at that moment.
 
 DS snip
 
 # top -SIHP
  last pid: 93050;  load averages:  1.45,  1.41,  1.29
  up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
  stopped, 20 waiting
  CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
  CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
  CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
  CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
  Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
  Swap: 4096M Total, 15M Used, 4080M Free
 
 DS --As for the rest, it is mine.
 
 DS You are I/O bound; most of your time is spent in interrupts.  The CPU is
 DS dealing with things as fast as it can get them, but it has to wait for 
 the
 DS disk and/or network card to get them to it.  The CPU is not your problem;
 DS if you need more performance, you need to tune the I/O.  (And possibly 
 get
 DS better I/O cards, if available.)
 
 DS Daniel T. Staal
 
 can I get interrupt limit or calculate it before that limit is
 reached?
 
 interrupt source is internal card:
 # vmstat -i
 interrupt  total   rate
 irq14: ata0   349756 78
 irq16: ehci07427  1
 irq23: ehci1   12150  2
 cpu0:timer  18268704   4122
 irq256: re0 85001260  19178
 cpu1:timer  18262192   4120
 cpu2:timer  18217064   4110
 cpu3:timer  18210509   4108
 Total  158329062  35724
 
 Have you any good I/O tuning links to read?
 
 -- 
 С уважением,
 Коньков  mailto:kes-...@yandex.ru
w   
w  Your problem is in the poor performance LAN Card. Guy from
w Calomel Org told you about it. He advised you to change to Intel Network 
Card.

see at time 17:20
http://piccy.info/view3/2404329/dd9f28f8ac74d3d2f698ff14c305fe31/

at this point freeradius start to work slow because of no CPU time is
allocated to it or is allocated to little and mpd5 start to drop users because 
of no response
from radius. I do not know what idle were on 'top', sadly.

does SNMP return right values for CPU usage?

-- 
С уважением,
 Коньков  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[4]: high load system do not take all CPU time

2011-12-25 Thread wishmaster


  --- Original message ---
 From: Коньков Евгений kes-...@yandex.ru
 To: wishmaster artem...@ukr.net
  Date: 25 December 2011, 18:10:22
 Subject: Re[4]: high load system do not take all CPU time
 
 


 Здравствуйте, wishmaster.
 
 Вы писали 19 декабря 2011 г., 6:54:08:
 
 
 
 w   --- Original message ---
 w  From: Коньков Евгений kes-...@yandex.ru
 w  To: Daniel Staal dst...@usa.net
 w   Date: 18 December 2011, 19:47:40
 w  Subject: Re[2]: high load system do not take all CPU time
 w  
 w  
 
 
  Здравствуйте, Daniel.
  
  Вы писали 18 декабря 2011 г., 17:52:00:
  
  DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
  DS is alleged to have said:
  
   How to debug why system do not use free CPU resouces?
  
   On this pictures you can see that CPU can not exceed 400tics
   http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
   http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
   http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/
  
  
   On these pictures you can see that problems begin with trafic on re0
   when CPU load rise to maximum
   http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
   http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/
  
   But there is 25% CPU idle yet at that moment.
  
  DS snip
  
  # top -SIHP
   last pid: 93050;  load averages:  1.45,  1.41,  1.29
   up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
   stopped, 20 waiting
   CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
   CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
   CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
   CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
   Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M 
   Free
   Swap: 4096M Total, 15M Used, 4080M Free
  
  DS --As for the rest, it is mine.
  
  DS You are I/O bound; most of your time is spent in interrupts.  The CPU 
  is
  DS dealing with things as fast as it can get them, but it has to wait for 
  the
  DS disk and/or network card to get them to it.  The CPU is not your 
  problem;
  DS if you need more performance, you need to tune the I/O.  (And possibly 
  get
  DS better I/O cards, if available.)
  
  DS Daniel T. Staal
  
  can I get interrupt limit or calculate it before that limit is
  reached?
  
  interrupt source is internal card:
  # vmstat -i
  interrupt  total   rate
  irq14: ata0   349756 78
  irq16: ehci07427  1
  irq23: ehci1   12150  2
  cpu0:timer  18268704   4122
  irq256: re0 85001260  19178
  cpu1:timer  18262192   4120
  cpu2:timer  18217064   4110
  cpu3:timer  18210509   4108
  Total  158329062  35724
  
  Have you any good I/O tuning links to read?
  
  -- 
  С уважением,
  Коньков  mailto:kes-...@yandex.ru
 w   
 w  Your problem is in the poor performance LAN Card. Guy from
 w Calomel Org told you about it. He advised you to change to Intel Network 
 Card.
 
 see at time 17:20
 http://piccy.info/view3/2404329/dd9f28f8ac74d3d2f698ff14c305fe31/
 
 at this point freeradius start to work slow because of no CPU time is
 allocated to it or is allocated to little and mpd5 start to drop users 
 because of no response
 from radius. I do not know what idle were on 'top', sadly.
 
 does SNMP return right values for CPU usage?
 
   Here is some  interesting articles about performance, mpd and others. Read 
it.
 http://dadv.livejournal.com/138951.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[2]: high load system do not take all CPU time

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

Вы писали 18 декабря 2011 г., 17:52:00:

DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
DS is alleged to have said:

 How to debug why system do not use free CPU resouces?

 On this pictures you can see that CPU can not exceed 400tics
 http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
 http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
 http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/


 On these pictures you can see that problems begin with trafic on re0
 when CPU load rise to maximum
 http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
 http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/

 But there is 25% CPU idle yet at that moment.

DS snip

# top -SIHP
 last pid: 93050;  load averages:  1.45,  1.41,  1.29
 up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
 stopped, 20 waiting
 CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
 CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
 CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
 CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
 Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
 Swap: 4096M Total, 15M Used, 4080M Free

DS --As for the rest, it is mine.

DS You are I/O bound; most of your time is spent in interrupts.  The CPU is
DS dealing with things as fast as it can get them, but it has to wait for the
DS disk and/or network card to get them to it.  The CPU is not your problem;
DS if you need more performance, you need to tune the I/O.  (And possibly get
DS better I/O cards, if available.)

that is strange, but I get worse network perfomance with *igb* than I
have with *re*

even with less! network traffic I get 100% CPU load than I have with
for comparison: in case of re I have 350Mbit now just 250Mbit and
already reach limit.

http://piccy.info/view3/2397812/70bfa4cb5f2530e99ce298b7c1d9b94d/

# uname -a
FreeBSD meta-up 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #3: Wed Dec 21 14:29:05 
EET 2011
:/usr/obj/usr/src/sys/KES_KERN_v10  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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-20 Thread Warren Block

On Tue, 20 Dec 2011, Da Rock wrote:

The laptop is a compaq cq62 with a quad core phenom and a ATI 4200 Radeon 
mobility GPU, as well as 6300 GPU.


Sorry, I can't find any specs for a CQ62 with both ATI and NVidia. 
There's a trademark name for the dual GPU systems, at least the 
Intel-plus-something-else kind, but I can't recall it.


The HTPC/desktop is a whitebox quad core phenom on a ASUS MB (not 100% sure 
which) with a NVidia onboard pcie GPU, and an ATI Radeon 3450. There could be 
yet another GPU on there, but I can't remember.


That system is running 8.x FBSD (1 or 2- can't quite remember),


The start of /var/log/Xorg.0.log would be interesting, both for the 
version of FreeBSD and the version of xorg-server.  I don't think I 
have anything with dual PCIe X16 slots to test.


and the laptop I'm installing 9.0-RC3 on, with the view to using 
freebsd-update to RELEASE, because of the lack of Atheros 9285 support 
in 8.x (tried for hours, just couldn't get the bird to fly :( ).


From what I understand now, having been able assimilate what has been 
discussed here and through google, it seems there is a conflict when dealing 
with multiple onboard GPUs. What exactly is the issue with getting an arbiter 
for FreeBSD? Aside from time, naturally.


Usually it's finding someone able to do the work that's willing to do 
the work.  The Foundation is funding some of that, and I've heard 
they're interested in getting the KMS for the Radeon driver going.

___
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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-20 Thread Da Rock

On 12/21/11 07:39, Warren Block wrote:

On Tue, 20 Dec 2011, Da Rock wrote:

The laptop is a compaq cq62 with a quad core phenom and a ATI 4200 
Radeon mobility GPU, as well as 6300 GPU.


Sorry, I can't find any specs for a CQ62 with both ATI and NVidia. 
There's a trademark name for the dual GPU systems, at least the 
Intel-plus-something-else kind, but I can't recall it.

No, no- you won't. Both cards in the laptop are ATI.

The HTPC has an onboard NVidia, and a PCIe 16x ATI.


The HTPC/desktop is a whitebox quad core phenom on a ASUS MB (not 
100% sure which) with a NVidia onboard pcie GPU, and an ATI Radeon 
3450. There could be yet another GPU on there, but I can't remember.


That system is running 8.x FBSD (1 or 2- can't quite remember),


The start of /var/log/Xorg.0.log would be interesting, both for the 
version of FreeBSD and the version of xorg-server.  I don't think I 
have anything with dual PCIe X16 slots to test.
I'll have to look closer at it when I get a spare breath, it is a little 
intriguing.


and the laptop I'm installing 9.0-RC3 on, with the view to using 
freebsd-update to RELEASE, because of the lack of Atheros 9285 
support in 8.x (tried for hours, just couldn't get the bird to fly :( ).


From what I understand now, having been able assimilate what has been 
discussed here and through google, it seems there is a conflict when 
dealing with multiple onboard GPUs. What exactly is the issue with 
getting an arbiter for FreeBSD? Aside from time, naturally.


Usually it's finding someone able to do the work that's willing to do 
the work.  The Foundation is funding some of that, and I've heard 
they're interested in getting the KMS for the Radeon driver going.
Is there anyone here that _can_ do the work? What about mentoring? As 
for the financials... thats something else to consider.

___
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


Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-19 Thread Da Rock
I hate to come with this kind of a query, but my googling hasn't come 
across a satisfactory answer.


I'm running an install on a brand new laptop for a client, and I'm 
trying to get X up using xdm- nothing. The logs says it failed to load 
fbdev because there is no data module.


I try uninstalling fbdev and running a rebuild of xorg- its still using 
the builtin configuration and still can't load fbdev. No devices detected.


I run Xorg -configure, and it shows the radeon card fine, 2 displays. 
Still working with the config file, but it seems fine.


WTF? This is essentially the same hardware as another laptop I've setup 
(same video card - same brand CPU, just bigger and faster), and its 
fine. Both are AMD, the original is athlon dual core, the new is phenom 
quad core.


The googling failed as my searches came up with either root has access 
and user doesn't, or mixed intel/ati. Neither are the case here...


Cheers
___
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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-19 Thread Da Rock

On 12/19/11 21:31, Da Rock wrote:
I hate to come with this kind of a query, but my googling hasn't come 
across a satisfactory answer.


I'm running an install on a brand new laptop for a client, and I'm 
trying to get X up using xdm- nothing. The logs says it failed to load 
fbdev because there is no data module.


I try uninstalling fbdev and running a rebuild of xorg- its still 
using the builtin configuration and still can't load fbdev. No devices 
detected.


I run Xorg -configure, and it shows the radeon card fine, 2 displays. 
Still working with the config file, but it seems fine.
correction - its dual display issue that I've never had trouble with 
before (I also have installed on a HTPC with same memory, phenom quad 
core, uses a radeon HD card and a NVidia HD card). And no, the Xorg 
-config /root/xorg.conf.new [-retro] doesn't work as it is locking up 
and I can't even ctl-alt-backspace, I have to acpi power off to shut the 
system down. Google's still not giving me any hope... :( Last time I 
came across this level of issue was with a solo vintage intel card on 
yet another laptop- it froze the system too.


BTW, who says multicard vga is rare?
WTF? This is essentially the same hardware as another laptop I've 
setup (same video card - same brand CPU, just bigger and faster), and 
its fine. Both are AMD, the original is athlon dual core, the new is 
phenom quad core.


The googling failed as my searches came up with either root has access 
and user doesn't, or mixed intel/ati. Neither are the case here...


Cheers
___
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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-19 Thread Warren Block

On Mon, 19 Dec 2011, Da Rock wrote:


On 12/19/11 21:31, Da Rock wrote:
I hate to come with this kind of a query, but my googling hasn't come 
across a satisfactory answer.


I'm running an install on a brand new laptop for a client, and I'm trying 
to get X up using xdm- nothing. The logs says it failed to load fbdev 
because there is no data module.


I try uninstalling fbdev and running a rebuild of xorg- its still using the 
builtin configuration and still can't load fbdev. No devices detected.


I run Xorg -configure, and it shows the radeon card fine, 2 displays. Still 
working with the config file, but it seems fine.
correction - its dual display issue that I've never had trouble with before 
(I also have installed on a HTPC with same memory, phenom quad core, uses a 
radeon HD card and a NVidia HD card). And no, the Xorg -config 
/root/xorg.conf.new [-retro] doesn't work as it is locking up and I can't 
even ctl-alt-backspace, I have to acpi power off to shut the system down. 
Google's still not giving me any hope... :( Last time I came across this 
level of issue was with a solo vintage intel card on yet another laptop- it 
froze the system too.


BTW, who says multicard vga is rare?


Some newer laptops have dual GPUs, an onboard Intel combined with one 
from another vendor for higher performance.  There's hot-switching 
between the two, but AFAIK it's not supported in FreeBSD.  There may be 
a BIOS option to disable one or the other.  There should still be two 
video outputs.


More than one video card at a time is a different issue, which is also 
unsupported on FreeBSD AFAIK:

(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
___
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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-19 Thread Da Rock

On 12/20/11 03:05, Warren Block wrote:

On Mon, 19 Dec 2011, Da Rock wrote:


On 12/19/11 21:31, Da Rock wrote:
I hate to come with this kind of a query, but my googling hasn't 
come across a satisfactory answer.


I'm running an install on a brand new laptop for a client, and I'm 
trying to get X up using xdm- nothing. The logs says it failed to 
load fbdev because there is no data module.


I try uninstalling fbdev and running a rebuild of xorg- its still 
using the builtin configuration and still can't load fbdev. No 
devices detected.


I run Xorg -configure, and it shows the radeon card fine, 2 
displays. Still working with the config file, but it seems fine.
correction - its dual display issue that I've never had trouble with 
before (I also have installed on a HTPC with same memory, phenom quad 
core, uses a radeon HD card and a NVidia HD card). And no, the Xorg 
-config /root/xorg.conf.new [-retro] doesn't work as it is locking up 
and I can't even ctl-alt-backspace, I have to acpi power off to shut 
the system down. Google's still not giving me any hope... :( Last 
time I came across this level of issue was with a solo vintage intel 
card on yet another laptop- it froze the system too.


BTW, who says multicard vga is rare?


Some newer laptops have dual GPUs, an onboard Intel combined with one 
from another vendor for higher performance.  There's hot-switching 
between the two, but AFAIK it's not supported in FreeBSD.  There may 
be a BIOS option to disable one or the other.  There should still be 
two video outputs.


More than one video card at a time is a different issue, which is also 
unsupported on FreeBSD AFAIK:

(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
It appears that it is something that needs to be resolved pretty quickly 
then. The linux guys jumped on it quick as (I'm not ribbing by the way) 
- probably their guys came across it sooner than BSD users.


What has thrown me is the fact that I didn't even consider it as a 
problem because I already had installed on a dual video system- ATI card 
and NVidia onboard, both that will work on a linux system, and that FBSD 
has no problem like this either; it just works. Weird...


So what are my options then? I have 2 high performance cards I can't 
use? VESA is not exactly an exciting solution - or secure: it somehow 
retains the image displayed in memory, and shows it as it loads up X the 
next time.

___
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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-19 Thread Warren Block

On Tue, 20 Dec 2011, Da Rock wrote:

Some newer laptops have dual GPUs, an onboard Intel combined with one from 
another vendor for higher performance.  There's hot-switching between the 
two, but AFAIK it's not supported in FreeBSD.  There may be a BIOS option 
to disable one or the other.  There should still be two video outputs.


More than one video card at a time is a different issue, which is also 
unsupported on FreeBSD AFAIK:

(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
It appears that it is something that needs to be resolved pretty quickly 
then. The linux guys jumped on it quick as (I'm not ribbing by the way) - 
probably their guys came across it sooner than BSD users.


What has thrown me is the fact that I didn't even consider it as a problem 
because I already had installed on a dual video system- ATI card and NVidia 
onboard, both that will work on a linux system, and that FBSD has no problem 
like this either; it just works. Weird...


It's difficult to tell what you're saying.  It's possible that multiple 
cards would work in some combinations, and just that the ones I tried 
did not.  Also, you're talking about two systems, a laptop and a 
desktop.  So it would be good to get some specifics, like laptop brand 
and model, whether the desktop dual-card setup worked with FreeBSD (and 
which version of FreeBSD).

___
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: Xorg error: New athlon laptop, radeonhd video - unable to load fbdev

2011-12-19 Thread Da Rock

On 12/20/11 14:33, Warren Block wrote:

On Tue, 20 Dec 2011, Da Rock wrote:

Some newer laptops have dual GPUs, an onboard Intel combined with 
one from another vendor for higher performance.  There's 
hot-switching between the two, but AFAIK it's not supported in 
FreeBSD.  There may be a BIOS option to disable one or the other.  
There should still be two video outputs.


More than one video card at a time is a different issue, which is 
also unsupported on FreeBSD AFAIK:

(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
It appears that it is something that needs to be resolved pretty 
quickly then. The linux guys jumped on it quick as (I'm not ribbing 
by the way) - probably their guys came across it sooner than BSD users.


What has thrown me is the fact that I didn't even consider it as a 
problem because I already had installed on a dual video system- ATI 
card and NVidia onboard, both that will work on a linux system, and 
that FBSD has no problem like this either; it just works. Weird...


It's difficult to tell what you're saying.  It's possible that 
multiple cards would work in some combinations, and just that the ones 
I tried did not.  Also, you're talking about two systems, a laptop and 
a desktop.  So it would be good to get some specifics, like laptop 
brand and model, whether the desktop dual-card setup worked with 
FreeBSD (and which version of FreeBSD).
NP. I thought I was clear, but I'm not always coherent when I 
communicate (apparently... just ask the missus :) ).


The laptop is a compaq cq62 with a quad core phenom and a ATI 4200 
Radeon mobility GPU, as well as 6300 GPU.


The HTPC/desktop is a whitebox quad core phenom on a ASUS MB (not 100% 
sure which) with a NVidia onboard pcie GPU, and an ATI Radeon 3450. 
There could be yet another GPU on there, but I can't remember.


That system is running 8.x FBSD (1 or 2- can't quite remember), and the 
laptop I'm installing 9.0-RC3 on, with the view to using freebsd-update 
to RELEASE, because of the lack of Atheros 9285 support in 8.x (tried 
for hours, just couldn't get the bird to fly :( ).


From what I understand now, having been able assimilate what has been 
discussed here and through google, it seems there is a conflict when 
dealing with multiple onboard GPUs. What exactly is the issue with 
getting an arbiter for FreeBSD? Aside from time, naturally.

___
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 load system do not take all CPU time

2011-12-18 Thread Daniel Staal
--As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
is alleged to have said:



How to debug why system do not use free CPU resouces?

On this pictures you can see that CPU can not exceed 400tics
http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/


On these pictures you can see that problems begin with trafic on re0
when CPU load rise to maximum
http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/

But there is 25% CPU idle yet at that moment.


snip


# top -SIHP
last pid: 93050;  load averages:  1.45,  1.41,  1.29
up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
stopped, 20 waiting
CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
Swap: 4096M Total, 15M Used, 4080M Free


--As for the rest, it is mine.

You are I/O bound; most of your time is spent in interrupts.  The CPU is 
dealing with things as fast as it can get them, but it has to wait for the 
disk and/or network card to get them to it.  The CPU is not your problem; 
if you need more performance, you need to tune the I/O.  (And possibly get 
better I/O cards, if available.)


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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]: high load system do not take all CPU time

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

Вы писали 18 декабря 2011 г., 17:52:00:

DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
DS is alleged to have said:

 How to debug why system do not use free CPU resouces?

 On this pictures you can see that CPU can not exceed 400tics
 http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
 http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
 http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/


 On these pictures you can see that problems begin with trafic on re0
 when CPU load rise to maximum
 http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
 http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/

 But there is 25% CPU idle yet at that moment.

DS snip

# top -SIHP
 last pid: 93050;  load averages:  1.45,  1.41,  1.29
 up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
 stopped, 20 waiting
 CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
 CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
 CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
 CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
 Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
 Swap: 4096M Total, 15M Used, 4080M Free

DS --As for the rest, it is mine.

DS You are I/O bound; most of your time is spent in interrupts.  The CPU is
DS dealing with things as fast as it can get them, but it has to wait for the
DS disk and/or network card to get them to it.  The CPU is not your problem;
DS if you need more performance, you need to tune the I/O.  (And possibly get
DS better I/O cards, if available.)

DS Daniel T. Staal

can I get interrupt limit or calculate it before that limit is
reached?

interrupt source is internal card:
# vmstat -i
interrupt  total   rate
irq14: ata0   349756 78
irq16: ehci07427  1
irq23: ehci1   12150  2
cpu0:timer  18268704   4122
irq256: re0 85001260  19178
cpu1:timer  18262192   4120
cpu2:timer  18217064   4110
cpu3:timer  18210509   4108
Total  158329062  35724

Have you any good I/O tuning links to read?

-- 
С уважением,
 Коньков  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]: high load system do not take all CPU time

2011-12-18 Thread Robert Bonomi

kes-...@yandex.ru wrote;

 can I get interrupt limit or calculate it before that limit is
 reached?

You can extrapolate from the current cpu time spent in interrupt handling
and the current interrupt rate to a situation where roughly 100% of the
cpu capacity is spent in interrupt handling.

 interrupt source is internal card:
 # vmstat -i
 interrupt  total   rate
 irq14: ata0   349756 78
 irq16: ehci07427  1
 irq23: ehci1   12150  2
 cpu0:timer  18268704   4122
 irq256: re0 85001260  19178
 cpu1:timer  18262192   4120
 cpu2:timer  18217064   4110
 cpu3:timer  18210509   4108
 Total  158329062  35724

 Have you any good I/O tuning links to read?

Since the 'issue' is the _network_ card, you are being limited by the
rate at which the RealTeK chipset, and the device driver software, can 
transfer data to/from the Ethernet.  This -may- be the 'wire speed' limit,
or the hardware simply may not be capable of performing _at_ 'wire speed',
or (theoretically) it might be a performance limit in the driver software.
In your case, the driver software can be eliminated as the limiting factor
because there is lots of 'idle' cpu time.

This means that either the 'wire' is saturated, or the hardware (at *either*
end of the link) is not capable of operating at full wire speed.  Or one
is getting bit by the 'bAndwidth delay product' on TCP connections. This
describes a situation where the limit on 'un-ACKed' packets transmitted is 
reached -before- the ACK for the first packet is returned.

If the application that use the nentwork are generating lots of 'small'
packets, modifying the protocol to use a smaller number of larger packets
can make for a -significant- performance increase.  Network devices have
limits  on the number of 'packets per second' they can handle, as well as
the bit-rate they can support.

Note: If you are doing long-distance, high-latency, 'connections', one
may be limited to well below wire speeds by the 'bandwidth delay product'.
This issue can be ameliorated by increasing the TCP window size.


___
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]: high load system do not take all CPU time

2011-12-18 Thread wishmaster


  --- Original message ---
 From: Коньков Евгений kes-...@yandex.ru
 To: Daniel Staal dst...@usa.net
  Date: 18 December 2011, 19:47:40
 Subject: Re[2]: high load system do not take all CPU time
 
 


 Здравствуйте, Daniel.
 
 Вы писали 18 декабря 2011 г., 17:52:00:
 
 DS --As of December 17, 2011 10:29:42 AM +0200, Коньков Евгений 
 DS is alleged to have said:
 
  How to debug why system do not use free CPU resouces?
 
  On this pictures you can see that CPU can not exceed 400tics
  http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
  http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
  http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/
 
 
  On these pictures you can see that problems begin with trafic on re0
  when CPU load rise to maximum
  http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
  http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/
 
  But there is 25% CPU idle yet at that moment.
 
 DS snip
 
 # top -SIHP
  last pid: 93050;  load averages:  1.45,  1.41,  1.29
  up 9+16:32:06  10:28:43 237 processes: 5 running, 210 sleeping, 2
  stopped, 20 waiting
  CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
  CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
  CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
  CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
  Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
  Swap: 4096M Total, 15M Used, 4080M Free
 
 DS --As for the rest, it is mine.
 
 DS You are I/O bound; most of your time is spent in interrupts.  The CPU is
 DS dealing with things as fast as it can get them, but it has to wait for the
 DS disk and/or network card to get them to it.  The CPU is not your problem;
 DS if you need more performance, you need to tune the I/O.  (And possibly get
 DS better I/O cards, if available.)
 
 DS Daniel T. Staal
 
 can I get interrupt limit or calculate it before that limit is
 reached?
 
 interrupt source is internal card:
 # vmstat -i
 interrupt  total   rate
 irq14: ata0   349756 78
 irq16: ehci07427  1
 irq23: ehci1   12150  2
 cpu0:timer  18268704   4122
 irq256: re0 85001260  19178
 cpu1:timer  18262192   4120
 cpu2:timer  18217064   4110
 cpu3:timer  18210509   4108
 Total  158329062  35724
 
 Have you any good I/O tuning links to read?
 
 -- 
 С уважением,
 Коньков  mailto:kes-...@yandex.ru
  
 Your problem is in the poor performance LAN Card. Guy from Calomel Org told 
you about it. He advised you to change to Intel Network Card.
___
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


high load system do not take all CPU time

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

How to debug why system do not use free CPU resouces?

On this pictures you can see that CPU can not exceed 400tics
http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/
http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/
http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/


On these pictures you can see that problems begin with trafic on re0
when CPU load rise to maximum
http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/
http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/

But there is 25% CPU idle yet at that moment.

# sysctl -a net.isr
net.isr.numthreads: 4
net.isr.maxprot: 16
net.isr.defaultqlimit: 256
net.isr.maxqlimit: 10240
net.isr.bindthreads: 0
net.isr.maxthreads: 4
net.isr.direct: 0
net.isr.direct_force: 0

# sysctl -a kern.smp
kern.smp.forward_signal_enabled: 1
kern.smp.topology: 0
kern.smp.cpus: 4
kern.smp.disabled: 0
kern.smp.active: 1
kern.smp.maxcpus: 32
kern.smp.maxid: 3


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

sysctl.conf
#ngctl: can't create node: No buffer space available
#kern.ipc.maxsockbuf=8388608
#ngctl: send msg: No buffer space available
net.graph.recvspace=524288
#Нужно ли тюнить? net.graph.maxdgram=524288

#Чтобы после пайпа пакет шел дальше по файрволу
net.inet.ip.fw.one_pass=0
#Или можно использовать команду: ipfw disable one_pass

#man ipfw: Fast mode allows certain packets to bypass dummynet scheduler if 
packet flow does not exceed pipe's bandwidth
net.inet.ip.dummynet.io_fast=1


##
## https://calomel.org/network_performance.html
##
kern.ipc.maxsockbuf=16777216  # kernel socket buffer space
kern.ipc.nmbclusters=262144   # kernel mbuf space raised 275MB of kernel 
dedicated ram
kern.ipc.somaxconn=32768  # size of the listen queue for accepting new 
TCP connections
kern.ipc.maxsockets=204800# increase the limit of the open sockets
#kern.randompid=348# randomized processes id's
net.inet.icmp.icmplim=50  # reply to no more than 50 ICMP packets per 
sec
net.inet.ip.process_options=0 # do not processes any TCP options in the TCP 
headers
net.inet.ip.redirect=0# do not allow ip header redirects
net.inet.ip.rtexpire=2# route cache expire in two seconds
net.inet.ip.rtminexpire=2 # 
net.inet.ip.rtmaxcache=256# route cache entries increased
#net.inet.icmp.drop_redirect=1 # drop icmp redirects
#net.inet.tcp.blackhole=2  # drop any TCP packets to closed ports
net.inet.tcp.delayed_ack=0# no need to delay ACK's
net.inet.tcp.drop_synfin=1# drop TCP packets which have SYN and FIN set
net.inet.tcp.msl=15000 # close lost tcp connections in 7.5 seconds 
(default 30)
net.inet.tcp.nolocaltimewait=1# do not create TIME_WAIT state for localhost
#net.inet.tcp.path_mtu_discovery=0 # disable MTU path discovery
net.inet.tcp.recvbuf_max=16777216 # TCP receive buffer space
net.inet.tcp.recvspace=8192   # decrease buffers for incoming data
net.inet.tcp.sendbuf_max=16777216 # TCP send buffer space
net.inet.tcp.sendspace=16384  # decrease buffers for outgoing data
#net.inet.udp.blackhole=1  # drop any UDP packets to closed ports
security.bsd.see_other_uids=0 # keeps users segregated to their own 
processes list
security.bsd.see_other_gids=0 # 

net.inet.ip.fastforwarding=1   #allow packet to leave packet without 
latency if bandwidth not exceed
net.inet.ip.intr_queue_maxlen=1024 #256 #interrupt queue length

#FireBird
kern.ipc.shmall=32768
kern.ipc.shmmax=134217728
kern.ipc.semmap=256

as you can see
 net.isr.maxthreads=4  # Max number of threads for NIC IRQ 
balancing (4 cores in box)
and there is really 4 netisr


#top -SIHP
last pid: 93050;  load averages:  1.45,  1.41,  1.29
up 9+16:32:06  
10:28:43
237 processes: 5 running, 210 sleeping, 2 stopped, 20 waiting
CPU 0:  0.8% user,  0.0% nice,  8.7% system, 17.7% interrupt, 72.8% idle
CPU 1:  0.0% user,  0.0% nice,  9.1% system, 20.1% interrupt, 70.9% idle
CPU 2:  0.4% user,  0.0% nice,  9.4% system, 19.7% interrupt, 70.5% idle
CPU 3:  1.2% user,  0.0% nice,  6.3% system, 22.4% interrupt, 70.1% idle
Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free
Swap: 4096M Total, 15M Used, 4080M Free

  PID USERNAME   PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
   11 root   155 ki31 0K32K RUN 2 155.8H 77.59% {idle: cpu2}
   11 root   155 ki31 0K32K CPU33 158.1H 75.98% {idle: cpu3}
   11 root   155 ki31 0K32K CPU00 150.5H 71.14% {idle: cpu0}
   11 root   155 ki31 0K32K CPU11 157.2H 63.87% {idle: cpu1}
   12 root   -72- 0K   160K WAIT1  65.0H 28.56% {swi1: netisr 3}
   12 root   -92- 0K   160K WAIT0  26.2H 16.41

X11 - keyboard driver unloaded, how to load it again

2011-12-07 Thread Sebastian Chmielewski
Hi,
I've an USB Mouse - Microsoft Wireless Mouse 1000, which is recognized also
as a keyboard:
ugen1.3: vendor 0x192f at usbus1 (disconnected)
ums0: at uhub2, port 2, addr 3 (disconnected)
ugen0.5: Microsoft at usbus0
ukbd0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
2.00/6.56, addr 5 on usbus0
kbd2 at ukbd0
ums0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
2.00/6.56, addr 5 on usbus0
ums0: 5 buttons and [XYZT] coordinates ID=26
ums0: 0 buttons and [T] coordinates ID=0
uhid0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
2.00/6.56, addr 5 on usbus0

After disconnecting this mouse kbd module was unloaded by X:

[ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports core
events
[ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports core
events
[ 40002.704] (**) Option Protocol standard
[ 40002.704] (**) Option XkbRules base
[ 40002.704] (**) Option XkbModel pc105
[ 40002.704] (**) Option XkbLayout pl
[ 40002.704] (**) Option XkbOptions terminate:ctrl_alt_bksp
[ 40002.709] (**) Option config_info
hal:/org/freedesktop/Hal/devices/usb_device_45e_745_noserial_if0
[ 40002.709] (II) XINPUT: Adding extended input device Microsoft 2.4GHz
Transceiver v8.0 (type: KEYBOARD)
[ 47161.229] (II) 3rd Button detected: disabling emulate3Button
[ 49888.691] (II) config/hal: removing device Microsoft 2.4GHz Transceiver
v8.0
[ 49888.696] (II) UnloadModule: kbd
[ 49888.696] (II) Unloading kbd

Question is: how to prevent this behavior in X and how to reload module
'kbd' under working X session (I can connect through ssh to this machine).

best regards,
-- 
Sebastian Chmielewski
___
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: X11 - keyboard driver unloaded, how to load it again

2011-12-07 Thread Zane C. B-H.
On Wed, 7 Dec 2011 08:48:20 +0100
Sebastian Chmielewski chmi...@o2.pl wrote:

 Hi,
 I've an USB Mouse - Microsoft Wireless Mouse 1000, which is
 recognized also as a keyboard:
 ugen1.3: vendor 0x192f at usbus1 (disconnected)
 ums0: at uhub2, port 2, addr 3 (disconnected)
 ugen0.5: Microsoft at usbus0
 ukbd0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
 2.00/6.56, addr 5 on usbus0
 kbd2 at ukbd0
 ums0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
 2.00/6.56, addr 5 on usbus0
 ums0: 5 buttons and [XYZT] coordinates ID=26
 ums0: 0 buttons and [T] coordinates ID=0
 uhid0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
 2.00/6.56, addr 5 on usbus0
 
 After disconnecting this mouse kbd module was unloaded by X:
 
 [ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports
 core events
 [ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports
 core events
 [ 40002.704] (**) Option Protocol standard
 [ 40002.704] (**) Option XkbRules base
 [ 40002.704] (**) Option XkbModel pc105
 [ 40002.704] (**) Option XkbLayout pl
 [ 40002.704] (**) Option XkbOptions terminate:ctrl_alt_bksp
 [ 40002.709] (**) Option config_info
 hal:/org/freedesktop/Hal/devices/usb_device_45e_745_noserial_if0
 [ 40002.709] (II) XINPUT: Adding extended input device Microsoft
 2.4GHz Transceiver v8.0 (type: KEYBOARD)
 [ 47161.229] (II) 3rd Button detected: disabling emulate3Button
 [ 49888.691] (II) config/hal: removing device Microsoft 2.4GHz
 Transceiver v8.0
 [ 49888.696] (II) UnloadModule: kbd
 [ 49888.696] (II) Unloading kbd
 
 Question is: how to prevent this behavior in X and how to reload
 module 'kbd' under working X session (I can connect through ssh to
 this machine).

I would suggest just disabling HAL support for x11-server/xorg-server
and just statically configuring the file. The only thing you may
possibly want to do after that is make sure moused is started if you
are have any non-USB mice on that system as well.

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


Re: load average with multi-core CPU's

2011-09-26 Thread Ivan Voras
On 22/09/2011 22:59, Rodrigo Gonzalez wrote:

 It is the number of task waiting in queue to be runbut IO is
 important...if 2 processes are waiting for IO and it is completely
 saturated they will be kept in queue so load will get higher

No, this is how Linux does the calculation. For FreeBSD, if a process is
waiting or IO, it is sleeping and thus not runnable.

Linux has the iowait (w) state in addition to usr/sys/idle states
and counts processes waiting for IO as runnable - which never made sense
to me as it is counting apples as oranges. (yes, IO saturation is
important for server status but it needs to be inspected separately -
the LA number is too coarse for this).




signature.asc
Description: OpenPGP digital signature


Re: load average with multi-core CPU's

2011-09-23 Thread Damien Fleuriot
On 9/22/11 10:59 PM, Rodrigo Gonzalez wrote:
 On 09/22/2011 04:29 PM, Mark Felder wrote:
 On Thu, 22 Sep 2011 10:22:43 -0500, Henry M henr...@gmail.com wrote:

 Hi all,

 Can someone explain, or point me to correct documentation on what the
 load
 average on top/uptime is actually displaying?

 Load average is average number of processes in the run queue for the
 1, 5, and 15 minute intervals. If you have a quad core CPU a 4.00 load
 average means you've been keeping the CPU busy at 100%.
 Not exactly as I understand itIO (disk, network or whatever) affects
 it too...
 It is the number of task waiting in queue to be runbut IO is
 important...if 2 processes are waiting for IO and it is completely
 saturated they will be kept in queue so load will get higher
 I think there are other things that affect load average but are over my
 current knowledge...
 
 Regards
 
 Rodrigo Gonzalez

Actually, I could be wrong but that is the number of tasks both in the
waiting *AND* the running queue.
___
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: load average with multi-core CPU's

2011-09-23 Thread Damien Fleuriot
On 9/22/11 10:34 PM, Henry M wrote:
 Thanks- That's what I thought it was.  I'm trying to settle an argument at
 work : )
 

http://xkcd.com/386/

Enjoy ;)
___
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: load average with multi-core CPU's

2011-09-23 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Fri Sep 23 03:15:37 2011
 Date: Fri, 23 Sep 2011 10:12:51 +0200
 From: Damien Fleuriot m...@my.gd.r-bonomi.com
 To: freebsd-questions@freebsd.org
 Subject: Re: load average with multi-core CPU's

 On 9/22/11 10:59 PM, Rodrigo Gonzalez wrote:
  On 09/22/2011 04:29 PM, Mark Felder wrote:
  On Thu, 22 Sep 2011 10:22:43 -0500, Henry M henr...@gmail.com wrote:
 
  Hi all,
 
  Can someone explain, or point me to correct documentation on what the
  load
  average on top/uptime is actually displaying?
 
  Load average is average number of processes in the run queue for the
  1, 5, and 15 minute intervals. If you have a quad core CPU a 4.00 load
  average means you've been keeping the CPU busy at 100%.
  Not exactly as I understand itIO (disk, network or whatever) affects
  it too...
  It is the number of task waiting in queue to be runbut IO is
  important...if 2 processes are waiting for IO and it is completely
  saturated they will be kept in queue so load will get higher
  I think there are other things that affect load average but are over my
  current knowledge...
  
  Regards
  
  Rodrigo Gonzalez

 Actually, I could be wrong but that is the number of tasks both in the
 waiting *AND* the running queue.

It is the average of the number of 'runnable' processes -- those that are 
actually running (which is -- obviously! -- limited to the number of logical
cpu's present) and those that are -- in _all_ other respects -- 'ready' to 
be run.  This list of processes -- 'running' and 'runnable -- is known as 
the 'run queue'.  The cpu 'scheduler' allocated cpu time slots between the
processes in the 'run queueu', _only_.  Anything -not- in the 'run queue'
is not eligible for a slice of cpu time -- because it can't use cpu time,
if it were to be offered, because it is 'waiting' on something else.


___
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


load average with multi-core CPU's

2011-09-22 Thread Henry M
Hi all,

Can someone explain, or point me to correct documentation on what the load
average on top/uptime is actually displaying? Is the load the average amount
of processes waiting to execute on the server, or is it independent of CPU?

Am I correct with the below statements?

* Example 1: 1 CPU, load average of 1.00, CPU at capacity. No processes have
to wait to execute. 1 CPU, 2.00 load average, 1 process is waiting to
execute.
* Example 2: 1 CPU, 4 cores. load average of 2.00. 2 cores are working at
capacity, other 2 are idle (mostly). 1 CPU, 4 cores, load average 5.00. 4
cores are at capacity, 1 process waiting to execute.

I tried searching, but I couldn't find much besides some blog postings.

Thanks,
Henry
___
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: load average with multi-core CPU's

2011-09-22 Thread Mark Felder

On Thu, 22 Sep 2011 10:22:43 -0500, Henry M henr...@gmail.com wrote:


Hi all,

Can someone explain, or point me to correct documentation on what the  
load

average on top/uptime is actually displaying?


Load average is average number of processes in the run queue for the 1,  
5, and 15 minute intervals. If you have a quad core CPU a 4.00 load  
average means you've been keeping the CPU busy at 100%.



Does that make sense?



Regards,



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


Re: load average with multi-core CPU's

2011-09-22 Thread Henry M
Thanks- That's what I thought it was.  I'm trying to settle an argument at
work : )



On Thu, Sep 22, 2011 at 3:29 PM, Mark Felder f...@feld.me wrote:

 On Thu, 22 Sep 2011 10:22:43 -0500, Henry M henr...@gmail.com wrote:

  Hi all,

 Can someone explain, or point me to correct documentation on what the load
 average on top/uptime is actually displaying?


 Load average is average number of processes in the run queue for the 1,
 5, and 15 minute intervals. If you have a quad core CPU a 4.00 load average
 means you've been keeping the CPU busy at 100%.


 Does that make sense?



 Regards,



 Mark
 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org 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: load average with multi-core CPU's

2011-09-22 Thread Rodrigo Gonzalez

On 09/22/2011 04:29 PM, Mark Felder wrote:

On Thu, 22 Sep 2011 10:22:43 -0500, Henry M henr...@gmail.com wrote:


Hi all,

Can someone explain, or point me to correct documentation on what the 
load

average on top/uptime is actually displaying?


Load average is average number of processes in the run queue for the 
1, 5, and 15 minute intervals. If you have a quad core CPU a 4.00 load 
average means you've been keeping the CPU busy at 100%.
Not exactly as I understand itIO (disk, network or whatever) affects 
it too...
It is the number of task waiting in queue to be runbut IO is 
important...if 2 processes are waiting for IO and it is completely 
saturated they will be kept in queue so load will get higher
I think there are other things that affect load average but are over my 
current knowledge...


Regards

Rodrigo Gonzalez
___
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


LVS/DR load balancing via FreeBSD

2011-09-19 Thread Alexandr Matveev

Hi,

  We have two Linux servers doing LVS/DR load balancing (rewriting MAC 
addresses).
Is there a way to do this in FreeBSD, so there won't be need for a Linux 
servers here?

( http://www.linuxvirtualserver.org/VS-DRouting.html )

  There is a port net/ipvs but it's an old and (seemingly) unmaintained 
patches.


--
Alexandr Matveev

___
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: LVS/DR load balancing via FreeBSD

2011-09-19 Thread Matthew Seaman
On 19/09/2011 11:44, Alexandr Matveev wrote:
   We have two Linux servers doing LVS/DR load balancing (rewriting MAC
 addresses).
 Is there a way to do this in FreeBSD, so there won't be need for a Linux
 servers here?
 ( http://www.linuxvirtualserver.org/VS-DRouting.html )
 
   There is a port net/ipvs but it's an old and (seemingly) unmaintained
 patches.

Sounds like relayd(8) might be what you need -- in ports as net/relayd.
 It works with the pf(4) firewall, and you can use it to implement
almost all of the functions of an expensive hardware loadbalancer on a
cheap PC.

It should be able to do what you want -- which I am more familiar with
as 'Direct Server Return.'  relayd(8) is ported from OpenBSD, and the
FreeBSD port doesn't yet support absolutely everything that it can do
natively on OpenBSD.  The missing stuff is mostly to do with creating a
HA firewall/load-balancer pair, which seems to be one of your
requirements, so you might want to try it under OpenBSD.

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: Transparent load balancing

2011-07-12 Thread Damien Fleuriot
On 7/11/11 6:49 PM, Unga wrote:
 Hi all
 
 I need to implement a transparent load balancing daemon in C.
 
 That is, the daemon accept a TCP connection, get more info from the client, 
 and forward the communication transparently to another server to handle it.
 
 How this could be implemented on FreeBSD? What basic primitives I should 
 study more?
 
 Many thanks in advance.
 
 Best regards
 Unga



Hey up,



2 questions come to mind:

1/ get more info from the client - what kind of info ?
2/ have you considered HAProxy ? It does offer a TCP mode.
___
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: Transparent load balancing

2011-07-12 Thread Unga
--- On Tue, 7/12/11, Damien Fleuriot m...@my.gd wrote:

 From: Damien Fleuriot m...@my.gd
 Subject: Re: Transparent load balancing
 To: Unga unga...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Tuesday, July 12, 2011, 4:11 PM
 On 7/11/11 6:49 PM, Unga wrote:
  Hi all
  
  I need to implement a transparent load balancing
 daemon in C.
  
  That is, the daemon accept a TCP connection, get more
 info from the client, and forward the communication
 transparently to another server to handle it.
  
  How this could be implemented on FreeBSD? What basic
 primitives I should study more?
  
  Many thanks in advance.
  
  Best regards
  Unga
 
 
 
 Hey up,
 
 
 
 2 questions come to mind:
 
 1/ get more info from the client - what kind of info
 ?
 2/ have you considered HAProxy ? It does offer a TCP mode.

Hi Damien and Chuck

Appreciate for replying on this.

I want to ask from the client, eg. where do you want to go?, If north, I want 
to forward to the north server, if south, to the south server.

I need to get developed something probably similar to the Proto Balance 
(http://www.protonet.co.za/whitepaper.html).

It says connections are transparently forwarded to an instance chosen by Proto 
Balance. I want my daemon to make that choice.

Unga


___
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


Transparent load balancing

2011-07-11 Thread Unga
Hi all

I need to implement a transparent load balancing daemon in C.

That is, the daemon accept a TCP connection, get more info from the client, and 
forward the communication transparently to another server to handle it.

How this could be implemented on FreeBSD? What basic primitives I should study 
more?

Many thanks in advance.

Best regards
Unga


___
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


Squeezebox Server 7.6 failed to load: YAML::Syck

2011-06-12 Thread Carl Chave
I'm running FreeBSD 8.2-RC3 and use Squeezebox Server (v7.5.1, r30836,
Tue Jun  1 07:00:00 MDT 2010).  Squeezebox Server 7.6 has experimental
native support for UPnP media renderers (of which I have many) and I
wanted to try it out.  I downloaded the latest tarball and when I run
slimserver.pl I get the following error:



The following modules failed to load: YAML::Syck


***

NOTE:

If you're running some unsupported Linux/Unix platform, please use the
buildme.sh
script located here:

http://svn.slimdevices.com/repos/slim/7.6/trunk/vendor/CPAN/

If 7.6 is outdated by the time you read this, Replace 7.6 with the
major version
You should never need to do this if you're on Windows or Mac OSX. If
the installers
don't work for you, ask for help and/or report a bug.

of Squeezebox Server you are running.

***


Exiting..

---

The version of Perl seems to be OK:

sodserve# perl -v

This is perl, v5.10.1 (*) built for amd64-freebsd

When I install /usr/ports/textproc/p5-YAML-Syck it's supposedly
already installed:

===  Installing for p5-YAML-Syck-1.17
===   p5-YAML-Syck-1.17 depends on file: /usr/local/bin/perl5.10.1 - found
===   Generating temporary packing list
===  Checking if textproc/p5-YAML-Syck already installed
===   p5-YAML-Syck-1.17 is already installed

cpan install gives me:

YAML::Syck is up to date (1.17)

I'm not really sure what else to check.  Can someone point me in the
right direction?

Carl
___
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: acroread9 - kernel module load error

2011-06-03 Thread Jamie Paul Griffin
On Fri, Jun 03, 2011 at 12:14:36AM +0200, Polytropon wrote:
 On Thu, 2 Jun 2011 23:43:51 +0200, Patrick Lamaiziere patf...@davenulle.org 
 wrote:
  We need a kernel module to see some pdf with acrobat now?
 
 I was thinking exactly the same (without further investigation).
 Luckily xpdf and gv, as well as Gnome's and KDE's PDF viewer
 don't need kernel modules. :-)

Which is exactly the way i've headed. It's just not worth the hassle.
___
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


acroread9 - kernel module load error

2011-06-02 Thread Jamie Paul Griffin
Hello

Installed this port but the kernel won't load and produces the following
error:

think# /usr/local/etc/rc.d/linux_adobe start
kldload: can't load /usr/local/libexec/linux_adobe/linux_adobe.ko: Exec
format error
/usr/local/etc/rc.d/linux_adobe: WARNING: Unable to load kernel module
/usr/local/libexec/linux_adobe/linux_adobe.ko


Has anyone else experienced this? Does anyone have any suggestions to
fix it?

best wishes
jamie
___
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


acroread9 - kernel module load error

2011-06-02 Thread Robert Huff

Jamie Paul Griffin writes:

  Installed this port but the kernel won't load and produces the following
  error:
  
  think# /usr/local/etc/rc.d/linux_adobe start
  kldload: can't load /usr/local/libexec/linux_adobe/linux_adobe.ko: Exec
  format error
  /usr/local/etc/rc.d/linux_adobe: WARNING: Unable to load kernel module
  /usr/local/libexec/linux_adobe/linux_adobe.ko
  
  Has anyone else experienced this? Does anyone have any suggestions to
  fix it?

It means your kernel and kernel sources are not in sync.
The solution is to (re-)build the kernel and program using the
same source tree.


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: acroread9 - kernel module load error

2011-06-02 Thread Jamie Paul Griffin
On Thu, Jun 02, 2011 at 08:23:22AM -0400, Robert Huff wrote:
 
 Jamie Paul Griffin writes:
 
   Installed this port but the kernel won't load and produces the following
   error:
   
   think# /usr/local/etc/rc.d/linux_adobe start
   kldload: can't load /usr/local/libexec/linux_adobe/linux_adobe.ko: Exec
   format error
   /usr/local/etc/rc.d/linux_adobe: WARNING: Unable to load kernel module
   /usr/local/libexec/linux_adobe/linux_adobe.ko
   
   Has anyone else experienced this? Does anyone have any suggestions to
   fix it?
 
   It means your kernel and kernel sources are not in sync.
   The solution is to (re-)build the kernel and program using the
 same source tree.

ok, thanks for the info. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: acroread9 - kernel module load error

2011-06-02 Thread Jamie Paul Griffin
On Thu, Jun 02, 2011 at 08:23:22AM -0400, Robert Huff wrote:
 
 Jamie Paul Griffin writes:
 
   Installed this port but the kernel won't load and produces the following
   error:
   
   think# /usr/local/etc/rc.d/linux_adobe start
   kldload: can't load /usr/local/libexec/linux_adobe/linux_adobe.ko: Exec
   format error
   /usr/local/etc/rc.d/linux_adobe: WARNING: Unable to load kernel module
   /usr/local/libexec/linux_adobe/linux_adobe.ko
   
   Has anyone else experienced this? Does anyone have any suggestions to
   fix it?
 
   It means your kernel and kernel sources are not in sync.
   The solution is to (re-)build the kernel and program using the
 same source tree.

ok, i've just been through make buildworld, etc. and rebuilt the port
but still the same problem?
___
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: acroread9 - kernel module load error

2011-06-02 Thread Polytropon
On Thu, 2 Jun 2011 23:43:51 +0200, Patrick Lamaiziere patf...@davenulle.org 
wrote:
 We need a kernel module to see some pdf with acrobat now?

I was thinking exactly the same (without further investigation).
Luckily xpdf and gv, as well as Gnome's and KDE's PDF viewer
don't need kernel modules. :-)



-- 
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: acroread9 - kernel module load error

2011-06-02 Thread perryh
Polytropon free...@edvax.de wrote:
 On Thu, 2 Jun 2011 23:43:51 +0200, Patrick Lamaiziere patf...@davenulle.org 
 wrote:
  We need a kernel module to see some pdf with acrobat now?

 I was thinking exactly the same (without further investigation).

I suspect it's because FreeBSD uses Linux Acroread, so we need the
Linuxulator, plus (I suppose) an additional API or 3.
___
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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-26 Thread Paul B Mahol
On Tue, Jan 25, 2011 at 7:28 PM, Yuri y...@rawbw.com wrote:

 Does reverting:

 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h

 fixed problem?


 Hi Paul,

 So did the find that this particular checkin caused the problem led to some
 resolution? Is it fixed now in 8.X or 9.X?

Should be fixed in 9.0 aka CURRENT and I hope in 8.2 (PRE)RELEASE.
___
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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-25 Thread Yuri



Does reverting:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h

fixed problem?
   


Hi Paul,

So did the find that this particular checkin caused the problem led to 
some resolution? Is it fixed now in 8.X or 9.X?


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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-18 Thread Paul B Mahol
On Mon, Jan 17, 2011 at 5:12 PM, Yuri y...@rawbw.com wrote:

 Do you load ndis and if_ndis via loader.conf too?


 Yes, presense of if_ndis and ndis in loader.conf doesn't change anything.

Does reverting:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h

fixed problem?
___
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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-18 Thread Yuri

On 01/18/2011 06:23, Paul B Mahol wrote:

Does reverting:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h

fixed problem?
   


Yes it does fix the problem.

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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-17 Thread Yuri



Do you load ndis and if_ndis via loader.conf too?
   


Yes, presense of if_ndis and ndis in loader.conf doesn't change anything.

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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-15 Thread Paul B Mahol
On Sat, Jan 15, 2011 at 1:19 AM, Yuri y...@rawbw.com wrote:
 I have the old module that always worked.
 Begining from some update (~8.1-STABLE), it stopped loading at boot time
 with the messages:
 ...skipped...
 module ndis already present
 KLD file bcmwl5_sys.ko is missing dependencies
 ...skipped...

 /boot/loader.conf has this line that is supposed to, and was loading the
 module:
 bcmwl5_sys_load=YES

 Rebuilding the driver from Windows version with the current ndisgen doesn't
 change anything.
 Loading this module by hand (kldload) after system boots succeeds and it
 runs fine. Although it also says: module ndis already present

 Why it fails to load at boot?

Do you load ndis and if_ndis via loader.conf too?
___
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


ndis-based network driver fails to load at boot (8.2-PRERELEASE)

2011-01-14 Thread Yuri

I have the old module that always worked.
Begining from some update (~8.1-STABLE), it stopped loading at boot time 
with the messages:

...skipped...
module ndis already present
KLD file bcmwl5_sys.ko is missing dependencies
...skipped...

/boot/loader.conf has this line that is supposed to, and was loading the 
module:

bcmwl5_sys_load=YES

Rebuilding the driver from Windows version with the current ndisgen 
doesn't change anything.
Loading this module by hand (kldload) after system boots succeeds and it 
runs fine. Although it also says: module ndis already present


Why it fails to load at boot?

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: load windows

2010-12-31 Thread Leslie Jensen



On 2010-12-31 05:09, Polytropon wrote:

On Fri, 31 Dec 2010 11:39:45 +0800, xinyou yanyxy@gmail.com  wrote:

Help:  I installed 8.2 today ,
I think  I have forgot  installed boot loader manager .
When I was finished  and reboot . The system just has bsd loader

I  can  use F2 load windows previous
Any one who know how to load linux also help  . (I have a  linux in system
the loader was installed on its /boot not mbr
)

So how can i do now!


According to your description, you want to boot into one
out of three systems (FreeBSD, a Linux, a Windows). In
this case, you should be able to run the Linux distribution
you have from a live file system CD or DVD and restore its
boot manager, LILO or GRUB. This boot manager should then
deal with the OS selection for boot.

Of course, you can also restart the FreeBSD installation
and choose its boot manager to be installed. I think you
should be able to do this through the running FreeBSD
system, maybe using the sysinstall program. The FreeBSD
boot manager would then show the operating systems' names
in its choice list.

As I am not a multi-booter, I'm not fully sure if this
will work as intended. Usually I do just install FreeBSD's
loader as there is nothing else to load. :-)


I would suggest you use a Live CD (Partition Magic) and set the Windows 
partition active. You will then boot into Windows and I would then 
recommend that you install the EasyBCD bootloader and ad your BSD 
installation to it.



http://neosmart.net/dl.php?id=1

You can find instructions in bsdmag on how to set it up.

http://bsdmag.org/app/files/download?attachment=attachment1model=Articlemodel_id=9300portal_id=134

Or

http://bsdmag.org/pdf-articles

And choose

Download Free Issue: FreeBSD Ins  Outs

/Leslie
___
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: load windows

2010-12-31 Thread Bruce Cran
On Fri, 31 Dec 2010 14:04:59 +0100
Leslie Jensen les...@eskk.nu wrote:

 I would suggest you use a Live CD (Partition Magic) and set the
 Windows partition active. You will then boot into Windows and I would
 then recommend that you install the EasyBCD bootloader and ad your
 BSD installation to it.

EasyBCD seems by far the best method as long as you're using Vista or
newer (BCD doesn't exist on XP). However you don't need to boot from a
LiveCD. From within FreeBSD:

gpart set -a active -i index_of_partition devname

should work where you can get index_of_partition from gpart show
and devname will be the name of the disk, for example ad0.

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


load windows

2010-12-30 Thread xinyou yan
Help:  I installed 8.2 today ,
I think  I have forgot  installed boot loader manager .
When I was finished  and reboot . The system just has bsd loader

I  can  use F2 load windows previous
Any one who know how to load linux also help  . (I have a  linux in system
the loader was installed on its /boot not mbr
)

So how can i do now!
___
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: load windows

2010-12-30 Thread Polytropon
On Fri, 31 Dec 2010 11:39:45 +0800, xinyou yan yxy@gmail.com wrote:
 Help:  I installed 8.2 today ,
 I think  I have forgot  installed boot loader manager .
 When I was finished  and reboot . The system just has bsd loader
 
 I  can  use F2 load windows previous
 Any one who know how to load linux also help  . (I have a  linux in system
 the loader was installed on its /boot not mbr
 )
 
 So how can i do now!

According to your description, you want to boot into one
out of three systems (FreeBSD, a Linux, a Windows). In
this case, you should be able to run the Linux distribution
you have from a live file system CD or DVD and restore its
boot manager, LILO or GRUB. This boot manager should then
deal with the OS selection for boot.

Of course, you can also restart the FreeBSD installation
and choose its boot manager to be installed. I think you
should be able to do this through the running FreeBSD
system, maybe using the sysinstall program. The FreeBSD
boot manager would then show the operating systems' names
in its choice list.

As I am not a multi-booter, I'm not fully sure if this
will work as intended. Usually I do just install FreeBSD's
loader as there is nothing else to load. :-)


-- 
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 load fluxbox themes

2010-10-15 Thread Michael D. Norwick

Good day;

How does one load a downloaded fluxbox theme?  I have unpacked a nice 
vermaden authored theme into

.fluxbox/flux-themes but that is where I am stuck.

fluxbox ver. 1.1.1 from ports

What goes in the .fluxbox/styles directory?

T.I.A.

Michael
___
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 load fluxbox themes

2010-10-15 Thread Frank Shute
On Fri, Oct 15, 2010 at 01:17:54PM -0500, Michael D. Norwick wrote:

 Good day;
 
 How does one load a downloaded fluxbox theme?  I have unpacked a nice 
 vermaden authored theme into
 .fluxbox/flux-themes but that is where I am stuck.
 
 fluxbox ver. 1.1.1 from ports
 
 What goes in the .fluxbox/styles directory?
 
 T.I.A.
 

[fr...@orange:frank/.fluxbox]
$ ls -F
apps   fbrun_history  keys-dis   menu~  startup
backgrounds/   init   keys~  overlaystyles/
fbpagerinit~  lastwallpaper  pixmaps/   windowmenu
fbpager~   keys   menu   slitlist
[fr...@orange:frank/.fluxbox]
$ ls -F styles
blackwood/  blue_curve/ cherry/ skulls/
[fr...@orange:frank/.fluxbox]
$ ls -F styles/cherry
theme.cfg   theme.cfg~
[fr...@orange:frank/.fluxbox]
$ ls -F backgrounds/
cherry.png curves.jpg skulls.jpg wood1280x1024.jpg
[fr...@orange:frank/.fluxbox]
$ 

The above gives you an idea if where everything belongs.

theme.cfg has a line calling the background. E.g:

background: fullscreen
background.pixmap:  ~/.fluxbox/backgrounds/cherry.png


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 load fluxbox themes

2010-10-15 Thread Michael D. Norwick

Frank Shute wrote:

On Fri, Oct 15, 2010 at 01:17:54PM -0500, Michael D. Norwick wrote:
  

Good day;

How does one load a downloaded fluxbox theme?  I have unpacked a nice 
vermaden authored theme into

.fluxbox/flux-themes but that is where I am stuck.

fluxbox ver. 1.1.1 from ports

What goes in the .fluxbox/styles directory?

T.I.A.




[fr...@orange:frank/.fluxbox]
$ ls -F
apps   fbrun_history  keys-dis   menu~  startup
backgrounds/   init   keys~  overlaystyles/
fbpagerinit~  lastwallpaper  pixmaps/   windowmenu
fbpager~   keys   menu   slitlist
[fr...@orange:frank/.fluxbox]
$ ls -F styles
blackwood/  blue_curve/ cherry/ skulls/
[fr...@orange:frank/.fluxbox]
$ ls -F styles/cherry
theme.cfg   theme.cfg~
[fr...@orange:frank/.fluxbox]
$ ls -F backgrounds/
cherry.png curves.jpg skulls.jpg wood1280x1024.jpg
[fr...@orange:frank/.fluxbox]
$ 


The above gives you an idea if where everything belongs.

theme.cfg has a line calling the background. E.g:

background: fullscreen
background.pixmap:  ~/.fluxbox/backgrounds/cherry.png


Regards,

  
Again, Thank You, for your kind response.  I was hoping for a more 
lightweight desktop environment compared to KDE4.  Yet, with reduced 
overhead comes more manual configuration.


Michael
___
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: Captcha image does not load

2010-10-08 Thread Jack L. Stone
At 02:17 PM 10.7.2010 -0400, Michael Powell wrote:
Jack L. Stone wrote:

 Folks:
 
 Please bear with me on this one. Am using FBSD-7.0p9 and PHP52.
 
 Have been using a Captcha protection against robots for a download section
 of the server. It worked just fine since installed for a couple of years,
 even with prior versions of PHP5. However, the captcha suddenly stopped
 loading the initial image and required multiple clicks (variable times at
 that) to get it to load an image that could be used by the customer. Just
 shows the little x as broken link to image. Nothing tried has solved the
 issue. Had to add text telling people to keep clicking if an image is not
 seen.
 
 Anyone seen this and have any suggestions on how to fix other than finding
 a different captcha script?.
 
 I was having a similar problem and it involved php52-gd not working. I 
moved the following two lines to the end of my php.ini and it started 
working. I think it was having pdf.so load afterward is what did it.

extension=gd.so
extension=pdf.so


-Mike


Mike:

Thank you so much! Apparently solved the problem for me too.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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


Captcha image does not load

2010-10-07 Thread Jack L. Stone
Folks:

Please bear with me on this one. Am using FBSD-7.0p9 and PHP52.

Have been using a Captcha protection against robots for a download section
of the server. It worked just fine since installed for a couple of years,
even with prior versions of PHP5. However, the captcha suddenly stopped
loading the initial image and required multiple clicks (variable times at
that) to get it to load an image that could be used by the customer. Just
shows the little x as broken link to image. Nothing tried has solved the
issue. Had to add text telling people to keep clicking if an image is not
seen.

Anyone seen this and have any suggestions on how to fix other than finding
a different captcha script?.

Help appreciated.

All the best,
Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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: Captcha image does not load

2010-10-07 Thread Michael Powell
Jack L. Stone wrote:

 Folks:
 
 Please bear with me on this one. Am using FBSD-7.0p9 and PHP52.
 
 Have been using a Captcha protection against robots for a download section
 of the server. It worked just fine since installed for a couple of years,
 even with prior versions of PHP5. However, the captcha suddenly stopped
 loading the initial image and required multiple clicks (variable times at
 that) to get it to load an image that could be used by the customer. Just
 shows the little x as broken link to image. Nothing tried has solved the
 issue. Had to add text telling people to keep clicking if an image is not
 seen.
 
 Anyone seen this and have any suggestions on how to fix other than finding
 a different captcha script?.
 
 I was having a similar problem and it involved php52-gd not working. I 
moved the following two lines to the end of my php.ini and it started 
working. I think it was having pdf.so load afterward is what did it.

extension=gd.so
extension=pdf.so


-Mike


___
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 load broken in 8.1 memstick

2010-09-06 Thread perryh
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 If you've been able to run 'gmirror label' then geom_mirror.ko is
 almost certainly already loaded into your kernel, making 'gmirror
 load' superfluous.  Check using kldstat(8).

Fixit# kldstat
Id Refs AddressSize Name
 11 0xc040 bb5504   kernel

It looks as if writing the metadata doesn't require geom_mirror.ko
to be loaded -- which makes a certain amount of sense since the
module, even if loaded, presumably shouldn't do anything to a
partition that doesn't already have metadata in its last sector.

The good news is that, now having an idea what to look for, I checked
for geom_mirror.ko in /boot/kernel and found -- surprise! -- the
/boot/kernel directory doesn't even exist in the Fixit FS (when
booted from the USB stick, dunno about the CD or DVD) and this is
apparently the cause of gmirror load reporting Command 'load' not
available.  The fix is:

Fixit# ln -s /dist/boot/kernel /boot

after which gmirror load works, creating /dev/mirror/gm0{,a,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


More gmirror problems (Re: gmirror load broken in 8.1 memstick)

2010-09-06 Thread perryh
I wrote:

 The good news is ...

 Fixit# ln -s /dist/boot/kernel /boot

 after which gmirror load works, creating /dev/mirror/gm0{,a,b}.

and the bad news is that it still doesn't work:

* gmirror load did create /dev/mirror/gm0{,a,b}, and it produced
  no output on stdout or stderr, but it appended a couple of lines
  to dmesg and the second does not look at all promising:

  GEOM_MIRROR: Device mirror/gm0 launched (1/1).
  GEOM_MIRROR: Cannot add disk ad0s2a to gm0 (error=17).

  17 is defined in sys/errno.h as EEXIST /* File exists */

  What can this mean?  Of course ad0s2a and gm0 exist:  ad0s2a is
  the (so far only) provider for gm0, which was just instantiated.

  By a different test, that error message may be bogus (long lines
  reformatted):

  Fixit# ls -la /dev/mirror
  total 1
  dr-xr-xr-x  2 root  0  512 Sep  6 08:18 ./
  dr-xr-xr-x  8 root  0  512 Sep  6 08:08 ../
  crw-r-  1 root  operator0,  78 Sep  6 08:15 gm0
  crw-r-  1 root  operator0,  79 Sep  6 08:15 gm0a
  crw-r-  1 root  operator0,  80 Sep  6 08:15 gm0b

  Fixit# file -s /dev/mirror/* /dev/ad0s2a

  /dev/mirror/gm0:  Unix Fast File system [v2] (little-endian) last
  mounted on /mnt/z, last written at Sun Sep  5 03:24:40 2010, clean
  flag 1, readonly flag 0, number of blocks 154976879, number of
  data blocks 150098746, number of cylinder groups 1648, block size
  16384, fragment size 2048, average file size 16384, average number
  of files in dir 64, pending blocks to free 0, pending inodes to
  free 0, system-wide uuid 0, minimum percentage of free blocks 8,
  TIME optimization

  /dev/mirror/gm0a: Unix Fast File system [v2] (little-endian) last
  mounted on /mnt/z, last written at Sun Sep  5 03:24:40 2010, clean
  flag 1, readonly flag 0, number of blocks 154976879, number of
  data blocks 150098746, number of cylinder groups 1648, block size
  16384, fragment size 2048, average file size 16384, average number
  of files in dir 64, pending blocks to free 0, pending inodes to
  free 0, system-wide uuid 0, minimum percentage of free blocks 8,
  TIME optimization

  /dev/mirror/gm0b: ERROR: cannot read `/dev/mirror/gm0b'
  (Input/Output error)

  /dev/ad0s2a:  Unix Fast File system [v2] (little-endian) last
  mounted on /mnt/z, last written at Sun Sep  5 03:24:40 2010, clean
  flag 1, readonly flag 0, number of blocks 154976879, number of
  data blocks 150098746, number of cylinder groups 1648, block size
  16384, fragment size 2048, average file size 16384, average number
  of files in dir 64, pending blocks to free 0, pending inodes to
  free 0, system-wide uuid 0, minimum percentage of free blocks 8,
  TIME optimization

  This sure _looks_ as if mirror/gm0 and mirror/gm0a are seeing the
  data on ad0s2a, so maybe it's working after all.  But:

* After exiting from Fixit, and having sysinstall rescan devices so
  as to become aware of /dev/mirror/gm0*, gm0 is not in the disk
  list for either Partition (slice) or Label.  I even tried:

  Fixit# ( cd /dev  ln -s mirror/* .  ll gm* )
  lrwxr-xr-x  1 root  0  10 Sep  6 10:48 gm0@ - mirror/gm0
  lrwxr-xr-x  1 root  0  10 Sep  6 10:48 gm0a@ - mirror/gm0a
  lrwxr-xr-x  1 root  0  10 Sep  6 10:48 gm0b@ - mirror/gm0b

  in case sysinstall looks only in /dev itself and not in any
  subdirectories, and gm0 is *still* not in either list.  How
  do I get sysinstall to see it?
___
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 load broken in 8.1 memstick

2010-09-05 Thread Matthew Seaman
On 05/09/2010 05:14:02, per...@pluto.rain.com wrote:
 Fixit# gmirror label -vb round-robin gm0 /dev/ad0s2a
 
 appeared to work properly.  (I didn't write down the exact
 message, but it said something about the metadata having
 been written successfully.)  However:
 
 Fixit# gmirror load
 gmirror: Command 'load' not available.
 
 and it did not create /dev/mirror/gm0 or even the /dev/mirror
 directory.
 
 How do I fix this?

If you've been able to run 'gmirror label' then geom_mirror.ko is almost
certainly already loaded into your kernel, making 'gmirror load'
superfluous.  Check using kldstat(8).

The actual problem is getting /dev to update itself and show gmirror
related filesystems.  First of all, is /dev a mounted devfs filesystem?
  If it is, does playing with devfs(8) yield any enlightenment?

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


pyglet font load segmentation fault

2010-09-05 Thread Giuseppe Pagnoni
Dear all,

I posted about this problem a few months ago and have been scouring
the web ever since but I cannot find the slightest hint at a solution.
 Actually, it seems that nobody else has reported a similar problem,
which I find really weird since the function is such a basic one in
pyglet -- quoting Zoolander, I feel like I am taking crazy pills!

The problem is that I cannot use the pyglet.font.load() function at
all without causing a segmentation fault:

python
import pyglet
arial = pyglet.font.load('Arial')
Segmentation fault

My system is running FreeBSD 8.1/amd64 with an Nvidia GeForce 9500GT
and the latest driver from Nvidia (256.53), and with all the ports
up-to-date as of today.

python26-2.6.5_1 was compiled with standard options:

WITH_THREADS=true
WITHOUT_HUGE_STACK_SIZE=true
WITHOUT_SEM=true
WITHOUT_PTH=true
WITH_UCS4=true
WITH_PYMALLOC=true
WITH_IPV6=true
WITHOUT_FPECTL=true

Any help would be tremendously appreciated,

thanks in advance

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


gmirror load broken in 8.1 memstick

2010-09-04 Thread perryh
Fixit# gmirror label -vb round-robin gm0 /dev/ad0s2a

appeared to work properly.  (I didn't write down the exact
message, but it said something about the metadata having
been written successfully.)  However:

Fixit# gmirror load
gmirror: Command 'load' not available.

and it did not create /dev/mirror/gm0 or even the /dev/mirror
directory.

How do I fix this?
___
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


xsltproc: failed to load external entity

2010-06-09 Thread A. Wright


Is anyone else experiencing a rash of docbook-related build
issues centering around xsltproc accessing remote XML files?


Currently while building polkit (recursively from a build of emacs), I get
the error:

gmake[3]: Entering directory 
`/usr/ports/sysutils/polkit/work/polkit-0.96/docs/man'
/usr/local/bin/xsltproc -nonet --stringparam 
man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ 
--xinclude 
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl 
polkit.xml
warning: failed to load external entity 
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl;
cannot parse 
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
gmake[3]: *** [polkit.8] Error 4


I'm not a common user of xsltproc, but the combination of an argument
beginning http://; along with the option -nonet (described as Do not
use the Internet to fetch DTDs, entities or documents on the man page)
seems rather fishy to me.  Can this combination ever work?

Has anyone else seen this?  Does anyone have a suggestion for a fix?

Thanks,
Andrew.

___
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: xsltproc: failed to load external entity

2010-06-09 Thread Eitan Adler

 I'm not a common user of xsltproc, but the combination of an argument
 beginning http://; along with the option -nonet (described as Do not
 use the Internet to fetch DTDs, entities or documents on the man page)
 seems rather fishy to me.  Can this combination ever work?

 Has anyone else seen this?  Does anyone have a suggestion for a fix?

Install with NO_INSTALL_MANPAGES and the problem will go away.
I think it comes from a configuration option for docbook.

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


Re: [#24529544] Re: Network sort of stops working with the em (intel) driver under load.

2010-06-01 Thread mark rowlands
 Ticket subject: Re: Network sort of stops working with the em (intel) driver 
 under  load.
 Ticket number: 24529544
 Ticket link: https://secure.mpcustomer.com/ticket.php?ticket=24529544
 Ticket body: On Mon, May 31, 2010 at 9:30 PM, mark rowlands 
 rowlands.m...@gmail.com wrote:
 Newly built and cvsupped system,with GENERIC kernel,  when copying
 large amounts of data over a gigabit link via scp  the network  will
 hang after a couple of gig.  I can then no longer login via ssh. If I
 leave it be, after about 12-24 hours I can then login again. (A reboot
 of course fixes the issue immediately...) .

 snip...

 I can now confirm that a similar copy to the vr card does not cause
 the same problem... so it would appear
 more likely that it might be an em related problem.

and after replacing the em0 with a realtek gigabit card, the problem
also does not occur. (the vr0 was only 100mb)
So it would seem there is something hinky with at least the em (82540) card .
___
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: [#24529544] Re: Network sort of stops working with the em (intel) driver under load.

2010-06-01 Thread Carl Chave
On Tue, Jun 1, 2010 at 3:34 PM, mark rowlands rowlands.m...@gmail.com wrote:
 Ticket subject: Re: Network sort of stops working with the em (intel) driver 
 under  load.
 Ticket number: 24529544
 Ticket link: https://secure.mpcustomer.com/ticket.php?ticket=24529544
 Ticket body: On Mon, May 31, 2010 at 9:30 PM, mark rowlands 
 rowlands.m...@gmail.com wrote:
 Newly built and cvsupped system,with GENERIC kernel,  when copying
 large amounts of data over a gigabit link via scp  the network  will
 hang after a couple of gig.  I can then no longer login via ssh. If I
 leave it be, after about 12-24 hours I can then login again. (A reboot
 of course fixes the issue immediately...) .

 snip...

 I can now confirm that a similar copy to the vr card does not cause
 the same problem... so it would appear
 more likely that it might be an em related problem.

 and after replacing the em0 with a realtek gigabit card, the problem
 also does not occur. (the vr0 was only 100mb)
 So it would seem there is something hinky with at least the em (82540) card .
 ___
 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: Network sort of stops working with the em (intel) driver under load.

2010-06-01 Thread Carl Chave
On Mon, May 31, 2010 at 3:30 PM, mark rowlands rowlands.m...@gmail.com wrote:
 Newly built and cvsupped system,with GENERIC kernel,  when copying
 large amounts of data over a gigabit link via scp  the network  will
 hang after a couple of gig.  I can then no longer login via ssh. If I
 leave it be, after about 12-24 hours I can then login again. (A reboot
 of course fixes the issue immediately...) .

I've had this behavior also with Intel Pro 1000 cards using the em
driver.  I picked up a lot of 4 of them off ebay and never figured out
if it was a driver problem or faulty hardware.  I went back to FreeNAS
on that same box (7.2-RELEASE-p4) and it seems ok except my Netgear
gigabit switch also died so I'm currently plugged into a 100Mbps
switch.
___
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


Network sort of stops working with the em (intel) driver under load.

2010-05-31 Thread mark rowlands
Newly built and cvsupped system,with GENERIC kernel,  when copying
large amounts of data over a gigabit link via scp  the network  will
hang after a couple of gig.  I can then no longer login via ssh. If I
leave it be, after about 12-24 hours I can then login again. (A reboot
of course fixes the issue immediately...) .

The system is very vanilla, only accf_http in loader.conf. No sysctl
tuning done, no firewall hankypanky.

pciconf -lv | grep -A4 ^em
e...@pci0:3:4:0: class=0x02 card=0x001e8086 chip=0x100e8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = 'Gigabit Ethernet Controller (82540EM)'
class  = network
subclass   = ethernet

em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 port
0xec00-0xec3f mem 0xfeae-0xfeaf,0xff irq 17 at device 4.0 on
pci3

Suggestions as to where I could look for more information as to the
precise nature of the problem gratefully received.  Current plan is to
purchase another variety of gigabit card to see if it is specific to
the intel card.

Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-PRERELEASE #0: Sun May 30 10:00:58 CEST 2010
r...@temp.mwrwin2k.se:/usr/obj/usr/src/sys/MARK2 i386
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3391.53-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf34  Family = f  Model = 3  Stepping = 4
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x441dSSE3,DTES64,MON,DS_CPL,CNXT-ID,xTPR
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2090823680 (1993 MB)
ACPI APIC Table: A M I  OEMAPIC 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP/HT): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic1: Changing APIC ID to 3
ioapic0 Version 0.3 irqs 0-23 on motherboard
ioapic1 Version 0.3 irqs 24-47 on motherboard
kbd1 at kbdmux0
acpi0: A M I OEMRSDT on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of fec0, 1000 (3) failed
acpi0: reservation of fee0, 1000 (3) failed
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, 7ff0 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: VGA-compatible display port 0xd000-0xd0ff mem
0xc000-0xcfff,0xfe9e-0xfe9e irq 16 at device 0.0 on
pci1
vgapci1: VGA-compatible display mem
0xd000-0xdfff,0xfe9f-0xfe9f at device 0.1 on pci1
pcib2: ACPI PCI-PCI bridge irq 27 at device 2.0 on pci0
pci2: ACPI PCI bus on pcib2
atapci0: VIA 8237 SATA300 controller port
0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f,0xc000-0xc0ff
irq 21 at device 15.0 on pci0
atapci0: [ITHREAD]
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
atapci1: VIA 8237 UDMA133 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on
pci0
ata0: ATA channel 0 on atapci1
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci1
ata1: [ITHREAD]
uhci0: VIA 83C572 USB controller port 0xb480-0xb49f irq 20 at device
16.0 on pci0
uhci0: [ITHREAD]
usbus0: VIA 83C572 USB controller on uhci0
uhci1: VIA 83C572 USB controller port 0xb800-0xb81f irq 22 at device
16.1 on pci0
uhci1: [ITHREAD]
usbus1: VIA 83C572 USB controller on uhci1
uhci2: VIA 83C572 USB controller port 0xb880-0xb89f irq 21 at device
16.2 on pci0
uhci2: [ITHREAD]
usbus2: VIA 83C572 USB controller on uhci2
uhci3: VIA 83C572 USB controller port 0xbc00-0xbc1f irq 23 at device
16.3 on pci0
uhci3: [ITHREAD]
usbus3: VIA 83C572 USB controller on uhci3
ehci0: VIA VT6202 USB 2.0 controller mem 0xfe8ffc00-0xfe8ffcff irq
21 at device 16.4 on pci0
ehci0: [ITHREAD]
usbus4: EHCI version 1.0
usbus4: VIA VT6202 USB 2.0 controller on ehci0
isab0: PCI-ISA bridge at device 17.0 on pci0
isa0: ISA bus on isab0
vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xb000-0xb0ff mem
0xfe8ff800-0xfe8ff8ff irq 23 at device 18.0 on pci0
vr0: Quirks: 0x0
vr0: Revision: 0x7c
miibus0: MII bus on vr0
ukphy0: Generic IEEE 802.3u media interface PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:19:66:92:a0:3f
vr0: [ITHREAD]
pcib3: ACPI PCI-PCI bridge at device 19.1 on pci0
pci3: ACPI PCI bus on pcib3
em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 port
0xec00-0xec3f mem 

Re: Network sort of stops working with the em (intel) driver under load.

2010-05-31 Thread Michael Powell
mark rowlands wrote:

 Newly built and cvsupped system,with GENERIC kernel,  when copying
 large amounts of data over a gigabit link via scp  the network  will
 hang after a couple of gig.  I can then no longer login via ssh. If I
 leave it be, after about 12-24 hours I can then login again. (A reboot
 of course fixes the issue immediately...) .
 
 The system is very vanilla, only accf_http in loader.conf. No sysctl
 tuning done, no firewall hankypanky.
 
 pciconf -lv | grep -A4 ^em
 e...@pci0:3:4:0: class=0x02 card=0x001e8086 chip=0x100e8086 rev=0x02
 hdr=0x00
 vendor = 'Intel Corporation'
 device = 'Gigabit Ethernet Controller (82540EM)'
 class  = network
 subclass   = ethernet
 
 em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 port
 0xec00-0xec3f mem 0xfeae-0xfeaf,0xff irq 17 at device 4.0 on
 pci3
 
 Suggestions as to where I could look for more information as to the
 precise nature of the problem gratefully received.  Current plan is to
 purchase another variety of gigabit card to see if it is specific to
 the intel card.
 


If memory serves, I think there may have been some traffic about something 
like this on the -CURRENT list. You might look/search there and see if it 
sounds similar. If it seems like it might be the same thing, look for an MFC 
back to -STABLE. Sometimes the fix for very a specific item which has been 
addressed is to take a system to -STABLE in order to obtain the fixed bits.

Research and confirm first, before considering such an update. My policy on 
-STABLE in the past is I only think about going there for a very narrow and 
specific situation where I know I have a problem that the devs have seen, 
analyzed, and fixed, with subsequent MFC.

Something else too - if you can disable the vr and the USB chips completely, 
it might provide a data point. IRQ sharing is supposed to work well, and it 
is something that may be eliminated from the scenario easily if you do not 
need these things.

-Mike
 


___
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: Network sort of stops working with the em (intel) driver under load.

2010-05-31 Thread mark rowlands
On Mon, May 31, 2010 at 9:30 PM, mark rowlands rowlands.m...@gmail.com wrote:
 Newly built and cvsupped system,with GENERIC kernel,  when copying
 large amounts of data over a gigabit link via scp  the network  will
 hang after a couple of gig.  I can then no longer login via ssh. If I
 leave it be, after about 12-24 hours I can then login again. (A reboot
 of course fixes the issue immediately...) .

snip...

I can now confirm that a similar copy to the vr card does not cause
the same problem... so it would appear
more likely that it might be an em related problem.
___
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


ports/144403: graphics/php5-gd does not load libpng

2010-04-16 Thread Антон Клесс
Does it solved in PHP 5.3.x only?

Unfortunately 5.3 and 5.2 code are not fully compatible, PHP-based software
(like CMS and BBs) updates slowly, and most of webmasters couldn't migrate
to 5.3 just in moment.

Would it be fixed for 5.2.x? Or the only way to get gd work with PHP 5.2.x
is downgrading of *png* port?
___
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


Cannot load library /usr/local/kde4/lib/kde4/konq_aboutpage.so:

2010-03-29 Thread Antonio Olivares
Dear fellow FreeBSD users,

I have installed FreeBSD 8.0 and updated it to current p2

I try to use konqueror and I get

There was an error loading the module About-Page for Konqueror.
The diagnostics is:
Cannot load library /usr/local/kde4/lib/kde4/konq_aboutpage.so:
(Shared object libjpeg.so.10 not found, required by libkhtml.so.7)

I tried to install some ports and TeXLive from GoogleGroups page by
Romain, but apparently was unsuccessful.

I tried to install kile, and k3b and both not work because of error4
similar to the one konqueror gives.  As regular user I cannot launch
terminal, I have to run as root in the meantime, is there any way to
fix this?

I have run FreeBSD before, with the release prior to jumping on KDE
4.X bandwagon, but my hardrive went down and stopped using it.

Thanks for any advice given to fix these issues.

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


Is there a command to load all swap into the memory?

2010-02-23 Thread Yuri

I am asking out of curiosity.
'top' describes the memory state on my machine like this:
Mem: 1085M Active, 196M Inact, 301M Wired, 36M Cache, 112M Buf, 1366M Free
Swap: 16G Total, 757M Used, 16G Free, 4% Inuse

There is enough space in memory to load back all swap. Is there a 
command to do that for all swap?

This will speed up immediate system response in the future.

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: Is there a command to load all swap into the memory?

2010-02-23 Thread Bill Moran
In response to Yuri y...@rawbw.com:

 I am asking out of curiosity.
 'top' describes the memory state on my machine like this:
 Mem: 1085M Active, 196M Inact, 301M Wired, 36M Cache, 112M Buf, 1366M Free
 Swap: 16G Total, 757M Used, 16G Free, 4% Inuse
 
 There is enough space in memory to load back all swap. Is there a 
 command to do that for all swap?
 This will speed up immediate system response in the future.

You could use swapoff, then swapon to readd the device.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
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: Is there a command to load all swap into the memory?

2010-02-23 Thread John
On Tue, Feb 23, 2010 at 12:24:15PM -0800, Yuri wrote:
 I am asking out of curiosity.
 'top' describes the memory state on my machine like this:
 Mem: 1085M Active, 196M Inact, 301M Wired, 36M Cache, 112M Buf, 1366M Free
 Swap: 16G Total, 757M Used, 16G Free, 4% Inuse
 
 There is enough space in memory to load back all swap. Is there a 
 command to do that for all swap?
 This will speed up immediate system response in the future.

Well, you have assumed that the furture demand on the system will
involve the pages which are swapped out.  If that assumption is
false, bringing them back into memory now will dramatically slow
down system responsiveness in the future, because the scarce resoure
will be free memory pages, which was the reason they were swapped
out in the first place.  The reason that they are still out there
with a bunch of free memory is that nothing has referenced them
since they were written out - so maybe it will be a long time yet
(if ever) before many/some/all of them are referenced again?  If
the same situation occurs again which caused them to be swapped
out to begin with, before a situation occurs which references them,
you'll be hurting your future system response time, not helping
it.

You may know these things are so and will happen in that way, but
it is not self-evident from the e-mail.

 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

-- 

John Lind
j...@starfire.mn.org

The inherent vice of capitalism is the unequal sharing of blessings;
the inherent virtue of socialism is the equal sharing of miseries.
  - Winston Churchill
___
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: Is there a command to load all swap into the memory?

2010-02-23 Thread RW
On Tue, 23 Feb 2010 14:59:28 -0600
John j...@starfire.mn.org wrote:

 On Tue, Feb 23, 2010 at 12:24:15PM -0800, Yuri wrote:
  I am asking out of curiosity.
  'top' describes the memory state on my machine like this:
  Mem: 1085M Active, 196M Inact, 301M Wired, 36M Cache, 112M Buf,
  1366M Free Swap: 16G Total, 757M Used, 16G Free, 4% Inuse
  
  There is enough space in memory to load back all swap. Is there a 
  command to do that for all swap?
  This will speed up immediate system response in the future.
 
 Well, you have assumed that the furture demand on the system will
 involve the pages which are swapped out.  If that assumption is
 false, bringing them back into memory now will dramatically slow
 down system responsiveness in the future, because the scarce resoure
 will be free memory pages, which was the reason they were swapped
 out in the first place.  

And AFAIK pages that are read back into memory are retained in swap to
avoid haing to page them out again.
___
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


amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Hi

I have a problem installing / upgrading FreeBSD 8.0-release on a new machine.

The computers specs are:

cpu: AMD Phenom II X4
board: Gigabyte MA790GPT-UD3H
ram: 4x2GBytes DDR3/1333
hdd: 2xMaxtor STM31000528AS
nic: 4x Intel(R) PRO/1000

and I'm running 
FreeBSD phenom2.localnet 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 
15:02:08 UTC 2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  
amd64

During 'make buildworld' the machine regulary crashes with the following 
panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual adress= 0x8
fault code  = supervisor write data, page not 
present
instruction pointer = 0x20:0x80578591
stack pointer   = 0x28:0xff80eab94700
frame pointer   = 0x28:0xff80eab94720
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume IOPL = 0
current process = 22039 (uudecode)
trap number = 12
panic: pagefault
cpuid = 0
Uptime: 2h35m4s
Physical memory: 8176 MB
Dumping 2195 MB: 2180 2164 2148 2132 2116


or this one, its from last night and the machine wrote a minidump before 
locking up:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x8
fault code  = supervisor write data, page not 
present
instruction pointer = 0x20:0x80578591
stack pointer   = 0x28:0xff80eab21500
frame pointer   = 0x28:0xff80eab21520
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 5238 (objcopy)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1h15m45s
Physical memory: 8176 MB
Dumping 2148 MB: 2133 2117 2101 2085 2069 2053 2037 2021 2005 1989 1973 1957 
1941 1925 1909 1893 1877 1861 1845 1829 1813 1797 1781 1765 1749 1733 1717 
1701 1685 1669 1653 1637 1621 1605 1589 1573 1557 1541 1525 1509 1493 1477 
1461 1445 1429 1413 1397 1381 1365 1349 1333 1317 1301 1285 1269 1253 1237 
1221 1205 1189 1173 1157 1141 1125 1109 1093 1077 1061 1045 1029 1013 997 981 
965 949 933 917 901 885 869 853 837 821 805 789 773 757 741 725 709 693 677 
661 645 629 613 597 581 565 549 533 517 501 485 469 453 437 421 405 389 373 
357 341 325 309 293 277 261 245 229 213 197 181 165 149 133 117 101 85 69 53 
37 21 5


While the 'current process' is a different one at any crash, 'Fatal trap 12' 
and 'supervisor write data, page not present' are always the same, just as the 
instruction pointer 0x80578591 and virtual address.  

The most times, the kernel hangs completly so I have to hard reset the machine 
to get it responding again. About once in every ten crashs it is able to write 
a dump before rebooting or locking up. I have no knowledge in debugging the 
kernel (or debugging anything else) so I tried what I found in the handbook. 
This resulted in the following:

kgdb kernel.debug /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as amd64-marcel-freebsd...
Cannot access memory at address 0x400
(kgdb) list *0x80578591
0x80578591 is in lf_advlockasync (/usr/src/sys/kern/kern_lockf.c:604).
599 LIST_INIT(ls-ls_active);
600 LIST_INIT(ls-ls_pending);
601 ls-ls_threads = 1;
602
603 sx_xlock(lf_lock_states_lock);
604 LIST_INSERT_HEAD(lf_lock_states, ls, ls_link);
605 sx_xunlock(lf_lock_states_lock);
606
607 /*
608  * Cope if we lost a race with some other thread while
(kgdb) backtrace
#0  0x in ?? ()
Cannot access memory at address 0x0


So here are my questions:
1. Are there any known caveats or quirks regarding my hardware?
2. What can I do to further investigate this issue
3. Not fully on topic but might be related: The buildsystem recognizes my cpu 
as 686 class cpu wich is wrong. Are there any switches I can set in 
make.conf to have 'make' use the correct values? Currently I'm using a blank 
make.conf, meaning it is not present (as it is by default on a fresh installed 
system).

If you need any more Information, I would be happy to provide it

best regards,
Sven

--
00
--
00

Re: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread Michael Powell
ms80 wrote:

 Hi
 
 I have a problem installing / upgrading FreeBSD 8.0-release on a new
 machine.
 
 The computers specs are:
 
 cpu: AMD Phenom II X4
 board: Gigabyte MA790GPT-UD3H
 ram: 4x2GBytes DDR3/1333
 hdd: 2xMaxtor STM31000528AS
 nic: 4x Intel(R) PRO/1000
[snip]
 
 
 So here are my questions:
 1. Are there any known caveats or quirks regarding my hardware?
 2. What can I do to further investigate this issue
 3. Not fully on topic but might be related: The buildsystem recognizes my
 cpu as 686 class cpu wich is wrong. Are there any switches I can set in
 make.conf to have 'make' use the correct values? Currently I'm using a
 blank make.conf, meaning it is not present (as it is by default on a fresh
 installed system).
 
[snip]

I am using this motherboard with an AMD x4 630 Propus cpu and 4G Ram 
(2x2GB). I have done a basic overclock to 3.36GHz with the ram running at 
1600MHz. This is my KDE4 desktop machine running FreeBSD 8 and all ports 
currently up to date.

When selecting the RAM to put on this motherboard you should have consulted 
the list from Gigabyte for approved memory and chosen very carefully. The 
memory I actually have was not an exact line item from the list, but it was 
something extremely close and which was designed and manufactured for use 
with an AM3 socket motherboard.

You will notice that some RAM today is designed for Intel P55 chipsets and 
Lynnfield processors while other RAM is designed specifically for AM3/AM2 
socket use. It is probably not a good idea to disregard this during 
selection, e.g. memory not specifically meant for AM3 socket mobos may not 
function correctly.

I also seem to recall seeing somewhere that this motherboard acquires 
limitations in overclocking when all 4 sockets are filled and the best 
overclocking results when only 2 sockets are in use. I am only using 2 
sockets in a 2x2GB arrangement for 4GB RAM total. If you are not 
overclocking and have all 4 sockets filled you may not be able to go above 
1066MHz memory multiplier. With only 2 sockets populated 1333MHz should be 
attainable. 

I believe your problem centers around memory. It may not be designed for AM3 
socket and/or may not be able to handle a higher memory multiplier. When I 
first put this motherboard in I attempted to boot from an already installed 
OS with the memory multiplier set too high and saw numerous examples similar 
to what you are describing. Since I had bought 1600MHz memory I mistakenly 
set the multiplier too high. When I set it back to 1333MHz everything was 
fine. Either the memory multiplier is set too high for your RAM or it is 
just the wrong RAM to begin with.

As far as make.conf goes I use: CPUTYPE?= k8

-Mike


___
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: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Am Saturday 06 February 2010 11:38:25 schrob Michael Powell:
 ms80 wrote:
  Hi
 
  I have a problem installing / upgrading FreeBSD 8.0-release on a new
  machine.
 
  The computers specs are:
 
  cpu: AMD Phenom II X4
  board: Gigabyte MA790GPT-UD3H
  ram: 4x2GBytes DDR3/1333
  hdd: 2xMaxtor STM31000528AS
  nic: 4x Intel(R) PRO/1000
 
 [snip]
 
  So here are my questions:
  1. Are there any known caveats or quirks regarding my hardware?
  2. What can I do to further investigate this issue
  3. Not fully on topic but might be related: The buildsystem recognizes my
  cpu as 686 class cpu wich is wrong. Are there any switches I can set in
  make.conf to have 'make' use the correct values? Currently I'm using a
  blank make.conf, meaning it is not present (as it is by default on a
  fresh installed system).
 
 [snip]
 

[snip too]

 
 I believe your problem centers around memory. It may not be designed for
  AM3 socket and/or may not be able to handle a higher memory multiplier.
  When I first put this motherboard in I attempted to boot from an already
  installed OS with the memory multiplier set too high and saw numerous
  examples similar to what you are describing. Since I had bought 1600MHz
  memory I mistakenly set the multiplier too high. When I set it back to
  1333MHz everything was fine. Either the memory multiplier is set too high
  for your RAM or it is just the wrong RAM to begin with.
 
 As far as make.conf goes I use: CPUTYPE?= k8
 
 -Mike
 


Hi 

Thank you for your reply.
I'm using two of this: OCZ3P1333LVAM4GK  
(OCZ DDR3 AMD Edition, rated for 1333MHz at 1.65V). My Board is rated for 1066 
- 1600 MHz memory, and neither the website nor the manual say anything about 
limitations with memory. Anyway: I didn't overclock cpu or memory. I have 
stability and long life in mind, so I try to keep the hardware cool. During 
testing I underclocked the memory with 1066 and 800 MHz which didn't help: The 
machine crashes anyway. The only thing to note is that by default the board 
tries to set 1.5V DDR3 Voltage which is wrong, you have to set it to 1.65V 
manually.

A faulty piece of hardware was the first thing I suspected and I tested among 
other things the memory with memtest86+. This runs fine for 4 passes, without 
any error. As far as I can tell, my memory subsystem is ok.

As for make.conf: thanks, I will set this when I try again.

with best regards

Sven

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


  1   2   3   4   5   6   7   8   9   10   >