xfs
[Top] [All Lists]

PARTIAL TAKE 947312 - reduce stack footprint

To: linux-xfs@xxxxxxxxxxx, sgi.bugs.xfs@xxxxxxxxxxxx
Subject: PARTIAL TAKE 947312 - reduce stack footprint
From: nathans@xxxxxxx (Nathan Scott)
Date: Mon, 6 Mar 2006 11:03:50 +1100 (EST)
Sender: linux-xfs-bounce@xxxxxxxxxxx
[Bunch of stuff, all over the map, to help reduce our stack use]


Dynamically allocate local kiocb structures in readv/writev routines to reduce 
stack footprint.

Date:  Fri Mar  3 14:18:51 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  cattelan,sandeen

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25358a
linux-2.6/xfs_file.c - 1.129 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_file.c.diff?r1=text&tr1=1.129&r2=text&tr2=1.128&f=h


Dynamically allocate xfs_dir2_put_args_t structure to reduce stack pressure in 
xfs_dir2_leaf_getdents routine.

Date:  Fri Mar  3 14:22:33 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25359a
xfs_dir2_leaf.c - 1.42 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_dir2_leaf.c.diff?r1=text&tr1=1.42&r2=text&tr2=1.41&f=h


Reduce complexity in xfs_trans_init by pushing complex macros out into 
functions and hence reduce the stack footprint there.

Date:  Fri Mar  3 14:23:28 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25360a
xfs_trans.c - 1.170 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_trans.c.diff?r1=text&tr1=1.170&r2=text&tr2=1.169&f=h


Take a dentry structure off the stack into the data segment.

Date:  Fri Mar  3 14:24:30 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25361a
linux-2.6/xfs_export.c - 1.6 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_export.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.5&f=h


Dynamically allocate vattr in places it makes sense to do so, to reduce stack 
use.  Also re-use vattr in some places so that multiple copies are not held 
on-stack.

Date:  Mon Mar  6 10:38:43 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25369a
linux-2.6/xfs_ioctl.c - 1.131 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_ioctl.c.diff?r1=text&tr1=1.131&r2=text&tr2=1.130&f=h
linux-2.6/xfs_file.c - 1.130 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_file.c.diff?r1=text&tr1=1.130&r2=text&tr2=1.129&f=h
linux-2.6/xfs_vnode.c - 1.136 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_vnode.c.diff?r1=text&tr1=1.136&r2=text&tr2=1.135&f=h
linux-2.6/xfs_vnode.h - 1.115 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_vnode.h.diff?r1=text&tr1=1.115&r2=text&tr2=1.114&f=h
linux-2.6/xfs_iops.c - 1.240 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_iops.c.diff?r1=text&tr1=1.240&r2=text&tr2=1.239&f=h


Reduce xfs_bmapi stack use by removing some local state variables, and directly 
testing flags instead.

Date:  Mon Mar  6 10:40:50 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25370a
xfs_bmap.c - 1.342 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.c.diff?r1=text&tr1=1.342&r2=text&tr2=1.341&f=h


Reduce dmapi stack use.

Date:  Mon Mar  6 10:47:28 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  bobo,cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25371a
dmapi/xfs_dm.c - 1.4 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/dmapi/xfs_dm.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.3&f=h


Reduce stack usage within xfs_bmapi by rearranging some code, splitting 
realtime/btree allocators apart.  Based on Glens original patches.

Date:  Mon Mar  6 11:02:56 AEDT 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  overby,cattelan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:25372a
xfs_bmap.c - 1.343 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.c.diff?r1=text&tr1=1.343&r2=text&tr2=1.342&f=h


<Prev in Thread] Current Thread [Next in Thread>