On Fri, 2006-07-07 at 19:49 +0200, Jan Kara wrote:
>   Hi,
> 
>   just one note: I've looked to the in scan_bitmap() in bitmap.c. There is:
>         /* When the bitmap is more than 10% free, anyone can allocate.
>          * When it's less than 10% free, only files that already use the
>          * bitmap are allowed. Once we pass 80% full, this restriction
>          * is lifted.
>          *
>          * We do this so that files that grow later still have space
>          * close to
>          * their original allocation. This improves locality, and
>          * presumably
>          * performance as a result.
>          *
>          * This is only an allocation policy and does not make up for
>          * getting a
>          * bad hint. Decent hinting must be implemented for this to work
>          * well.
>          */
>         if (TEST_OPTION(skip_busy, s)
>             && SB_FREE_BLOCKS(s) > SB_BLOCK_COUNT(s) / 20) {
> 
>    So the comment suggests we should lift the restriction when we are 80%
> full but if you see the condition, it checks wherher we are 95% full! I
> guess that is really asking for trouble and could explain the
> behaviour...
>   Mike could you try changing that 20 in the test to 5? IMHO that could
> fix your problem.

It looks like it lasted a little longer, but probably not enough to
determine that this change made the difference or not.

/dev/hda1            293024652 271457512  21567140  93% /

Attached is the vmstat output of the problem occurring.

[EMAIL PROTECTED] tmp]# opreport -l /usr/src/linux/vmlinux | head -n20
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
samples  %        symbol name
3945     53.9082  default_idle
3031     41.4184  find_next_zero_bit
50        0.6832  __copy_from_user_ll
30        0.4099  handle_IRQ_event
16        0.2186  ide_outb
16        0.2186  ioread8
10        0.1366  ide_end_request
10        0.1366  mmx_clear_page
10        0.1366  number
9         0.1230  __copy_to_user_ll
7         0.0957  get_page_from_freelist
5         0.0683  __find_get_block
5         0.0683  __link_path_walk
5         0.0683  kmem_cache_alloc
5         0.0683  mmx_copy_page
5         0.0683  sysenter_past_esp
4         0.0547  __make_request

-- 
Mike Benoit <[EMAIL PROTECTED]>
Fri Jul  7 13:48:49 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271457512  21567140  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 1  0    572   6416  13472 108712    0    0   836  2086  520   966 57  3 31  9
 0  0    572   6112  13444 108996    0    0     1  1830  461   468  0  5 60 35
 0  0    572   6788  13404 108368    0    0     2  1916  477   484  1  7 61 31
 0  0    572   5760  13424 109288    0    0     1  1884  461   470  0  5 58 37
 0  0    572   6104  13536 108884    0    0     1  1950  462   462  0 10 55 34
 0  1    572   6652  13468 108460    0    0     2  1901  478   483  1  9 57 34
Fri Jul  7 13:49:39 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271546292  21478360  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 1  0    572   6636  13480 108492    0    0   831  2085  520   962 57  3 31  9
 0  1    572   6012  13692 108912    0    0     8  1900  470   476  0  5 60 35
 0  0    572   6148  13584 108792    0    0     1  1844  464   468  0  8 58 33
 0  1    572   5740  13832 108980    0    0     2  1949  479   506  1  1 71 27
 0  1    572   6140  13632 108712    0    0     1  1828  467   481  0  2 60 38
 0  0    572   5984  13532 109072    0    0     2  2012  466   481  0  5 62 34
Fri Jul  7 13:50:29 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271636228  21388424  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 1  2    572   6172  13576 108736    0    0   825  2084  520   959 56  3 31  9
 3  1    572   6288  13664 108584    0    0     2  1844  484   481  1  9 56 34
 3  0    572   6352  13548 108580    0    0     2  1568  435   372  0 32 46 21
 6  0    572   6092  13808 108600    0    0     0   560  360   161  2 94  0  3
 2  2    572   5648  13968 108812    0    0     2   626  399   149  1 88  2  9
 6  1    572   6344  14096 108092    0    0     1   464  343    62  0 99  0  0
Fri Jul  7 13:51:20 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271682836  21341816  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 7  0    572   6328  14096 108100    0    0   820  2077  519   954 56  3 31  9
 3  0    572   5920  14352 108284    0    0     0   416  338    67  1 99  0  0
 5  0    572   6160  14536 107800    0    0     0   476  366    90  1 95  0  4
 7  1    572   6164  14784 107556    0    0     1   428  372   106  0 93  0  6
 2  0    572   6284  14968 107232    0    0     1   541  377   121  1 92  0  7
 5  0    572   5756  15124 107600    0    0     0   474  354    75  1 96  0  3
Fri Jul  7 13:52:12 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271702980  21321672  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 5  0    572   5652  15124 107600    0    0   814  2066  518   949 56  4 31  9
 4  0    572   5868  15096 107628    0    0     0   444  332    56  1 99  0  0
 7  0    572   5608  15324 107632    0    0     0   462  338    68  1 98  0  1
 5  1    572   5924  15408 107220    0    0     0   513  358    80  1 96  0  3
 4  0    572   6368  15568 106676    0    0     1   432  364    94  1 94  0  5
 7  1    572   6476  15816 106292    0    0    10   514  365    88  1 94  0  5
Fri Jul  7 13:53:02 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271723752  21300900  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 6  1    572   6412  15816 106300    0    0   809  2056  517   943 55  5 31  9
 4  0    572   6456  15968 106152    0    0     0   462  367    95  1 94  0  6
 4  0    572   5956  15992 106500    0    0     0   544  349    78  1 97  0  3
 5  1    572   6616  16116 105856    0    0     0   400  338    69  0 99  0  1
 3  1    572   6456  16252 105868    0    0     0   495  353    88  1 94  0  5
 4  0    572   5524  16460 106448    0    0     0   470  370    95  1 94  0  5
Fri Jul  7 13:53:53 PDT 2006
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            293024652 271744908  21279744  93% /
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 3  1    572   6304  16432 105708    0    0   804  2045  515   937 55  5 31  9
 5  0    572   5792  16596 106112    0    0     1   469  353   129  1 95  0  4
 2  0    572   5592  16872 106028    0    0     1   492  382   112  1 89  0 10
 4  1    572   6240  16864 105492    0    0     2   554  347    75  1 97  0  2
 1  1    572   5588  17124 105744    0    0     0   462  350    70  0 98  0  1
 4  0    572   5876  17228 105432    0    0     0   476  341    61  0 99  0  0

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to