pmap-pm_stats.resident_count

2008-08-25 Thread Rao, Nikhil

vm_daemon() looks at pmap-pm_stats.resident_count in the pmap structure
using vmspace_resident_count() which calls pmap_resident_count(),
pm_stats.resident_count is also incremented for device memory either if
the device memory has been mapped using pmap_object_init_pt or using
pmap_enter.
Since these pages do not belong to memory that is managed by the kernel,
they should not really be accounted in the if check below in
vm_pageout.c ?

if (limit = 0  size = limit) {
1593 vm_pageout_map_deactivate_pages(
1594 p-p_vmspace-vm_map, limit);
1595 }

Is my understanding correct ? What do the members of this list think ?

Thanks,
Nikhil
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


netstat: kvm_read: Bad address

2008-08-25 Thread vasanth raonaik
Hello Hackers,

I am facing with this Issue. Though netstat -a does show some output but the
error is consistently seen. Does any one has some pointers to the cause and
fix for the same.

Thanks,
Vasanth
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: netstat: kvm_read: Bad address

2008-08-25 Thread Kris Kennaway

vasanth raonaik wrote:

Hello Hackers,

I am facing with this Issue. Though netstat -a does show some output but the
error is consistently seen. Does any one has some pointers to the cause and
fix for the same.


It is usually caused when your libkvm and/or netstat binary was compiled 
against different versions of the sources than your kernel.  Rebuild 
world to fix it.


Kris

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: netstat: kvm_read: Bad address

2008-08-25 Thread Jeremy Chadwick
On Mon, Aug 25, 2008 at 05:39:52PM +0530, vasanth raonaik wrote:
 Hello Hackers,
 
 I am facing with this Issue. Though netstat -a does show some output but the
 error is consistently seen. Does any one has some pointers to the cause and
 fix for the same.

I've seen this message when a user upgrades the kernel to newer sources
(e.g. csup/cvsup), and rebuilds/reinstalls the kernel, but **does not**
rebuild/reinstall userland program (e.g. world).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Call for testers - new ichwd ids

2008-08-25 Thread Olivier SMEDTS
Hello hackers,

If you have an Intel ICH chipset and the ichwd driver doesn't work for
you, please test this patch :
http://www.freebsd.org/cgi/query-pr.cgi?prp=126736-1-txtn=/PATCH
It adds new PCI IDs to the ichwd driver. It has been tested on an
ICH10R-based motherboard (Asus P5Q3 Deluxe). The watchdog is detected
and works (don't forget watchdogd_enable=YES in /etc/rc.conf).

See http://www.freebsd.org/cgi/query-pr.cgi?pr=126736 for more details.

Olivier

--
Olivier Smedts  _
 ASCII ribbon campaign ( )
e-mail: [EMAIL PROTECTED] - against HTML email  vCards  X
www: http://www.gid0.org - against proprietary attachments / \

 Il y a seulement 10 sortes de gens dans le monde :
 ceux qui comprennent le binaire,
 et ceux qui ne le comprennent pas.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: netstat: kvm_read: Bad address

2008-08-25 Thread vasanth raonaik
Both kernel and utility are in sync. Any more ideas?

On Mon, Aug 25, 2008 at 6:19 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote:

 On Mon, Aug 25, 2008 at 05:39:52PM +0530, vasanth raonaik wrote:
  Hello Hackers,
 
  I am facing with this Issue. Though netstat -a does show some output but
 the
  error is consistently seen. Does any one has some pointers to the cause
 and
  fix for the same.

 I've seen this message when a user upgrades the kernel to newer sources
 (e.g. csup/cvsup), and rebuilds/reinstalls the kernel, but **does not**
 rebuild/reinstall userland program (e.g. world).

 --
 | Jeremy Chadwickjdc at parodius.com |
 | Parodius Networking   http://www.parodius.com/ |
 | UNIX Systems Administrator  Mountain View, CA, USA |
 | Making life hard for others since 1977.  PGP: 4BD6C0CB |


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: netstat: kvm_read: Bad address

2008-08-25 Thread Jeremy Chadwick
On Mon, Aug 25, 2008 at 07:22:19PM +0530, vasanth raonaik wrote:
 Both kernel and utility are in sync. Any more ideas?
 
 On Mon, Aug 25, 2008 at 6:19 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote:
 
  On Mon, Aug 25, 2008 at 05:39:52PM +0530, vasanth raonaik wrote:
   Hello Hackers,
  
   I am facing with this Issue. Though netstat -a does show some output but
  the
   error is consistently seen. Does any one has some pointers to the cause
  and
   fix for the same.
 
  I've seen this message when a user upgrades the kernel to newer sources
  (e.g. csup/cvsup), and rebuilds/reinstalls the kernel, but **does not**
  rebuild/reinstall userland program (e.g. world).

Nope, don't have any.  Others will have to help.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: MFC of r180753: ABI problems?

2008-08-25 Thread John Baldwin
On Saturday 23 August 2008 05:50:34 pm M. Warner Losh wrote:
 In message: [EMAIL PROTECTED]
 John Baldwin [EMAIL PROTECTED] writes:
 : On Saturday 23 August 2008 02:42:09 am M. Warner Losh wrote:
 :  In message: [EMAIL PROTECTED]
 : 
 :  Max Laier [EMAIL PROTECTED] writes:
 :  : Hi,
 :  :
 :  : I'm wondering how to merge r180753 to stable/7 as luoqi@ has indicated
 :  : that he doesn't have time to take care of it right now.
 :  :
 :  : It seems that changing the size of pcicfgregs (aka struct pcicfg) 
which
 :  : is part of struct pci_devinfo is out of the question, right?  Ideas 
where
 :  : to store the HT related state or how to avoid storing the state are
 :  : welcome.
 :  :
 :  : The merge result is attached for reference.  This fix is essential for
 :  : many nforce based boards from ASUS which are rather common, I'm 
afraid. 
 :  : So it would be good to have this in 7.1/6.4, I think.
 : 
 :  I think this is OK.
 : 
 :  pcicfgregs is an internal to pci implementation detail.  You've added
 :  it at the end, so any leakage of the offsets won't matter.  All
 :  subclasses of pci would be affected.  Internal to the kernel isn't all
 :  that interesting, since they are all compiled at the same time.  This
 :  would only matter for modules.  Cardbus and acpi would be the only
 :  modules affected.  That would mean you couldn't boot a 7.0 kernel with
 :  a 7.1 set of modules or vice versa.  I'm not sure that is actually
 :  going to work anyway...
 : 
 : ACPI (and OFW's) PCI bus code isn't going to care, and I doubt cardbus is 
 : either.  Hmm, actually, cardbus doesn't, but ACPI actually does (acpi_pci 
 
 CardBus' does because it creates a slightly larger pcicfgreg per device...

I thought it did but couldn't find it in the code.  ACPI is basically doing 
the same thing.

-- 
John Baldwin
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: netstat: kvm_read: Bad address

2008-08-25 Thread John Baldwin
On Monday 25 August 2008 08:09:52 am vasanth raonaik wrote:
 Hello Hackers,
 
 I am facing with this Issue. Though netstat -a does show some output but the
 error is consistently seen. Does any one has some pointers to the cause and
 fix for the same.

Some parts of netstat still use direct kvm access to read kernel variables 
instead of sysctls for live kernels.  If it tries to walk a linked list while 
the list is being changed, then it can end up following a free'd pointer and 
get this error.  Is the system doing something like adding and deleting lots 
of psuedo-interfaces, addresses, etc.?

-- 
John Baldwin
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sun4v arch

2008-08-25 Thread Maxim Sobolev

Maxim Sobolev wrote:

Peter Jeremy wrote:

Is there a summary of the open issues somewhere?  There are no sun4v
PRs open.  http://wiki.freebsd.org/FreeBSD/sun4v effectively hasn't
been touched since November 2006 and suggests that the only critical
issue is lack of serial port support.


There is a better interpretation, which is that the only critical issue 
is lack of real users for this port, not lack of serial port support :).


Just to clarify a bit - my point was not to suggest that port is 
irrelevant, or that the FreeBSD should not go there. In fact I believe 
on contrary from what I know sun4v is good as a testbed for the future 
of multi-processor architectures today - definitely we will see ever 
increasing number of cores in commodity Intel/AMD servers in few years 
from now. So that in that sense sun4v work is very important if the 
FreeBSD project wants to keep ahead of things, not catching-up later.


However, realistically immaturity of the port as well as scarcity of 
hardware limits number of users severely. Therefore, absence of PRs 
should not be surprising to anyone.


-Maxim
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]