All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] console and do_syscall_stub
@ 2008-01-23 22:58 Antoine Martin
  2008-01-23 23:23 ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Antoine Martin @ 2008-01-23 22:58 UTC (permalink / raw)
  To: User-mode Linux Kernel Development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] Failed to open console 12, err = -2
[42949466.740000] do_syscall_stub : ret = -12, offset = 548682067984,
data = 00000000606b1010
[42949466.740000] do_syscall_stub: syscall 9 failed, return value =
0xfffffffffffffff4, expected return value = 0x17c17000
[42949466.740000]     syscall parameters: 0x17c17000 0x1000 0x7 0x11 0x3
0x3e19000
[42949466.740000] Failed to flush page for address 0x17c17000


Linux localhost 2.6.23.12 #5 Tue Dec 25 14:26:58 GMT 2007 x86_64 UML
User Mode Linux GNU/Linux

Any ideas?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHl8alGK2zHPGK1rsRCnm/AJ9HmHmE7vK4RdFamfM/wVmt72qEdQCfcY7s
hXzAKIdkAh7VDZ+BjxsUP8U=
=gd57
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] console and do_syscall_stub
  2008-01-23 22:58 [uml-devel] console and do_syscall_stub Antoine Martin
@ 2008-01-23 23:23 ` Jeff Dike
  2008-01-24 23:20   ` Antoine Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Dike @ 2008-01-23 23:23 UTC (permalink / raw)
  To: Antoine Martin; +Cc: User-mode Linux Kernel Development

On Wed, Jan 23, 2008 at 10:58:45PM +0000, Antoine Martin wrote:
> [42949466.740000] do_syscall_stub : ret = -12, offset = 548682067984,
> data = 00000000606b1010

This usually means that a UML process hit the host's vm_area_struct limit.

Look at the host's /proc/sys/vm/max_map_count - the default is 64K,
which, given UML's propensity to map memory one page at a time, covers
256M of resident memory for a UML process.

I'd say double or quadruple it, depending on how much memory you think
a process can use.  To be absolutely safe, make it big enough to cover
all of a UML's physical memory, since a process RSS can't exceed that.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] console and do_syscall_stub
  2008-01-23 23:23 ` Jeff Dike
@ 2008-01-24 23:20   ` Antoine Martin
  2008-01-24 23:23     ` Antoine Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Antoine Martin @ 2008-01-24 23:20 UTC (permalink / raw)
  To: Jeff Dike; +Cc: User-mode Linux Kernel Development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Jeff Dike wrote:
> On Wed, Jan 23, 2008 at 10:58:45PM +0000, Antoine Martin wrote:
>> [42949466.740000] do_syscall_stub : ret = -12, offset = 548682067984,
>> data = 00000000606b1010
> 
> This usually means that a UML process hit the host's vm_area_struct limit.
> 
> Look at the host's /proc/sys/vm/max_map_count - the default is 64K,
> which, given UML's propensity to map memory one page at a time, covers
> 256M of resident memory for a UML process.
> 
> I'd say double or quadruple it, depending on how much memory you think
> a process can use.  To be absolutely safe, make it big enough to cover
> all of a UML's physical memory, since a process RSS can't exceed that.
> 
Thanks, hasn't happened since.

Any idea about this console thing?
(....)
[42949547.530000] Failed to open console 12, err = -2
[42949547.530000] Failed to open console 12, err = -2
[42949547.530000] Failed to open console 12, err = -2
[42949547.990000] Failed to open console 12, err = -2
[42949548.160000] Failed to open console 12, err = -2
[42949548.190000] Failed to open console 12, err = -2
[42949548.740000] Failed to open console 12, err = -2
[42949549.390000] Failed to open console 12, err = -2
[42949550.270000] Failed to open console 12, err = -2
[42949551.710000] Failed to open console 12, err = -2
[42949555.500000] Failed to open console 12, err = -2
[42949559.010000] Failed to open console 12, err = -2
[42949566.330000] Failed to open console 12, err = -2
[42949572.620000] Failed to open console 12, err = -2
[42949593.450000] syslog-ng invoked oom-killer: gfp_mask=0xa01d2,
order=0, oomkilladj=0
[42949593.450000] Call Trace:
[42949593.450000] 7f2afb18:  [<60047774>] printk_ratelimit+0x15/0x17
[42949593.450000] 7f2afb28:  [<6006eb0f>] out_of_memory+0x7c/0xf9
[42949593.450000] 7f2afb68:  [<6006fc5f>] __alloc_pages+0x229/0x2b4
[42949593.450000] 7f2afbe8:  [<60071bb3>]
__do_page_cache_readahead+0xb5/0x167
[42949593.450000] 7f2afc20:  [<60059c5f>] wake_bit_function+0x0/0x2a
[42949593.450000] 7f2afc58:  [<60071d40>] do_page_cache_readahead+0x52/0x5f
[42949593.450000] 7f2afc88:  [<6006cb5a>] filemap_fault+0x151/0x272
[42949593.450000] 7f2afce8:  [<60078c4d>] __do_fault+0x86/0x375
[42949593.450000] 7f2afd68:  [<60078f70>] do_linear_fault+0x34/0x36
[42949593.450000] 7f2afd88:  [<60079228>] handle_mm_fault+0x13e/0x23d
[42949593.450000] 7f2afde8:  [<6001794f>] handle_page_fault+0x11f/0x242
[42949593.450000] 7f2afe48:  [<60017c00>] segv+0xb4/0x2b8
[42949593.450000] 7f2aff28:  [<60017b46>] segv_handler+0x68/0x6e
[42949593.450000] 7f2aff48:  [<6003a7a5>] get_skas_faultinfo+0x9c/0xa1
[42949593.450000] 7f2aff68:  [<6003ad4f>] userspace+0x13a/0x19d
[42949593.450000] 7f2affc8:  [<600186d6>] fork_handler+0x86/0x8d
[42949593.450000]
[42949593.450000] Mem-info:
[42949593.450000] Normal per-cpu:
[42949593.450000] CPU    0: Hot: hi:  186, btch:  31 usd:  22   Cold:
hi:   62, btch:  15 usd:  30
[42949593.450000] Active:122119 inactive:48 dirty:0 writeback:0 unstable:0
[42949593.450000]  free:719 slab:1833 mapped:3 pagetables:317 bounce:0
[42949593.450000] Normal free:2876kB min:2876kB low:3592kB high:4312kB
active:488476kB inactive:192kB present:517120kB pages_scanned:734521
all_unreclaimable? yes
[42949593.450000] lowmem_reserve[]: 0 0
[42949593.450000] Normal: 25*4kB 3*8kB 0*16kB 0*32kB 1*64kB 1*128kB
0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 2876kB
[42949593.450000] Swap cache: add 0, delete 0, find 0/0, race 0+0
[42949593.450000] Free swap  = 0kB
[42949593.450000] Total swap = 0kB
[42949593.450000] Free swap:            0kB
[42949593.450000] 131072 pages of RAM
[42949593.450000] 0 pages of HIGHMEM
[42949593.450000] 5658 reserved pages
[42949593.450000] 23 pages shared
[42949593.450000] 0 pages swap cached
[42949593.450000] Out of memory: kill process 2939 (syslog-ng) score
7875 or a child
[42949593.450000] Killed process 2939 (syslog-ng)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHmR07GK2zHPGK1rsRChM2AJsFWORF7/7RsEbEZrgtwvWrpHOAWgCfZm+8
gpvM9JRNUPgTeUYUc2ba4Q0=
=dEeA
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] console and do_syscall_stub
  2008-01-24 23:20   ` Antoine Martin
@ 2008-01-24 23:23     ` Antoine Martin
  0 siblings, 0 replies; 4+ messages in thread
From: Antoine Martin @ 2008-01-24 23:23 UTC (permalink / raw)
  To: Jeff Dike; +Cc: User-mode Linux Kernel Development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

> Any idea about this console thing?
Ignore this - I'm getting tired...

Here's what caused it in syslog-ng.conf:
destination console_all { file("/dev/tty12"); };

Which does not exist as the guest is booted up with con=null con0=fd0,fd:1




> (....)
> [42949547.530000] Failed to open console 12, err = -2
> [42949547.530000] Failed to open console 12, err = -2
> [42949547.530000] Failed to open console 12, err = -2
> [42949547.990000] Failed to open console 12, err = -2
> [42949548.160000] Failed to open console 12, err = -2
> [42949548.190000] Failed to open console 12, err = -2
> [42949548.740000] Failed to open console 12, err = -2
> [42949549.390000] Failed to open console 12, err = -2
> [42949550.270000] Failed to open console 12, err = -2
> [42949551.710000] Failed to open console 12, err = -2
> [42949555.500000] Failed to open console 12, err = -2
> [42949559.010000] Failed to open console 12, err = -2
> [42949566.330000] Failed to open console 12, err = -2
> [42949572.620000] Failed to open console 12, err = -2
> [42949593.450000] syslog-ng invoked oom-killer: gfp_mask=0xa01d2,
> order=0, oomkilladj=0
> [42949593.450000] Call Trace:
> [42949593.450000] 7f2afb18:  [<60047774>] printk_ratelimit+0x15/0x17
> [42949593.450000] 7f2afb28:  [<6006eb0f>] out_of_memory+0x7c/0xf9
> [42949593.450000] 7f2afb68:  [<6006fc5f>] __alloc_pages+0x229/0x2b4
> [42949593.450000] 7f2afbe8:  [<60071bb3>]
> __do_page_cache_readahead+0xb5/0x167
> [42949593.450000] 7f2afc20:  [<60059c5f>] wake_bit_function+0x0/0x2a
> [42949593.450000] 7f2afc58:  [<60071d40>] do_page_cache_readahead+0x52/0x5f
> [42949593.450000] 7f2afc88:  [<6006cb5a>] filemap_fault+0x151/0x272
> [42949593.450000] 7f2afce8:  [<60078c4d>] __do_fault+0x86/0x375
> [42949593.450000] 7f2afd68:  [<60078f70>] do_linear_fault+0x34/0x36
> [42949593.450000] 7f2afd88:  [<60079228>] handle_mm_fault+0x13e/0x23d
> [42949593.450000] 7f2afde8:  [<6001794f>] handle_page_fault+0x11f/0x242
> [42949593.450000] 7f2afe48:  [<60017c00>] segv+0xb4/0x2b8
> [42949593.450000] 7f2aff28:  [<60017b46>] segv_handler+0x68/0x6e
> [42949593.450000] 7f2aff48:  [<6003a7a5>] get_skas_faultinfo+0x9c/0xa1
> [42949593.450000] 7f2aff68:  [<6003ad4f>] userspace+0x13a/0x19d
> [42949593.450000] 7f2affc8:  [<600186d6>] fork_handler+0x86/0x8d
> [42949593.450000]
> [42949593.450000] Mem-info:
> [42949593.450000] Normal per-cpu:
> [42949593.450000] CPU    0: Hot: hi:  186, btch:  31 usd:  22   Cold:
> hi:   62, btch:  15 usd:  30
> [42949593.450000] Active:122119 inactive:48 dirty:0 writeback:0 unstable:0
> [42949593.450000]  free:719 slab:1833 mapped:3 pagetables:317 bounce:0
> [42949593.450000] Normal free:2876kB min:2876kB low:3592kB high:4312kB
> active:488476kB inactive:192kB present:517120kB pages_scanned:734521
> all_unreclaimable? yes
> [42949593.450000] lowmem_reserve[]: 0 0
> [42949593.450000] Normal: 25*4kB 3*8kB 0*16kB 0*32kB 1*64kB 1*128kB
> 0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 2876kB
> [42949593.450000] Swap cache: add 0, delete 0, find 0/0, race 0+0
> [42949593.450000] Free swap  = 0kB
> [42949593.450000] Total swap = 0kB
> [42949593.450000] Free swap:            0kB
> [42949593.450000] 131072 pages of RAM
> [42949593.450000] 0 pages of HIGHMEM
> [42949593.450000] 5658 reserved pages
> [42949593.450000] 23 pages shared
> [42949593.450000] 0 pages swap cached
> [42949593.450000] Out of memory: kill process 2939 (syslog-ng) score
> 7875 or a child
> [42949593.450000] Killed process 2939 (syslog-ng)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHmR3zGK2zHPGK1rsRChgeAJ9zkXhi7+Gz7uPyNsaCrj1smb/ZlwCfdcAQ
5HNTrjae8+gT8lcFWsUn7kU=
=seDf
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-24 23:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 22:58 [uml-devel] console and do_syscall_stub Antoine Martin
2008-01-23 23:23 ` Jeff Dike
2008-01-24 23:20   ` Antoine Martin
2008-01-24 23:23     ` Antoine Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.