wired memory - again!

2012-06-09 Thread Wojciech Puchar
top reports wired memory 128MB WHERE it is used? below results of vmstat -m and vmstat -z values does not sum up even to half of it FreeBSD 9 - few days old. What i am missing and why there are SO MUCH wired memory on 1GB machine without X11 or virtualbox Type InUse MemUse

Re: ifconfig accepting hostname as ipv4 address

2012-06-09 Thread Wojciech Puchar
input. Moreover, ifconfig em0 some_valid_fqdn/MASK silently ignores it, so you can't set valid CIDR address using this notation. Classful era has ended more than 10 years ago, do we still want to keep this behavior? were not aware of that option, and it is rather stupid option - you should

Re: SuperPages utilization survey

2012-06-09 Thread Mikolaj Golub
On Fri, 1 Jun 2012 14:54:48 +0200 Ivan Voras wrote: IV On 1 June 2012 14:35, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: http://people.freebsd.org/~ivoras/stuff/spsurvey.py ... IV If anyone posts more data, I'll analyse it. I'm more worried about the IV granularity of

Re: ifconfig accepting hostname as ipv4 address

2012-06-09 Thread Garrett Cooper
On Sat, Jun 9, 2012 at 12:23 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: input. Moreover, ifconfig em0 some_valid_fqdn/MASK silently ignores it, so you can't set valid CIDR address using this notation. Classful era has ended more than 10 years ago, do we still want to keep this

Re: SuperPages utilization survey

2012-06-09 Thread Konstantin Belousov
On Sat, Jun 09, 2012 at 10:31:17AM +0300, Mikolaj Golub wrote: On Fri, 1 Jun 2012 14:54:48 +0200 Ivan Voras wrote: IV On 1 June 2012 14:35, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: http://people.freebsd.org/~ivoras/stuff/spsurvey.py ... IV If anyone posts more

Re: SuperPages utilization survey

2012-06-09 Thread Mikolaj Golub
On Sat, 9 Jun 2012 11:38:22 +0300 Konstantin Belousov wrote: KB On Sat, Jun 09, 2012 at 10:31:17AM +0300, Mikolaj Golub wrote: On Fri, 1 Jun 2012 14:54:48 +0200 Ivan Voras wrote: IV On 1 June 2012 14:35, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

Re: SuperPages utilization survey

2012-06-09 Thread Konstantin Belousov
On Sat, Jun 09, 2012 at 12:03:43PM +0300, Mikolaj Golub wrote: On Sat, 9 Jun 2012 11:38:22 +0300 Konstantin Belousov wrote: KB On Sat, Jun 09, 2012 at 10:31:17AM +0300, Mikolaj Golub wrote: On Fri, 1 Jun 2012 14:54:48 +0200 Ivan Voras wrote: IV On 1 June 2012 14:35, Wojciech

Re: SuperPages utilization survey

2012-06-09 Thread Mikolaj Golub
On Sat, 9 Jun 2012 12:07:40 +0300 Konstantin Belousov wrote: KB Well, if I see a report informing me that some 2M region contains 512 super KB pages, how should I interpret it ? For me, it is only one superpage (mapping) KB that can be created in one 2M region. Well, if I see a report like

Re: SuperPages utilization survey

2012-06-09 Thread Robert N. M. Watson
On 9 Jun 2012, at 10:46, Mikolaj Golub wrote: On Sat, 9 Jun 2012 12:07:40 +0300 Konstantin Belousov wrote: KB Well, if I see a report informing me that some 2M region contains 512 super KB pages, how should I interpret it ? For me, it is only one superpage (mapping) KB that can be

Re: SuperPages utilization survey

2012-06-09 Thread Konstantin Belousov
On Sat, Jun 09, 2012 at 12:46:53PM +0300, Mikolaj Golub wrote: On Sat, 9 Jun 2012 12:07:40 +0300 Konstantin Belousov wrote: KB Well, if I see a report informing me that some 2M region contains 512 super KB pages, how should I interpret it ? For me, it is only one superpage (mapping)

Re: SuperPages utilization survey

2012-06-09 Thread Robert N. M. Watson
On 9 Jun 2012, at 11:05, Konstantin Belousov wrote: First, there is nothing which would prevent demotion from happens while you iterate over the map, so you could get funyy numbers, like 42 superpages for 2M region with your method. Second, the superpage size if machine-depended, and even

cleaning /usr/obj before copying it to USB key

2012-06-09 Thread Matthias Apitz
Hi, I build kernel and userland (out of SVN) and install in on an USB key mounted as /mnt this way: # cd /usr/src ... # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt To

Re: boot menu option to disable graphics mode

2012-06-09 Thread Jason Hellenthal
On Sat, Jun 09, 2012 at 07:28:50AM +0300, Andriy Gapon wrote: on 09/06/2012 04:16 Jason Hellenthal said the following: runlevel support might be a better solution so it does not differ that much from what other systems do and would be easy for people to grasp. Patches are welcome, as

Re: boot menu option to disable graphics mode

2012-06-09 Thread Marcin Wisnicki
On Thu, 07 Jun 2012 12:57:41 +0300, Gleb Kurtsou wrote: On (07/06/2012 11:56), Andriy Gapon wrote: A user doesn't have to select the option unless he needs to. A simple user can just reboot without selecting the option to get back his X. A user doesn't have to learn anything about the code,

Re: cleaning /usr/obj before copying it to USB key

2012-06-09 Thread Wojciech Puchar
my problem is that the both 'cp -Rp ...' commands takes many hours (12 and six hours) because they are transferring a lot(!!!) of small files; I unless you want to kill you USB drive quickly (yes, it simulates disk THAT badly) then create image file on your hard disk exactly equal to your USB

Re: boot menu option to disable graphics mode

2012-06-09 Thread Doug Barton
On 06/07/2012 11:10, Andriy Gapon wrote: on 07/06/2012 17:29 Doug Barton said the following: On 06/07/2012 02:57 AM, Gleb Kurtsou wrote: What do you think about adding generic support for overriding *_enable options in rc.conf? I'd like to be able to disable services at boot prompt, e.g. #

Re: cleaning /usr/obj before copying it to USB key

2012-06-09 Thread Tim Kientzle
On Jun 9, 2012, at 7:35 AM, Matthias Apitz wrote: To use the (booted) USB key later to install other laptops or netbooks I enrich the key with /usr/src and /usr/obj as: # cd /usr # cp -Rp src /mnt/usr # cp -Rp obj /mnt/usr my problem is that the both 'cp -Rp ...' commands takes many

Re: wired memory - again!

2012-06-09 Thread Ian Lepore
On Sat, 2012-06-09 at 09:21 +0200, Wojciech Puchar wrote: top reports wired memory 128MB WHERE it is used? below results of vmstat -m and vmstat -z values does not sum up even to half of it FreeBSD 9 - few days old. What i am missing and why there are SO MUCH wired memory on 1GB machine

Re: wired memory - again!

2012-06-09 Thread Konstantin Belousov
On Sat, Jun 09, 2012 at 10:27:03AM -0600, Ian Lepore wrote: On Sat, 2012-06-09 at 09:21 +0200, Wojciech Puchar wrote: top reports wired memory 128MB WHERE it is used? below results of vmstat -m and vmstat -z values does not sum up even to half of it FreeBSD 9 - few days old.

Re: nss compat shims

2012-06-09 Thread Mel Flynn
On 8-6-2012 22:06, Michael Bushkov wrote: I don't know for sure, but it seems that there was no need to support anything besides groups and password when nss_compat.c was committed. At that time, IIRC, the modules that we had in ports supported only these databases. Right. In the meantime

Re: cleaning /usr/obj before copying it to USB key

2012-06-09 Thread Matthias Apitz
El día Saturday, June 09, 2012 a las 08:57:33AM -0700, Tim Kientzle escribió: On Jun 9, 2012, at 7:35 AM, Matthias Apitz wrote: To use the (booted) USB key later to install other laptops or netbooks I enrich the key with /usr/src and /usr/obj as: # cd /usr # cp -Rp src /mnt/usr #

Re: boot menu option to disable graphics mode

2012-06-09 Thread George Mitchell
On 06/09/12 10:37, Jason Hellenthal wrote: On Sat, Jun 09, 2012 at 07:28:50AM +0300, Andriy Gapon wrote: on 09/06/2012 04:16 Jason Hellenthal said the following: runlevel support might be a better solution so it does not differ that much from what other systems do and would be easy for people

Re: wired memory - again!

2012-06-09 Thread Wojciech Puchar
The kernel auto-tunes the vfs buffer space using the formula for the first 64 MB of ram use 1/4 for buffers, plus 1/10 of the ram over 64 i always limit it by kern.maxbcache=2000 on 1GB RAM machine with lots of I/O but actually with default MAXBSIZE and little I/O you can use safely 1MB

Re: wired memory - again!

2012-06-09 Thread Wojciech Puchar
First, all memory allocated by UMA and consequently malloc(9) is wired. In other words, almost all memory used by kernel is accounted as wired. yes i understand this. still i found no way how to find out what allocated that much. Second, the buffer cache wires the pages which are inserted

Re: ifconfig accepting hostname as ipv4 address

2012-06-09 Thread Kevin Oberman
On Sat, Jun 9, 2012 at 12:37 AM, Garrett Cooper yaneg...@gmail.com wrote: On Sat, Jun 9, 2012 at 12:23 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: input. Moreover, ifconfig em0 some_valid_fqdn/MASK silently ignores it, so you can't set valid CIDR address using this notation.