Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2010 17:43:38 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/compat/freebsd32 freebsd32_misc.c src/sys/kern imgact_shell.c kern_exec.c src/sys/vm vm_init.c
Message-ID:  <201007251744.o6PHiNQv082217@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2010-07-25 17:43:38 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/freebsd32 freebsd32_misc.c 
    sys/kern             imgact_shell.c kern_exec.c 
    sys/vm               vm_init.c 
  Log:
  SVN rev 210475 on 2010-07-25 17:43:38Z by alc
  
  Change the order in which the file name, arguments, environment, and
  shell command are stored in exec*()'s demand-paged string buffer.  For
  a "buildworld" on an 8GB amd64 multiprocessor, the new order reduces
  the number of global TLB shootdowns by 31%.  It also eliminates about
  330k page faults on the kernel address space.
  
  Change exec_shell_imgact() to use "args->begin_argv" consistently as
  the start of the argument and environment strings.  Previously, it
  would sometimes use "args->buf", which is the start of the overall
  buffer, but no longer the start of the argument and environment
  strings.  While I'm here, eliminate unnecessary passing of "&length"
  to copystr(), where we don't actually care about the length of the
  copied string.
  
  Clean up the initialization of the exec map.  In particular, use the
  correct size for an entry, and express that size in the same way that
  is used when an entry is allocated.  The old size was one page too
  large.  (This discrepancy originated in 2004 when I rewrote
  exec_map_first_page() to use sf_buf_alloc() instead of the exec map
  for mapping the first page of the executable.)
  
  Reviewed by:    kib
  
  Revision  Changes    Path
  1.109     +6 -5      src/sys/compat/freebsd32/freebsd32_misc.c
  1.38      +7 -7      src/sys/kern/imgact_shell.c
  1.353     +8 -6      src/sys/kern/kern_exec.c
  1.51      +3 -1      src/sys/vm/vm_init.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007251744.o6PHiNQv082217>