1. 09 2月, 2008 27 次提交
  2. 08 2月, 2008 13 次提交
    • V
      dm: table remove unused variable · 4f41b09f
      Vasily Averin 提交于
      Save some bytes.
      Signed-off-by: NVasily Averin <vvs@sw.ru>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      4f41b09f
    • M
      dm ioctl: move compat code · 76c072b4
      Milan Broz 提交于
      Move compat_ioctl handling into dm-ioctl.c.
      Signed-off-by: NMilan Broz <mbroz@redhat.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      76c072b4
    • C
      SLUB: Support for performance statistics · 8ff12cfc
      Christoph Lameter 提交于
      The statistics provided here allow the monitoring of allocator behavior but
      at the cost of some (minimal) loss of performance. Counters are placed in
      SLUB's per cpu data structure. The per cpu structure may be extended by the
      statistics to grow larger than one cacheline which will increase the cache
      footprint of SLUB.
      
      There is a compile option to enable/disable the inclusion of the runtime
      statistics and its off by default.
      
      The slabinfo tool is enhanced to support these statistics via two options:
      
      -D 	Switches the line of information displayed for a slab from size
      	mode to activity mode.
      
      -A	Sorts the slabs displayed by activity. This allows the display of
      	the slabs most important to the performance of a certain load.
      
      -r	Report option will report detailed statistics on
      
      Example (tbench load):
      
      slabinfo -AD		->Shows the most active slabs
      
      Name                   Objects    Alloc     Free   %Fast
      skbuff_fclone_cache         33 111953835 111953835  99  99
      :0000192                  2666  5283688  5281047  99  99
      :0001024                   849  5247230  5246389  83  83
      vm_area_struct            1349   119642   118355  91  22
      :0004096                    15    66753    66751  98  98
      :0000064                  2067    25297    23383  98  78
      dentry                   10259    28635    18464  91  45
      :0000080                 11004    18950     8089  98  98
      :0000096                  1703    12358    10784  99  98
      :0000128                   762    10582     9875  94  18
      :0000512                   184     9807     9647  95  81
      :0002048                   479     9669     9195  83  65
      anon_vma                   777     9461     9002  99  71
      kmalloc-8                 6492     9981     5624  99  97
      :0000768                   258     7174     6931  58  15
      
      So the skbuff_fclone_cache is of highest importance for the tbench load.
      Pretty high load on the 192 sized slab. Look for the aliases
      
      slabinfo -a | grep 000192
      :0000192     <- xfs_btree_cur filp kmalloc-192 uid_cache tw_sock_TCP
      	request_sock_TCPv6 tw_sock_TCPv6 skbuff_head_cache xfs_ili
      
      Likely skbuff_head_cache.
      
      
      Looking into the statistics of the skbuff_fclone_cache is possible through
      
      slabinfo skbuff_fclone_cache	->-r option implied if cache name is mentioned
      
      
      .... Usual output ...
      
      Slab Perf Counter       Alloc     Free %Al %Fr
      --------------------------------------------------
      Fastpath             111953360 111946981  99  99
      Slowpath                 1044     7423   0   0
      Page Alloc                272      264   0   0
      Add partial                25      325   0   0
      Remove partial             86      264   0   0
      RemoteObj/SlabFrozen      350     4832   0   0
      Total                111954404 111954404
      
      Flushes       49 Refill        0
      Deactivate Full=325(92%) Empty=0(0%) ToHead=24(6%) ToTail=1(0%)
      
      Looks good because the fastpath is overwhelmingly taken.
      
      
      skbuff_head_cache:
      
      Slab Perf Counter       Alloc     Free %Al %Fr
      --------------------------------------------------
      Fastpath              5297262  5259882  99  99
      Slowpath                 4477    39586   0   0
      Page Alloc                937      824   0   0
      Add partial                 0     2515   0   0
      Remove partial           1691      824   0   0
      RemoteObj/SlabFrozen     2621     9684   0   0
      Total                 5301739  5299468
      
      Deactivate Full=2620(100%) Empty=0(0%) ToHead=0(0%) ToTail=0(0%)
      
      
      Descriptions of the output:
      
      Total:		The total number of allocation and frees that occurred for a
      		slab
      
      Fastpath:	The number of allocations/frees that used the fastpath.
      
      Slowpath:	Other allocations
      
      Page Alloc:	Number of calls to the page allocator as a result of slowpath
      		processing
      
      Add Partial:	Number of slabs added to the partial list through free or
      		alloc (occurs during cpuslab flushes)
      
      Remove Partial:	Number of slabs removed from the partial list as a result of
      		allocations retrieving a partial slab or by a free freeing
      		the last object of a slab.
      
      RemoteObj/Froz:	How many times were remotely freed object encountered when a
      		slab was about to be deactivated. Frozen: How many times was
      		free able to skip list processing because the slab was in use
      		as the cpuslab of another processor.
      
      Flushes:	Number of times the cpuslab was flushed on request
      		(kmem_cache_shrink, may result from races in __slab_alloc)
      
      Refill:		Number of times we were able to refill the cpuslab from
      		remotely freed objects for the same slab.
      
      Deactivate:	Statistics how slabs were deactivated. Shows how they were
      		put onto the partial list.
      
      In general fastpath is very good. Slowpath without partial list processing is
      also desirable. Any touching of partial list uses node specific locks which
      may potentially cause list lock contention.
      Signed-off-by: NChristoph Lameter <clameter@sgi.com>
      8ff12cfc
    • C
      SLUB: Use unique end pointer for each slab page. · 683d0baa
      Christoph Lameter 提交于
      We use a NULL pointer on freelists to signal that there are no more objects.
      However the NULL pointers of all slabs match in contrast to the pointers to
      the real objects which are in different ranges for different slab pages.
      
      Change the end pointer to be a pointer to the first object and set bit 0.
      Every slab will then have a different end pointer. This is necessary to ensure
      that end markers can be matched to the source slab during cmpxchg_local.
      
      Bring back the use of the mapping field by SLUB since we would otherwise have
      to call a relatively expensive function page_address() in __slab_alloc().  Use
      of the mapping field allows avoiding a call to page_address() in various other
      functions as well.
      
      There is no need to change the page_mapping() function since bit 0 is set on
      the mapping as also for anonymous pages.  page_mapping(slab_page) will
      therefore still return NULL although the mapping field is overloaded.
      Signed-off-by: NChristoph Lameter <clameter@sgi.com>
      Cc: Pekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      683d0baa
    • J
      hwmon: Discard useless I2C driver IDs · 7b501b1f
      Jean Delvare 提交于
      Many I2C hwmon drivers define a driver ID but no other code references
      these, meaning that they are useless. Discard them, along with a few
      IDs which are defined but never used at all.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      7b501b1f
    • J
      hwmon: (w83781d) Misc cleanups · 293c0997
      Jean Delvare 提交于
      * Drop unused defines
      * Drop unused driver ID
      * Remove trailing whitespace
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      293c0997
    • J
      hwmon: (gl520sm) Various cleanups · f28dc2f7
      Jean Delvare 提交于
      * Drop trailing spaces
      * Drop unused driver ID
      * Drop stray backslashes in macros
      * Rename new_client to client
      * Drop redundant initializations to 0
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      f28dc2f7
    • J
      hwmon: (gl518sm) Various cleanups · a5955ed2
      Jean Delvare 提交于
      * Drop history, it doesn't belong there
      * Drop unused struct member
      * Drop bogus struct member comment
      * Drop unused driver ID
      * Rename new_client to client
      * Drop redundant initializations to 0
      * Drop useless cast
      * Drop trailing space
      * Fix comment
      * Drop duplicate comment
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      a5955ed2
    • J
      dmi: Let drivers walk the DMI table · 7fce084a
      Jean Delvare 提交于
      Let drivers walk the DMI table for their own needs. Some drivers need
      data stored in OEM-specific DMI records for proper operation.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      7fce084a
    • J
      [SCSI] enclosure: add support for enclosure services · d569d5bb
      James Bottomley 提交于
      The enclosure misc device is really just a library providing sysfs
      support for physical enclosure devices and their components.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      d569d5bb
    • P
      [SCSI] Small cleanups for scsi_host.h · d850bd34
      Pavel Machek 提交于
      Small cleanups in scsi_host.h. Few #defines make me wonder if their
      description is still up to date..?
      Signed-off-by: NPavel Machek <pavel@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      d850bd34
    • J
      [SCSI] add protocol definitions · 89dddbce
      James Bottomley 提交于
      A lot of SCSI command replies have a protocol ID field.  Add
      definitions for the interpretation of that from SPC-3.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      89dddbce
    • M
      [SCSI] libiscsi: fix session age rollover and remove cid encoding · 8b1d0343
      Mike Christie 提交于
      The session age mask is only 4 bits, but session->age is 32. When
      it gets larger then 15 and we try to or the bits some bits get
      dropped and the check for session age in iscsi_verify_itt is useless.
      
      The ISCSI_CID_MASK related bits are also useless since cid is always
      one.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      8b1d0343