linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: zram: per-cpu compression streams
@ 2016-03-23  8:12 Sergey Senozhatsky
  2016-03-24 23:41 ` Minchan Kim
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-03-23  8:12 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Minchan Kim, Sergey Senozhatsky, Sergey Senozhatsky,
	Andrew Morton, linux-kernel

 ( was "[PATCH] zram: export the number of available comp streams"
   forked from http://marc.info/?l=linux-kernel&m=145860707516861 )

d'oh.... sorry, now actually forked.


 Hello Minchan,

 forked into a separate tread.

> On (03/22/16 09:39), Minchan Kim wrote:
> >   zram_bvec_write()
> >   {
> >   	*get_cpu_ptr(comp-stream);
> >   	 zcomp_compress();
> >   	 zs_malloc()
> >   	put_cpu_ptr(comp-stream);
> >   }
> >   
> >   this, however, makes zsmalloc unhapy. pool has GFP_NOIO | __GFP_HIGHMEM
> >   gfp, and GFP_NOIO is ___GFP_DIRECT_RECLAIM|___GFP_KSWAPD_RECLAIM. this
> >   __GFP_DIRECT_RECLAIM is in the conflict with per-cpu streams, because
> >   per-cpu streams require disabled preemption (up until we copy stream
> >   buffer to zspage). so what options do we have here... from the top of
> >   my head (w/o a lot of thinking)...
>  
>  Indeed.
...
>  How about this?
>  
>  zram_bvec_write()
>  {
>  retry:
>          *get_cpu_ptr(comp-stream);
>          zcomp_compress();
>          handle = zs_malloc((gfp &~ __GFP_DIRECT_RECLAIM| | GFP_NOWARN)
>          if (!handle) {
>                  put_cpu_ptr(comp-stream);
>                  handle  = zs_malloc(gfp);
>                  goto retry;
>          }
>          put_cpu_ptr(comp-stream);
>  }

 interesting. the retry jump should go higher, we have "user_mem = kmap_atomic(page)"
 which we unmap right after compression, because a) we don't need
 uncompressed memory anymore b) zs_malloc() can sleep and we can't have atomic
 mapping around. the nasty thing here is is_partial_io(). we need to re-do
 
 	if (is_partial_io(bvec))
 		memcpy(uncmem + offset, user_mem + bvec-bv_offset,
 			bvec-bv_len);
 
 once again in the worst case.
 
 so zs_malloc((gfp &~ __GFP_DIRECT_RECLAIM | GFP_NOWARN) so far can cause
 double memcpy() and double compression. just to outline this.
 
 
 the test.
 
 I executed a number of iozone tests, on each iteration re-creating zram
 device (3GB, LZO, EXT4. the box has 4 x86_64 CPUs).
 
 $DEVICE_SZ=3G
 $FREE_SPACE is 10% of $DEVICE_SZ
 time ./iozone -t $i -R -r $((8*$i))K -s $((($DEVICE_SZ/$i - $FREE_SPACE)/(1024*1024)))M -I +Z
 
 
 columns:
 
        TEST           MAX_STREAMS 4   MAX_STREAMS 8  PER_CPU STREAMS
 ====================================================================
 
 Test #1 iozone -t 1 -R -r 8K -s 2764M -I +Z
   Initial write         853492.31*      835868.50       839789.56
         Rewrite        1642073.88      1657255.75      1693011.50*
            Read        3384044.00*     3218727.25      3269109.50
         Re-read        3389794.50*     3243187.00      3267422.25
    Reverse Read        3209805.75*     3082040.00      3107957.25
     Stride read        3100144.50*     2972280.25      2923155.25
     Random read        2992249.75*     2874605.00      2854824.25
  Mixed workload        2992274.75*     2878212.25      2883840.00
    Random write        1471800.00      1452346.50      1515678.75*
          Pwrite         802083.00       801627.31       820251.69*
           Pread        3443495.00*     3308659.25      3302089.00
          Fwrite        1880446.88      1838607.50      1909490.00*
           Fread        3479614.75      3091634.75      6442964.50*
 =          real          1m4.170s        1m4.513s        1m4.123s
 =          user          0m0.559s        0m0.518s        0m0.511s
 =           sys         0m18.766s       0m19.264s       0m18.641s
 
 
 Test #2 iozone -t 2 -R -r 16K -s 1228M -I +Z
   Initial write        2102532.12      2051809.19      2419072.50*
         Rewrite        2217024.25      2250930.00      3681559.00*
            Read        7716933.25      7898759.00      8345507.75*
         Re-read        7748487.75      7765282.25      8342367.50*
    Reverse Read        7415254.25      7552637.25      7822691.75*
     Stride read        7041909.50      7091049.25      7401273.00*
     Random read        6205044.25      6738888.50      7232104.25*
  Mixed workload        4582990.00      5271651.50      5361002.88*
    Random write        2591893.62      2513729.88      3660774.38*
          Pwrite        1873876.75      1909758.69      2087238.81*
           Pread        4669850.00      4651121.56      4919588.44*
          Fwrite        1937947.25      1940628.06      2034251.25*
           Fread        9930319.00      9970078.00*     9831422.50
 =          real         0m53.844s       0m53.607s       0m52.528s
 =          user          0m0.273s        0m0.289s        0m0.280s
 =           sys         0m16.595s       0m16.478s       0m14.072s
 
 
 Test #3 iozone -t 3 -R -r 24K -s 716M -I +Z
   Initial write        3036567.50      2998918.25      3683853.00*
         Rewrite        3402447.88      3415685.88      5054705.38*
            Read       11767413.00*    11133789.50     11246497.25
         Re-read       11797680.50*    11092592.00     11277382.00
    Reverse Read       10828320.00*    10157665.50     10749055.00
     Stride read       10532039.50*     9943521.75     10464700.25
     Random read       10380365.75*     9807859.25     10234127.00
  Mixed workload        8772132.50*     8415083.50      8457108.50
    Random write        3364875.00      3310042.00      5059136.38*
          Pwrite        2677290.25      2651309.50      3198166.25*
           Pread        5221799.56*     4963050.69      4987293.78
          Fwrite        2026887.56      2047679.00      2124199.62*
           Fread       11310381.25     11413531.50     11444208.75*
 =          real         0m50.209s       0m50.782s       0m49.750s
 =          user          0m0.195s        0m0.205s        0m0.215s
 =           sys         0m14.873s       0m15.159s       0m12.911s
 
 
 Test #4 iozone -t 4 -R -r 32K -s 460M -I +Z
   Initial write        3841474.94      3859279.81      5309988.88*
         Rewrite        3905526.25      3917309.62      6814800.62*
            Read       16233054.50     14843560.25     16352283.75*
         Re-read       16335506.50     15529152.25     16352570.00*
    Reverse Read       15316394.50*    14225482.50     15004897.50
     Stride read       14799380.25*    14064034.25     14355184.25
     Random read       14683771.00     14206928.50     14814913.00*
  Mixed workload        9058851.50      9180650.75     10815917.50*
    Random write        3990585.94      4004757.00      6722088.50*
          Pwrite        3318836.12      3468977.69      4244747.69*
           Pread        5894538.16*     5588046.38      5847345.62
          Fwrite        2227353.75      2186688.62      2386974.88*
           Fread       12046094.00     12240004.75*    12073956.75
 =          real         0m48.561s       0m48.839s       0m48.142s
 =          user          0m0.155s        0m0.170s        0m0.133s
 =           sys         0m13.650s       0m13.684s       0m10.790s
 
 
 Test #5 iozone -t 5 -R -r 40K -s 307M -I +Z
   Initial write        4034878.94      4026610.69      5775746.12*
         Rewrite        3898600.44      3901114.16      6923764.19*
            Read       14947360.88     16698824.25*    10155333.62
         Re-read       15844580.75*    15344057.00      9869874.38
    Reverse Read        7459156.95      9023317.86*     7648295.03
     Stride read       10823891.81      9615553.81     11231183.72*
     Random read       10391702.56*     9740935.75     10048038.28
  Mixed workload        8261830.94     10175925.00*     7535763.75
    Random write        3951423.31      3960984.62      6671441.38*
          Pwrite        4119023.12      4097204.56      5975659.12*
           Pread        6072076.73*     4338668.50      6020808.34
          Fwrite        2417235.47      2337875.88      2665450.62*
           Fread       13393630.25     13648332.00*    13395391.00
 =          real         0m47.756s       0m47.939s       0m47.483s
 =          user          0m0.128s        0m0.128s        0m0.119s
 =           sys         0m10.361s       0m10.392s        0m8.717s
 
 
 Test #6 iozone -t 6 -R -r 48K -s 204M -I +Z
   Initial write        4134932.97      4137171.88      5983193.31*
         Rewrite        3928131.31      3950764.00      7124248.00*
            Read       10965005.75*    10152236.50      9856572.88
         Re-read        9386946.00     10776231.38     14303174.12*
    Reverse Read        6035244.89      7456152.38*     5999446.38
     Stride read        8041000.75      7995307.75     10182936.75*
     Random read        8565099.09     10487707.58*     8694877.25
  Mixed workload        5301593.06      7332589.09*     6802251.06
    Random write        4046482.56      3986854.94      6723824.56*
          Pwrite        4188226.41      4214513.34      6245278.44*
           Pread        3452596.86      3708694.69*     3486420.41
          Fwrite        2829500.22      3030742.72      3033792.28*
           Fread       13331387.75     13490416.50     14940410.25*
 =          real         0m47.150s       0m47.050s       0m47.044s
 =          user          0m0.106s        0m0.100s        0m0.094s
 =           sys          0m9.238s        0m8.804s        0m6.930s
 
 
 Test #7 iozone -t 7 -R -r 56K -s 131M -I +Z
   Initial write        4169480.84      4116331.03      5946801.38*
         Rewrite        3993155.97      3986195.00      6928142.44*
            Read       18901600.25*    10088918.69      6699592.78
         Re-read        8738544.69     14881309.62*    13960026.06
    Reverse Read        5008919.08      7923949.95*     5495212.41
     Stride read        7029436.75      8747574.91*     6477087.25
     Random read        6994738.56*     5448687.81      6585235.53
  Mixed workload        5178632.44      5258914.92      5587421.81*
    Random write        4008977.78      3928116.88      6816453.12*
          Pwrite        4342852.09      4154319.09      6124520.06*
           Pread        3880318.99      2978587.56      4493903.14*
          Fwrite        5557990.03      2923556.59      6126649.94*
           Fread       14451722.00     15281179.62*    14675436.50
 =          real         0m46.321s       0m46.458s       0m45.791s
 =          user          0m0.093s        0m0.089s        0m0.095s
 =           sys          0m6.961s        0m6.600s        0m5.499s
 
 
 Test #8 iozone -t 8 -R -r 64K -s 76M -I +Z
   Initial write        4354783.88      4392731.31      6337397.50*
         Rewrite        4070162.69      3974051.50      7587279.81*
            Read       10095324.56     17945227.88*     8359665.56
         Re-read       12316555.88     20468303.75*     7949999.34
    Reverse Read        4924659.84      8542573.33*     6388858.72
     Stride read       10895715.69     14828968.38*     6107484.81
     Random read        6838537.34     14352104.25*     5389174.97
  Mixed workload        5805646.75      8391745.53*     6052748.25
    Random write        4148973.38      3890847.38      7247214.19*
          Pwrite        4309372.41      4423800.34      6863604.69*
           Pread        4875766.02*     4042375.33      3692948.91
          Fwrite        6102404.31      6021884.41      6634112.09*
           Fread       15485971.12*    14900780.62     13981842.50
 =          real         0m45.618s       0m45.753s       0m45.619s
 =          user          0m0.071s        0m0.080s        0m0.060s
 =           sys          0m4.702s        0m4.430s        0m3.555s
 
 
 Test #9 iozone -t 9 -R -r 72K -s 34M -I +Z
   Initial write        4202354.67      4208936.34      6300798.88*
         Rewrite        4046855.38      4294137.50      7623323.69*
            Read       10926571.88     13304801.81*    10895587.19
         Re-read       17725984.94*     7964431.25     12394078.50
    Reverse Read        5843121.72      5851846.66*     4075657.20
     Stride read        9688998.59     10306234.70*     5566376.62
     Random read        7656689.97      8660602.06*     5437182.36
  Mixed workload        6229215.62     11205238.73*     5575719.75
    Random write        4094822.22      4517401.86      6601624.94*
          Pwrite        4274497.50      4263936.64      6844453.11*
           Pread        6525075.62*     6043725.62      5745003.28
          Fwrite        5958798.56      8430354.78*     7636085.00
           Fread       18636725.12*    17268959.12     16618803.62
 =          real         0m44.945s       0m44.816s       0m45.194s
 =          user          0m0.062s        0m0.060s        0m0.060s
 =           sys          0m2.187s        0m2.223s        0m1.888s
 
 
 Test #10 iozone -t 10 -R -r 80K -s 0M -I +Z
   Initial write        3213973.56      2731512.62      4416466.25*
         Rewrite        3066956.44*     2693819.50       332671.94
            Read        7769523.25*     2681473.75       462840.44
         Re-read        5244861.75      5473037.00*      382183.03
    Reverse Read        7479397.25*     4869597.75       374714.06
     Stride read        5403282.50*     5385083.75       382473.44
     Random read        5131997.25      5176799.75*      380593.56
  Mixed workload        3998043.25      4219049.00*     1645850.45
    Random write        3452832.88      3290861.69      3588531.75*
          Pwrite        3757435.81      2711756.47      4561807.88*
           Pread        2743595.25*     2635835.00       412947.98
          Fwrite       16076549.00     16741977.25*    14797209.38
           Fread       23581812.62*    21664184.25      5064296.97
 =          real         0m44.490s       0m44.444s       0m44.609s
 =          user          0m0.054s        0m0.049s        0m0.055s
 =           sys          0m0.037s        0m0.046s        0m0.148s
 
 
 so when the number of active tasks become larger than the number
 of online CPUS, iozone reports a bit hard to understand data. I
 can assume that since now we keep the preemption disabled longer
 in write path, a concurrent operation (READ or WRITE) cannot preempt
 current anymore... slightly suspicious.
 
 the other hard to understand thing is why do READ-only tests have
 such a huge jitter. READ-only tests don't depend on streams, they
 don't even use them, we supply compressed data directly to
 decompression api.
 
 may be better retire iozone and never use it again.
 
 
 "118 insertions(+), 238 deletions(-)" the patches remove a big
 pile of code.
 
 	-ss
 

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

* Re: zram: per-cpu compression streams
  2016-03-23  8:12 zram: per-cpu compression streams Sergey Senozhatsky
@ 2016-03-24 23:41 ` Minchan Kim
  2016-03-25  1:47   ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Minchan Kim @ 2016-03-24 23:41 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel

Hi Sergey,

On Wed, Mar 23, 2016 at 05:18:27PM +0900, Sergey Senozhatsky wrote:
>  ( was "[PATCH] zram: export the number of available comp streams"
>    forked from http://marc.info/?l=linux-kernel&m=145860707516861 )
> 
> d'oh.... sorry, now actually forked.
> 
> 
>  Hello Minchan,
> 
>  forked into a separate tread.
> 
> > On (03/22/16 09:39), Minchan Kim wrote:
> > >   zram_bvec_write()
> > >   {
> > >   	*get_cpu_ptr(comp-stream);
> > >   	 zcomp_compress();
> > >   	 zs_malloc()
> > >   	put_cpu_ptr(comp-stream);
> > >   }
> > >   
> > >   this, however, makes zsmalloc unhapy. pool has GFP_NOIO | __GFP_HIGHMEM
> > >   gfp, and GFP_NOIO is ___GFP_DIRECT_RECLAIM|___GFP_KSWAPD_RECLAIM. this
> > >   __GFP_DIRECT_RECLAIM is in the conflict with per-cpu streams, because
> > >   per-cpu streams require disabled preemption (up until we copy stream
> > >   buffer to zspage). so what options do we have here... from the top of
> > >   my head (w/o a lot of thinking)...
> >  
> >  Indeed.
> ...
> >  How about this?
> >  
> >  zram_bvec_write()
> >  {
> >  retry:
> >          *get_cpu_ptr(comp-stream);
> >          zcomp_compress();
> >          handle = zs_malloc((gfp &~ __GFP_DIRECT_RECLAIM| | GFP_NOWARN)
> >          if (!handle) {
> >                  put_cpu_ptr(comp-stream);
> >                  handle  = zs_malloc(gfp);
> >                  goto retry;
> >          }
> >          put_cpu_ptr(comp-stream);
> >  }
> 
>  interesting. the retry jump should go higher, we have "user_mem = kmap_atomic(page)"
>  which we unmap right after compression, because a) we don't need
>  uncompressed memory anymore b) zs_malloc() can sleep and we can't have atomic
>  mapping around. the nasty thing here is is_partial_io(). we need to re-do
>  
>  	if (is_partial_io(bvec))
>  		memcpy(uncmem + offset, user_mem + bvec-bv_offset,
>  			bvec-bv_len);
>  
>  once again in the worst case.
>  
>  so zs_malloc((gfp &~ __GFP_DIRECT_RECLAIM | GFP_NOWARN) so far can cause
>  double memcpy() and double compression. just to outline this.
>  
>  
>  the test.
>  
>  I executed a number of iozone tests, on each iteration re-creating zram
>  device (3GB, LZO, EXT4. the box has 4 x86_64 CPUs).
>  
>  $DEVICE_SZ=3G
>  $FREE_SPACE is 10% of $DEVICE_SZ
>  time ./iozone -t $i -R -r $((8*$i))K -s $((($DEVICE_SZ/$i - $FREE_SPACE)/(1024*1024)))M -I +Z
>  
>  
>  columns:
>  
>         TEST           MAX_STREAMS 4   MAX_STREAMS 8  PER_CPU STREAMS
>  ====================================================================
>  
>  Test #1 iozone -t 1 -R -r 8K -s 2764M -I +Z
>    Initial write         853492.31*      835868.50       839789.56
>          Rewrite        1642073.88      1657255.75      1693011.50*
>             Read        3384044.00*     3218727.25      3269109.50
>          Re-read        3389794.50*     3243187.00      3267422.25
>     Reverse Read        3209805.75*     3082040.00      3107957.25
>      Stride read        3100144.50*     2972280.25      2923155.25
>      Random read        2992249.75*     2874605.00      2854824.25
>   Mixed workload        2992274.75*     2878212.25      2883840.00
>     Random write        1471800.00      1452346.50      1515678.75*
>           Pwrite         802083.00       801627.31       820251.69*
>            Pread        3443495.00*     3308659.25      3302089.00
>           Fwrite        1880446.88      1838607.50      1909490.00*
>            Fread        3479614.75      3091634.75      6442964.50*
>  =          real          1m4.170s        1m4.513s        1m4.123s
>  =          user          0m0.559s        0m0.518s        0m0.511s
>  =           sys         0m18.766s       0m19.264s       0m18.641s
>  
>  
>  Test #2 iozone -t 2 -R -r 16K -s 1228M -I +Z
>    Initial write        2102532.12      2051809.19      2419072.50*
>          Rewrite        2217024.25      2250930.00      3681559.00*
>             Read        7716933.25      7898759.00      8345507.75*
>          Re-read        7748487.75      7765282.25      8342367.50*
>     Reverse Read        7415254.25      7552637.25      7822691.75*
>      Stride read        7041909.50      7091049.25      7401273.00*
>      Random read        6205044.25      6738888.50      7232104.25*
>   Mixed workload        4582990.00      5271651.50      5361002.88*
>     Random write        2591893.62      2513729.88      3660774.38*
>           Pwrite        1873876.75      1909758.69      2087238.81*
>            Pread        4669850.00      4651121.56      4919588.44*
>           Fwrite        1937947.25      1940628.06      2034251.25*
>            Fread        9930319.00      9970078.00*     9831422.50
>  =          real         0m53.844s       0m53.607s       0m52.528s
>  =          user          0m0.273s        0m0.289s        0m0.280s
>  =           sys         0m16.595s       0m16.478s       0m14.072s
>  
>  
>  Test #3 iozone -t 3 -R -r 24K -s 716M -I +Z
>    Initial write        3036567.50      2998918.25      3683853.00*
>          Rewrite        3402447.88      3415685.88      5054705.38*
>             Read       11767413.00*    11133789.50     11246497.25
>          Re-read       11797680.50*    11092592.00     11277382.00
>     Reverse Read       10828320.00*    10157665.50     10749055.00
>      Stride read       10532039.50*     9943521.75     10464700.25
>      Random read       10380365.75*     9807859.25     10234127.00
>   Mixed workload        8772132.50*     8415083.50      8457108.50
>     Random write        3364875.00      3310042.00      5059136.38*
>           Pwrite        2677290.25      2651309.50      3198166.25*
>            Pread        5221799.56*     4963050.69      4987293.78
>           Fwrite        2026887.56      2047679.00      2124199.62*
>            Fread       11310381.25     11413531.50     11444208.75*
>  =          real         0m50.209s       0m50.782s       0m49.750s
>  =          user          0m0.195s        0m0.205s        0m0.215s
>  =           sys         0m14.873s       0m15.159s       0m12.911s
>  
>  
>  Test #4 iozone -t 4 -R -r 32K -s 460M -I +Z
>    Initial write        3841474.94      3859279.81      5309988.88*
>          Rewrite        3905526.25      3917309.62      6814800.62*
>             Read       16233054.50     14843560.25     16352283.75*
>          Re-read       16335506.50     15529152.25     16352570.00*
>     Reverse Read       15316394.50*    14225482.50     15004897.50
>      Stride read       14799380.25*    14064034.25     14355184.25
>      Random read       14683771.00     14206928.50     14814913.00*
>   Mixed workload        9058851.50      9180650.75     10815917.50*
>     Random write        3990585.94      4004757.00      6722088.50*
>           Pwrite        3318836.12      3468977.69      4244747.69*
>            Pread        5894538.16*     5588046.38      5847345.62
>           Fwrite        2227353.75      2186688.62      2386974.88*
>            Fread       12046094.00     12240004.75*    12073956.75
>  =          real         0m48.561s       0m48.839s       0m48.142s
>  =          user          0m0.155s        0m0.170s        0m0.133s
>  =           sys         0m13.650s       0m13.684s       0m10.790s
>  
>  
>  Test #5 iozone -t 5 -R -r 40K -s 307M -I +Z
>    Initial write        4034878.94      4026610.69      5775746.12*
>          Rewrite        3898600.44      3901114.16      6923764.19*
>             Read       14947360.88     16698824.25*    10155333.62
>          Re-read       15844580.75*    15344057.00      9869874.38
>     Reverse Read        7459156.95      9023317.86*     7648295.03
>      Stride read       10823891.81      9615553.81     11231183.72*
>      Random read       10391702.56*     9740935.75     10048038.28
>   Mixed workload        8261830.94     10175925.00*     7535763.75
>     Random write        3951423.31      3960984.62      6671441.38*
>           Pwrite        4119023.12      4097204.56      5975659.12*
>            Pread        6072076.73*     4338668.50      6020808.34
>           Fwrite        2417235.47      2337875.88      2665450.62*
>            Fread       13393630.25     13648332.00*    13395391.00
>  =          real         0m47.756s       0m47.939s       0m47.483s
>  =          user          0m0.128s        0m0.128s        0m0.119s
>  =           sys         0m10.361s       0m10.392s        0m8.717s
>  
>  
>  Test #6 iozone -t 6 -R -r 48K -s 204M -I +Z
>    Initial write        4134932.97      4137171.88      5983193.31*
>          Rewrite        3928131.31      3950764.00      7124248.00*
>             Read       10965005.75*    10152236.50      9856572.88
>          Re-read        9386946.00     10776231.38     14303174.12*
>     Reverse Read        6035244.89      7456152.38*     5999446.38
>      Stride read        8041000.75      7995307.75     10182936.75*
>      Random read        8565099.09     10487707.58*     8694877.25
>   Mixed workload        5301593.06      7332589.09*     6802251.06
>     Random write        4046482.56      3986854.94      6723824.56*
>           Pwrite        4188226.41      4214513.34      6245278.44*
>            Pread        3452596.86      3708694.69*     3486420.41
>           Fwrite        2829500.22      3030742.72      3033792.28*
>            Fread       13331387.75     13490416.50     14940410.25*
>  =          real         0m47.150s       0m47.050s       0m47.044s
>  =          user          0m0.106s        0m0.100s        0m0.094s
>  =           sys          0m9.238s        0m8.804s        0m6.930s
>  
>  
>  Test #7 iozone -t 7 -R -r 56K -s 131M -I +Z
>    Initial write        4169480.84      4116331.03      5946801.38*
>          Rewrite        3993155.97      3986195.00      6928142.44*
>             Read       18901600.25*    10088918.69      6699592.78
>          Re-read        8738544.69     14881309.62*    13960026.06
>     Reverse Read        5008919.08      7923949.95*     5495212.41
>      Stride read        7029436.75      8747574.91*     6477087.25
>      Random read        6994738.56*     5448687.81      6585235.53
>   Mixed workload        5178632.44      5258914.92      5587421.81*
>     Random write        4008977.78      3928116.88      6816453.12*
>           Pwrite        4342852.09      4154319.09      6124520.06*
>            Pread        3880318.99      2978587.56      4493903.14*
>           Fwrite        5557990.03      2923556.59      6126649.94*
>            Fread       14451722.00     15281179.62*    14675436.50
>  =          real         0m46.321s       0m46.458s       0m45.791s
>  =          user          0m0.093s        0m0.089s        0m0.095s
>  =           sys          0m6.961s        0m6.600s        0m5.499s
>  
>  
>  Test #8 iozone -t 8 -R -r 64K -s 76M -I +Z
>    Initial write        4354783.88      4392731.31      6337397.50*
>          Rewrite        4070162.69      3974051.50      7587279.81*
>             Read       10095324.56     17945227.88*     8359665.56
>          Re-read       12316555.88     20468303.75*     7949999.34
>     Reverse Read        4924659.84      8542573.33*     6388858.72
>      Stride read       10895715.69     14828968.38*     6107484.81
>      Random read        6838537.34     14352104.25*     5389174.97
>   Mixed workload        5805646.75      8391745.53*     6052748.25
>     Random write        4148973.38      3890847.38      7247214.19*
>           Pwrite        4309372.41      4423800.34      6863604.69*
>            Pread        4875766.02*     4042375.33      3692948.91
>           Fwrite        6102404.31      6021884.41      6634112.09*
>            Fread       15485971.12*    14900780.62     13981842.50
>  =          real         0m45.618s       0m45.753s       0m45.619s
>  =          user          0m0.071s        0m0.080s        0m0.060s
>  =           sys          0m4.702s        0m4.430s        0m3.555s
>  
>  
>  Test #9 iozone -t 9 -R -r 72K -s 34M -I +Z
>    Initial write        4202354.67      4208936.34      6300798.88*
>          Rewrite        4046855.38      4294137.50      7623323.69*
>             Read       10926571.88     13304801.81*    10895587.19
>          Re-read       17725984.94*     7964431.25     12394078.50
>     Reverse Read        5843121.72      5851846.66*     4075657.20
>      Stride read        9688998.59     10306234.70*     5566376.62
>      Random read        7656689.97      8660602.06*     5437182.36
>   Mixed workload        6229215.62     11205238.73*     5575719.75
>     Random write        4094822.22      4517401.86      6601624.94*
>           Pwrite        4274497.50      4263936.64      6844453.11*
>            Pread        6525075.62*     6043725.62      5745003.28
>           Fwrite        5958798.56      8430354.78*     7636085.00
>            Fread       18636725.12*    17268959.12     16618803.62
>  =          real         0m44.945s       0m44.816s       0m45.194s
>  =          user          0m0.062s        0m0.060s        0m0.060s
>  =           sys          0m2.187s        0m2.223s        0m1.888s
>  
>  
>  Test #10 iozone -t 10 -R -r 80K -s 0M -I +Z
>    Initial write        3213973.56      2731512.62      4416466.25*
>          Rewrite        3066956.44*     2693819.50       332671.94
>             Read        7769523.25*     2681473.75       462840.44
>          Re-read        5244861.75      5473037.00*      382183.03
>     Reverse Read        7479397.25*     4869597.75       374714.06
>      Stride read        5403282.50*     5385083.75       382473.44
>      Random read        5131997.25      5176799.75*      380593.56
>   Mixed workload        3998043.25      4219049.00*     1645850.45
>     Random write        3452832.88      3290861.69      3588531.75*
>           Pwrite        3757435.81      2711756.47      4561807.88*
>            Pread        2743595.25*     2635835.00       412947.98
>           Fwrite       16076549.00     16741977.25*    14797209.38
>            Fread       23581812.62*    21664184.25      5064296.97
>  =          real         0m44.490s       0m44.444s       0m44.609s
>  =          user          0m0.054s        0m0.049s        0m0.055s
>  =           sys          0m0.037s        0m0.046s        0m0.148s
>  
>  
>  so when the number of active tasks become larger than the number
>  of online CPUS, iozone reports a bit hard to understand data. I
>  can assume that since now we keep the preemption disabled longer
>  in write path, a concurrent operation (READ or WRITE) cannot preempt
>  current anymore... slightly suspicious.
>  
>  the other hard to understand thing is why do READ-only tests have
>  such a huge jitter. READ-only tests don't depend on streams, they
>  don't even use them, we supply compressed data directly to
>  decompression api.
>  
>  may be better retire iozone and never use it again.
>  
>  
>  "118 insertions(+), 238 deletions(-)" the patches remove a big
>  pile of code.

First of all, I appreciate you very much!
At a glance, on write workload, huge win but worth to investigate
how such fluctuation/regression happens on read-related test
(read and mixed workload).

Could you send your patchset? I will test it.

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

* Re: zram: per-cpu compression streams
  2016-03-24 23:41 ` Minchan Kim
@ 2016-03-25  1:47   ` Sergey Senozhatsky
  2016-03-28  3:21     ` Minchan Kim
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-03-25  1:47 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Sergey Senozhatsky, Andrew Morton, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2519 bytes --]

Hello Minchan,

On (03/25/16 08:41), Minchan Kim wrote:
[..]
> >  Test #10 iozone -t 10 -R -r 80K -s 0M -I +Z
> >    Initial write        3213973.56      2731512.62      4416466.25*
> >          Rewrite        3066956.44*     2693819.50       332671.94
> >             Read        7769523.25*     2681473.75       462840.44
> >          Re-read        5244861.75      5473037.00*      382183.03
> >     Reverse Read        7479397.25*     4869597.75       374714.06
> >      Stride read        5403282.50*     5385083.75       382473.44
> >      Random read        5131997.25      5176799.75*      380593.56
> >   Mixed workload        3998043.25      4219049.00*     1645850.45
> >     Random write        3452832.88      3290861.69      3588531.75*
> >           Pwrite        3757435.81      2711756.47      4561807.88*
> >            Pread        2743595.25*     2635835.00       412947.98
> >           Fwrite       16076549.00     16741977.25*    14797209.38
> >            Fread       23581812.62*    21664184.25      5064296.97
> >  =          real         0m44.490s       0m44.444s       0m44.609s
> >  =          user          0m0.054s        0m0.049s        0m0.055s
> >  =           sys          0m0.037s        0m0.046s        0m0.148s
> >  
> >  
> >  so when the number of active tasks become larger than the number
> >  of online CPUS, iozone reports a bit hard to understand data. I
> >  can assume that since now we keep the preemption disabled longer
> >  in write path, a concurrent operation (READ or WRITE) cannot preempt
> >  current anymore... slightly suspicious.
> >  
> >  the other hard to understand thing is why do READ-only tests have
> >  such a huge jitter. READ-only tests don't depend on streams, they
> >  don't even use them, we supply compressed data directly to
> >  decompression api.
> >  
> >  may be better retire iozone and never use it again.
> >  
> >  
> >  "118 insertions(+), 238 deletions(-)" the patches remove a big
> >  pile of code.
> 
> First of all, I appreciate you very much!

thanks!

> At a glance, on write workload, huge win but worth to investigate
> how such fluctuation/regression happens on read-related test
> (read and mixed workload).

yes, was going to investigate in more details but got interrupted,
will return back to it today/tomorrow.

> Could you send your patchset? I will test it.

oh, sorry, sure! attached (because it's not a real patch submission
yet, but they look more or less ready I guess).

patches are against next-20160324.

	-ss

[-- Attachment #2: 0001-zsmalloc-require-GFP-in-zs_malloc.patch --]
[-- Type: text/x-diff, Size: 3948 bytes --]

>From 6bf369f2180dad1c8013a4847ec09d3b9056e910 Mon Sep 17 00:00:00 2001
From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: [PATCH 1/2] zsmalloc: require GFP in zs_malloc()

Pass GFP flags to zs_malloc() instead of using fixed ones (set
during pool creation), so we can be more flexible. Apart from
that, this also align zs_malloc() interface with zspool/zbud.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 drivers/block/zram/zram_drv.c |  2 +-
 include/linux/zsmalloc.h      |  2 +-
 mm/zsmalloc.c                 | 15 ++++++---------
 3 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 370c2f7..9030992 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -717,7 +717,7 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
 			src = uncmem;
 	}
 
-	handle = zs_malloc(meta->mem_pool, clen);
+	handle = zs_malloc(meta->mem_pool, clen, GFP_NOIO | __GFP_HIGHMEM);
 	if (!handle) {
 		pr_err("Error allocating memory for compressed page: %u, size=%zu\n",
 			index, clen);
diff --git a/include/linux/zsmalloc.h b/include/linux/zsmalloc.h
index 34eb160..6d89f8b 100644
--- a/include/linux/zsmalloc.h
+++ b/include/linux/zsmalloc.h
@@ -44,7 +44,7 @@ struct zs_pool;
 struct zs_pool *zs_create_pool(const char *name, gfp_t flags);
 void zs_destroy_pool(struct zs_pool *pool);
 
-unsigned long zs_malloc(struct zs_pool *pool, size_t size);
+unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags);
 void zs_free(struct zs_pool *pool, unsigned long obj);
 
 void *zs_map_object(struct zs_pool *pool, unsigned long handle,
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index e72efb1..19027a1 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -247,7 +247,6 @@ struct zs_pool {
 	struct size_class **size_class;
 	struct kmem_cache *handle_cachep;
 
-	gfp_t flags;	/* allocation flags used when growing pool */
 	atomic_long_t pages_allocated;
 
 	struct zs_pool_stats stats;
@@ -295,10 +294,10 @@ static void destroy_handle_cache(struct zs_pool *pool)
 	kmem_cache_destroy(pool->handle_cachep);
 }
 
-static unsigned long alloc_handle(struct zs_pool *pool)
+static unsigned long alloc_handle(struct zs_pool *pool, gfp_t gfp)
 {
 	return (unsigned long)kmem_cache_alloc(pool->handle_cachep,
-		pool->flags & ~__GFP_HIGHMEM);
+		gfp & ~__GFP_HIGHMEM);
 }
 
 static void free_handle(struct zs_pool *pool, unsigned long handle)
@@ -335,7 +334,7 @@ static void zs_zpool_destroy(void *pool)
 static int zs_zpool_malloc(void *pool, size_t size, gfp_t gfp,
 			unsigned long *handle)
 {
-	*handle = zs_malloc(pool, size);
+	*handle = zs_malloc(pool, size, gfp);
 	return *handle ? 0 : -1;
 }
 static void zs_zpool_free(void *pool, unsigned long handle)
@@ -1391,7 +1390,7 @@ static unsigned long obj_malloc(struct page *first_page,
  * otherwise 0.
  * Allocation requests with size > ZS_MAX_ALLOC_SIZE will fail.
  */
-unsigned long zs_malloc(struct zs_pool *pool, size_t size)
+unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t gfp)
 {
 	unsigned long handle, obj;
 	struct size_class *class;
@@ -1400,7 +1399,7 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size)
 	if (unlikely(!size || size > ZS_MAX_ALLOC_SIZE))
 		return 0;
 
-	handle = alloc_handle(pool);
+	handle = alloc_handle(pool, gfp);
 	if (!handle)
 		return 0;
 
@@ -1413,7 +1412,7 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t size)
 
 	if (!first_page) {
 		spin_unlock(&class->lock);
-		first_page = alloc_zspage(class, pool->flags);
+		first_page = alloc_zspage(class, gfp);
 		if (unlikely(!first_page)) {
 			free_handle(pool, handle);
 			return 0;
@@ -1954,8 +1953,6 @@ struct zs_pool *zs_create_pool(const char *name, gfp_t flags)
 		prev_class = class;
 	}
 
-	pool->flags = flags;
-
 	if (zs_pool_stat_create(name, pool))
 		goto err;
 
-- 
2.8.0.rc0.1.gd285ab0


[-- Attachment #3: 0002-zram-switch-to-per-cpu-streams.patch --]
[-- Type: text/x-diff, Size: 13134 bytes --]

>From 02e997f42a77ebf9e2fdeb84c5e7eaf4dca21b37 Mon Sep 17 00:00:00 2001
From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: [PATCH 2/2] zram: switch to per-cpu streams

Use per-cpu compression streams.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 drivers/block/zram/zcomp.c    | 293 ++++++++++++------------------------------
 drivers/block/zram/zcomp.h    |  12 +-
 drivers/block/zram/zram_drv.c |  32 ++++-
 3 files changed, 110 insertions(+), 227 deletions(-)

diff --git a/drivers/block/zram/zcomp.c b/drivers/block/zram/zcomp.c
index 3ef42e5..d4159e4 100644
--- a/drivers/block/zram/zcomp.c
+++ b/drivers/block/zram/zcomp.c
@@ -13,6 +13,7 @@
 #include <linux/slab.h>
 #include <linux/wait.h>
 #include <linux/sched.h>
+#include <linux/cpu.h>
 
 #include "zcomp.h"
 #include "zcomp_lzo.h"
@@ -20,29 +21,6 @@
 #include "zcomp_lz4.h"
 #endif
 
-/*
- * single zcomp_strm backend
- */
-struct zcomp_strm_single {
-	struct mutex strm_lock;
-	struct zcomp_strm *zstrm;
-};
-
-/*
- * multi zcomp_strm backend
- */
-struct zcomp_strm_multi {
-	/* protect strm list */
-	spinlock_t strm_lock;
-	/* max possible number of zstrm streams */
-	int max_strm;
-	/* number of available zstrm streams */
-	int avail_strm;
-	/* list of available strms */
-	struct list_head idle_strm;
-	wait_queue_head_t strm_wait;
-};
-
 static struct zcomp_backend *backends[] = {
 	&zcomp_lzo,
 #ifdef CONFIG_ZRAM_LZ4_COMPRESS
@@ -93,188 +71,6 @@ static struct zcomp_strm *zcomp_strm_alloc(struct zcomp *comp, gfp_t flags)
 	return zstrm;
 }
 
-/*
- * get idle zcomp_strm or wait until other process release
- * (zcomp_strm_release()) one for us
- */
-static struct zcomp_strm *zcomp_strm_multi_find(struct zcomp *comp)
-{
-	struct zcomp_strm_multi *zs = comp->stream;
-	struct zcomp_strm *zstrm;
-
-	while (1) {
-		spin_lock(&zs->strm_lock);
-		if (!list_empty(&zs->idle_strm)) {
-			zstrm = list_entry(zs->idle_strm.next,
-					struct zcomp_strm, list);
-			list_del(&zstrm->list);
-			spin_unlock(&zs->strm_lock);
-			return zstrm;
-		}
-		/* zstrm streams limit reached, wait for idle stream */
-		if (zs->avail_strm >= zs->max_strm) {
-			spin_unlock(&zs->strm_lock);
-			wait_event(zs->strm_wait, !list_empty(&zs->idle_strm));
-			continue;
-		}
-		/* allocate new zstrm stream */
-		zs->avail_strm++;
-		spin_unlock(&zs->strm_lock);
-		/*
-		 * This function can be called in swapout/fs write path
-		 * so we can't use GFP_FS|IO. And it assumes we already
-		 * have at least one stream in zram initialization so we
-		 * don't do best effort to allocate more stream in here.
-		 * A default stream will work well without further multiple
-		 * streams. That's why we use NORETRY | NOWARN.
-		 */
-		zstrm = zcomp_strm_alloc(comp, GFP_NOIO | __GFP_NORETRY |
-					__GFP_NOWARN);
-		if (!zstrm) {
-			spin_lock(&zs->strm_lock);
-			zs->avail_strm--;
-			spin_unlock(&zs->strm_lock);
-			wait_event(zs->strm_wait, !list_empty(&zs->idle_strm));
-			continue;
-		}
-		break;
-	}
-	return zstrm;
-}
-
-/* add stream back to idle list and wake up waiter or free the stream */
-static void zcomp_strm_multi_release(struct zcomp *comp, struct zcomp_strm *zstrm)
-{
-	struct zcomp_strm_multi *zs = comp->stream;
-
-	spin_lock(&zs->strm_lock);
-	if (zs->avail_strm <= zs->max_strm) {
-		list_add(&zstrm->list, &zs->idle_strm);
-		spin_unlock(&zs->strm_lock);
-		wake_up(&zs->strm_wait);
-		return;
-	}
-
-	zs->avail_strm--;
-	spin_unlock(&zs->strm_lock);
-	zcomp_strm_free(comp, zstrm);
-}
-
-/* change max_strm limit */
-static bool zcomp_strm_multi_set_max_streams(struct zcomp *comp, int num_strm)
-{
-	struct zcomp_strm_multi *zs = comp->stream;
-	struct zcomp_strm *zstrm;
-
-	spin_lock(&zs->strm_lock);
-	zs->max_strm = num_strm;
-	/*
-	 * if user has lowered the limit and there are idle streams,
-	 * immediately free as much streams (and memory) as we can.
-	 */
-	while (zs->avail_strm > num_strm && !list_empty(&zs->idle_strm)) {
-		zstrm = list_entry(zs->idle_strm.next,
-				struct zcomp_strm, list);
-		list_del(&zstrm->list);
-		zcomp_strm_free(comp, zstrm);
-		zs->avail_strm--;
-	}
-	spin_unlock(&zs->strm_lock);
-	return true;
-}
-
-static void zcomp_strm_multi_destroy(struct zcomp *comp)
-{
-	struct zcomp_strm_multi *zs = comp->stream;
-	struct zcomp_strm *zstrm;
-
-	while (!list_empty(&zs->idle_strm)) {
-		zstrm = list_entry(zs->idle_strm.next,
-				struct zcomp_strm, list);
-		list_del(&zstrm->list);
-		zcomp_strm_free(comp, zstrm);
-	}
-	kfree(zs);
-}
-
-static int zcomp_strm_multi_create(struct zcomp *comp, int max_strm)
-{
-	struct zcomp_strm *zstrm;
-	struct zcomp_strm_multi *zs;
-
-	comp->destroy = zcomp_strm_multi_destroy;
-	comp->strm_find = zcomp_strm_multi_find;
-	comp->strm_release = zcomp_strm_multi_release;
-	comp->set_max_streams = zcomp_strm_multi_set_max_streams;
-	zs = kmalloc(sizeof(struct zcomp_strm_multi), GFP_KERNEL);
-	if (!zs)
-		return -ENOMEM;
-
-	comp->stream = zs;
-	spin_lock_init(&zs->strm_lock);
-	INIT_LIST_HEAD(&zs->idle_strm);
-	init_waitqueue_head(&zs->strm_wait);
-	zs->max_strm = max_strm;
-	zs->avail_strm = 1;
-
-	zstrm = zcomp_strm_alloc(comp, GFP_KERNEL);
-	if (!zstrm) {
-		kfree(zs);
-		return -ENOMEM;
-	}
-	list_add(&zstrm->list, &zs->idle_strm);
-	return 0;
-}
-
-static struct zcomp_strm *zcomp_strm_single_find(struct zcomp *comp)
-{
-	struct zcomp_strm_single *zs = comp->stream;
-	mutex_lock(&zs->strm_lock);
-	return zs->zstrm;
-}
-
-static void zcomp_strm_single_release(struct zcomp *comp,
-		struct zcomp_strm *zstrm)
-{
-	struct zcomp_strm_single *zs = comp->stream;
-	mutex_unlock(&zs->strm_lock);
-}
-
-static bool zcomp_strm_single_set_max_streams(struct zcomp *comp, int num_strm)
-{
-	/* zcomp_strm_single support only max_comp_streams == 1 */
-	return false;
-}
-
-static void zcomp_strm_single_destroy(struct zcomp *comp)
-{
-	struct zcomp_strm_single *zs = comp->stream;
-	zcomp_strm_free(comp, zs->zstrm);
-	kfree(zs);
-}
-
-static int zcomp_strm_single_create(struct zcomp *comp)
-{
-	struct zcomp_strm_single *zs;
-
-	comp->destroy = zcomp_strm_single_destroy;
-	comp->strm_find = zcomp_strm_single_find;
-	comp->strm_release = zcomp_strm_single_release;
-	comp->set_max_streams = zcomp_strm_single_set_max_streams;
-	zs = kmalloc(sizeof(struct zcomp_strm_single), GFP_KERNEL);
-	if (!zs)
-		return -ENOMEM;
-
-	comp->stream = zs;
-	mutex_init(&zs->strm_lock);
-	zs->zstrm = zcomp_strm_alloc(comp, GFP_KERNEL);
-	if (!zs->zstrm) {
-		kfree(zs);
-		return -ENOMEM;
-	}
-	return 0;
-}
-
 /* show available compressors */
 ssize_t zcomp_available_show(const char *comp, char *buf)
 {
@@ -301,17 +97,17 @@ bool zcomp_available_algorithm(const char *comp)
 
 bool zcomp_set_max_streams(struct zcomp *comp, int num_strm)
 {
-	return comp->set_max_streams(comp, num_strm);
+	return true;
 }
 
 struct zcomp_strm *zcomp_strm_find(struct zcomp *comp)
 {
-	return comp->strm_find(comp);
+	return *get_cpu_ptr(comp->stream);
 }
 
 void zcomp_strm_release(struct zcomp *comp, struct zcomp_strm *zstrm)
 {
-	comp->strm_release(comp, zstrm);
+	put_cpu_ptr(comp->stream);
 }
 
 int zcomp_compress(struct zcomp *comp, struct zcomp_strm *zstrm,
@@ -327,9 +123,83 @@ int zcomp_decompress(struct zcomp *comp, const unsigned char *src,
 	return comp->backend->decompress(src, src_len, dst);
 }
 
+static int __zcomp_cpu_notifier(struct zcomp *comp,
+		unsigned long action, unsigned long cpu)
+{
+	struct zcomp_strm *zstrm;
+
+	switch (action) {
+	case CPU_UP_PREPARE:
+		if (WARN_ON(*per_cpu_ptr(comp->stream, cpu)))
+			break;
+		zstrm = zcomp_strm_alloc(comp, GFP_KERNEL);
+		if (IS_ERR_OR_NULL(zstrm)) {
+			pr_err("Can't allocate a compression stream\n");
+			return NOTIFY_BAD;
+		}
+		*per_cpu_ptr(comp->stream, cpu) = zstrm;
+		break;
+	case CPU_DEAD:
+	case CPU_UP_CANCELED:
+		zstrm = *per_cpu_ptr(comp->stream, cpu);
+		if (!IS_ERR_OR_NULL(zstrm))
+			zcomp_strm_free(comp, zstrm);
+		*per_cpu_ptr(comp->stream, cpu) = NULL;
+		break;
+	default:
+		break;
+	}
+	return NOTIFY_OK;
+}
+
+static int zcomp_cpu_notifier(struct notifier_block *nb,
+		unsigned long action, void *pcpu)
+{
+	unsigned long cpu = (unsigned long)pcpu;
+	struct zcomp *comp = container_of(nb, typeof(*comp), notifier);
+
+	return __zcomp_cpu_notifier(comp, action, cpu);
+}
+
+static int zcomp_init(struct zcomp *comp)
+{
+	unsigned long cpu;
+	int ret;
+
+	comp->notifier.notifier_call = zcomp_cpu_notifier;
+
+	comp->stream = alloc_percpu(struct zcomp_strm *);
+	if (!comp->stream)
+		return -ENOMEM;
+
+	cpu_notifier_register_begin();
+	for_each_online_cpu(cpu) {
+		ret = __zcomp_cpu_notifier(comp, CPU_UP_PREPARE, cpu);
+		if (ret == NOTIFY_BAD)
+			goto cleanup;
+	}
+	__register_cpu_notifier(&comp->notifier);
+	cpu_notifier_register_done();
+	return 0;
+
+cleanup:
+	for_each_online_cpu(cpu)
+		__zcomp_cpu_notifier(comp, CPU_UP_CANCELED, cpu);
+	cpu_notifier_register_done();
+	return -ENOMEM;
+}
+
 void zcomp_destroy(struct zcomp *comp)
 {
-	comp->destroy(comp);
+	unsigned long cpu;
+
+	cpu_notifier_register_begin();
+	for_each_online_cpu(cpu)
+		__zcomp_cpu_notifier(comp, CPU_UP_CANCELED, cpu);
+	__unregister_cpu_notifier(&comp->notifier);
+	cpu_notifier_register_done();
+
+	free_percpu(comp->stream);
 	kfree(comp);
 }
 
@@ -356,10 +226,7 @@ struct zcomp *zcomp_create(const char *compress, int max_strm)
 		return ERR_PTR(-ENOMEM);
 
 	comp->backend = backend;
-	if (max_strm > 1)
-		error = zcomp_strm_multi_create(comp, max_strm);
-	else
-		error = zcomp_strm_single_create(comp);
+	error = zcomp_init(comp);
 	if (error) {
 		kfree(comp);
 		return ERR_PTR(error);
diff --git a/drivers/block/zram/zcomp.h b/drivers/block/zram/zcomp.h
index b7d2a4b..aba8c21 100644
--- a/drivers/block/zram/zcomp.h
+++ b/drivers/block/zram/zcomp.h
@@ -10,8 +10,6 @@
 #ifndef _ZCOMP_H_
 #define _ZCOMP_H_
 
-#include <linux/mutex.h>
-
 struct zcomp_strm {
 	/* compression/decompression buffer */
 	void *buffer;
@@ -21,8 +19,6 @@ struct zcomp_strm {
 	 * working memory)
 	 */
 	void *private;
-	/* used in multi stream backend, protected by backend strm_lock */
-	struct list_head list;
 };
 
 /* static compression backend */
@@ -41,13 +37,9 @@ struct zcomp_backend {
 
 /* dynamic per-device compression frontend */
 struct zcomp {
-	void *stream;
+	struct zcomp_strm * __percpu *stream;
 	struct zcomp_backend *backend;
-
-	struct zcomp_strm *(*strm_find)(struct zcomp *comp);
-	void (*strm_release)(struct zcomp *comp, struct zcomp_strm *zstrm);
-	bool (*set_max_streams)(struct zcomp *comp, int num_strm);
-	void (*destroy)(struct zcomp *comp);
+	struct notifier_block notifier;
 };
 
 ssize_t zcomp_available_show(const char *comp, char *buf);
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 9030992..c5e682c 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -650,7 +650,7 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
 {
 	int ret = 0;
 	size_t clen;
-	unsigned long handle;
+	unsigned long handle = 0;
 	struct page *page;
 	unsigned char *user_mem, *cmem, *src, *uncmem = NULL;
 	struct zram_meta *meta = zram->meta;
@@ -673,9 +673,8 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
 			goto out;
 	}
 
-	zstrm = zcomp_strm_find(zram->comp);
+compress_again:
 	user_mem = kmap_atomic(page);
-
 	if (is_partial_io(bvec)) {
 		memcpy(uncmem + offset, user_mem + bvec->bv_offset,
 		       bvec->bv_len);
@@ -699,6 +698,7 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
 		goto out;
 	}
 
+	zstrm = zcomp_strm_find(zram->comp);
 	ret = zcomp_compress(zram->comp, zstrm, uncmem, &clen);
 	if (!is_partial_io(bvec)) {
 		kunmap_atomic(user_mem);
@@ -710,6 +710,7 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
 		pr_err("Compression failed! err=%d\n", ret);
 		goto out;
 	}
+
 	src = zstrm->buffer;
 	if (unlikely(clen > max_zpage_size)) {
 		clen = PAGE_SIZE;
@@ -717,8 +718,31 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
 			src = uncmem;
 	}
 
-	handle = zs_malloc(meta->mem_pool, clen, GFP_NOIO | __GFP_HIGHMEM);
+	/*
+	 * handle allocation has 2 paths:
+	 * a) fast path is executed with preemption disabled (for
+	 *  per-cpu streams) and has __GFP_DIRECT_RECLAIM bit clear,
+	 *  since we can't sleep;
+	 * b) slow path enables preemption and attempts to alocate
+	 *  the page with __GFP_DIRECT_RECLAIM bit set. we have to
+	 *  put per-cpu compression stream and, thus, to re-do
+	 *  the compression once handle is allocated.
+	 *
+	 * if we have a 'non-null' handle here then we are coming
+	 * from the slow path and handle has already been allocated.
+	 */
+	if (!handle)
+		handle = zs_malloc(meta->mem_pool, clen,
+				__GFP_KSWAPD_RECLAIM |
+				__GFP_NOWARN |
+				__GFP_HIGHMEM);
 	if (!handle) {
+		zcomp_strm_release(zram->comp, zstrm);
+		handle = zs_malloc(meta->mem_pool, clen,
+				GFP_NOIO | __GFP_HIGHMEM);
+		if (handle)
+			goto compress_again;
+
 		pr_err("Error allocating memory for compressed page: %u, size=%zu\n",
 			index, clen);
 		ret = -ENOMEM;
-- 
2.8.0.rc0.1.gd285ab0


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

* Re: zram: per-cpu compression streams
  2016-03-25  1:47   ` Sergey Senozhatsky
@ 2016-03-28  3:21     ` Minchan Kim
  2016-03-30  8:34       ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Minchan Kim @ 2016-03-28  3:21 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel

Hi Sergey,

On Fri, Mar 25, 2016 at 10:47:06AM +0900, Sergey Senozhatsky wrote:
> Hello Minchan,
> 
> On (03/25/16 08:41), Minchan Kim wrote:
> [..]
> > >  Test #10 iozone -t 10 -R -r 80K -s 0M -I +Z
> > >    Initial write        3213973.56      2731512.62      4416466.25*
> > >          Rewrite        3066956.44*     2693819.50       332671.94
> > >             Read        7769523.25*     2681473.75       462840.44
> > >          Re-read        5244861.75      5473037.00*      382183.03
> > >     Reverse Read        7479397.25*     4869597.75       374714.06
> > >      Stride read        5403282.50*     5385083.75       382473.44
> > >      Random read        5131997.25      5176799.75*      380593.56
> > >   Mixed workload        3998043.25      4219049.00*     1645850.45
> > >     Random write        3452832.88      3290861.69      3588531.75*
> > >           Pwrite        3757435.81      2711756.47      4561807.88*
> > >            Pread        2743595.25*     2635835.00       412947.98
> > >           Fwrite       16076549.00     16741977.25*    14797209.38
> > >            Fread       23581812.62*    21664184.25      5064296.97
> > >  =          real         0m44.490s       0m44.444s       0m44.609s
> > >  =          user          0m0.054s        0m0.049s        0m0.055s
> > >  =           sys          0m0.037s        0m0.046s        0m0.148s
> > >  
> > >  
> > >  so when the number of active tasks become larger than the number
> > >  of online CPUS, iozone reports a bit hard to understand data. I
> > >  can assume that since now we keep the preemption disabled longer
> > >  in write path, a concurrent operation (READ or WRITE) cannot preempt
> > >  current anymore... slightly suspicious.
> > >  
> > >  the other hard to understand thing is why do READ-only tests have
> > >  such a huge jitter. READ-only tests don't depend on streams, they
> > >  don't even use them, we supply compressed data directly to
> > >  decompression api.
> > >  
> > >  may be better retire iozone and never use it again.
> > >  
> > >  
> > >  "118 insertions(+), 238 deletions(-)" the patches remove a big
> > >  pile of code.
> > 
> > First of all, I appreciate you very much!
> 
> thanks!
> 
> > At a glance, on write workload, huge win but worth to investigate
> > how such fluctuation/regression happens on read-related test
> > (read and mixed workload).
> 
> yes, was going to investigate in more details but got interrupted,
> will return back to it today/tomorrow.
> 
> > Could you send your patchset? I will test it.
> 
> oh, sorry, sure! attached (because it's not a real patch submission
> yet, but they look more or less ready I guess).
> 
> patches are against next-20160324.

Thanks, I tested your patch with fio.
My laptop is 8G ram, 4 CPU.
job file is here.

= 
[global]
bs=4k
ioengine=sync
direct=1
size=100m
numjobs=${NUMJOBS}
group_reporting
buffer_compress_percentage=50
filename=/dev/zram0
loops=10

[seq-read]
rw=read
stonewall

[rand-read]
rw=randread
stonewall

[seq-write]
rw=write
stonewall

[rand-write]
rw=randwrite
stonewall

[mixed-seq]
rw=rw
stonewall

[mixed-rand]
rw=randrw
stonewall
=

= old(ie, spinlock) version =

1) NR_PROCESS:8 NR_STREAM: 1

seq-read: (groupid=0, jobs=8): err= 0: pid=23148: Mon Mar 28 12:07:15 2016
  read : io=8000.0MB, bw=5925.1MB/s, iops=1517.4K, runt=  1350msec
rand-read: (groupid=1, jobs=8): err= 0: pid=23156: Mon Mar 28 12:07:15 2016
  read : io=8000.0MB, bw=4889.1MB/s, iops=1251.9K, runt=  1636msec
seq-write: (groupid=2, jobs=8): err= 0: pid=23164: Mon Mar 28 12:07:15 2016
  write: io=8000.0MB, bw=914898KB/s, iops=228724, runt=  8954msec
rand-write: (groupid=3, jobs=8): err= 0: pid=23172: Mon Mar 28 12:07:15 2016
  write: io=8000.0MB, bw=913368KB/s, iops=228342, runt=  8969msec
mixed-seq: (groupid=4, jobs=8): err= 0: pid=23180: Mon Mar 28 12:07:15 2016
  read : io=4003.1MB, bw=881152KB/s, iops=220287, runt=  4653msec
mixed-rand: (groupid=5, jobs=8): err= 0: pid=23189: Mon Mar 28 12:07:15 2016
  read : io=4003.5MB, bw=837491KB/s, iops=209372, runt=  4895msec


2) NR_PROCESS:8 NR_STREAM: 8

seq-read: (groupid=0, jobs=8): err= 0: pid=23248: Mon Mar 28 12:07:57 2016
  read : io=8000.0MB, bw=5847.1MB/s, iops=1497.8K, runt=  1368msec
rand-read: (groupid=1, jobs=8): err= 0: pid=23256: Mon Mar 28 12:07:57 2016
  read : io=8000.0MB, bw=4778.1MB/s, iops=1223.5K, runt=  1674msec
seq-write: (groupid=2, jobs=8): err= 0: pid=23264: Mon Mar 28 12:07:57 2016
  write: io=8000.0MB, bw=1644.7MB/s, iops=420879, runt=  4866msec
rand-write: (groupid=3, jobs=8): err= 0: pid=23272: Mon Mar 28 12:07:57 2016
  write: io=8000.0MB, bw=1507.5MB/s, iops=385905, runt=  5307msec
mixed-seq: (groupid=4, jobs=8): err= 0: pid=23280: Mon Mar 28 12:07:57 2016
  read : io=4003.1MB, bw=1225.1MB/s, iops=313839, runt=  3266msec
mixed-rand: (groupid=5, jobs=8): err= 0: pid=23288: Mon Mar 28 12:07:57 2016
  read : io=4003.5MB, bw=1098.4MB/s, iops=281097, runt=  3646msec


3) NR_PROCESS:8 NR_STREAM: 16

seq-read: (groupid=0, jobs=8): err= 0: pid=23350: Mon Mar 28 12:08:38 2016
  read : io=8000.0MB, bw=5843.7MB/s, iops=1495.1K, runt=  1369msec
rand-read: (groupid=1, jobs=8): err= 0: pid=23358: Mon Mar 28 12:08:38 2016
  read : io=8000.0MB, bw=4810.6MB/s, iops=1231.6K, runt=  1663msec
seq-write: (groupid=2, jobs=8): err= 0: pid=23366: Mon Mar 28 12:08:38 2016
  write: io=8000.0MB, bw=1655.7MB/s, iops=423841, runt=  4832msec
rand-write: (groupid=3, jobs=8): err= 0: pid=23374: Mon Mar 28 12:08:38 2016
  write: io=8000.0MB, bw=1501.6MB/s, iops=384384, runt=  5328msec
mixed-seq: (groupid=4, jobs=8): err= 0: pid=23382: Mon Mar 28 12:08:38 2016
  read : io=4003.1MB, bw=1221.9MB/s, iops=312786, runt=  3277msec
mixed-rand: (groupid=5, jobs=8): err= 0: pid=23390: Mon Mar 28 12:08:38 2016
  read : io=4003.5MB, bw=1104.1MB/s, iops=282647, runt=  3626msec

= percpu =

1) NR_PROCESS:8

seq-read: (groupid=0, jobs=8): err= 0: pid=22804: Mon Mar 28 11:58:22 2016
  read : io=8000.0MB, bw=5610.1MB/s, iops=1436.2K, runt=  1426msec
rand-read: (groupid=1, jobs=8): err= 0: pid=22812: Mon Mar 28 11:58:22 2016
  read : io=8000.0MB, bw=4881.3MB/s, iops=1249.6K, runt=  1639msec
seq-write: (groupid=2, jobs=8): err= 0: pid=22820: Mon Mar 28 11:58:22 2016
  write: io=8000.0MB, bw=1814.6MB/s, iops=464399, runt=  4410msec
rand-write: (groupid=3, jobs=8): err= 0: pid=22829: Mon Mar 28 11:58:22 2016
  write: io=8000.0MB, bw=1647.9MB/s, iops=421833, runt=  4855msec
mixed-seq: (groupid=4, jobs=8): err= 0: pid=22837: Mon Mar 28 11:58:22 2016
  read : io=4003.1MB, bw=1275.2MB/s, iops=326433, runt=  3140msec
mixed-rand: (groupid=5, jobs=8): err= 0: pid=22846: Mon Mar 28 11:58:22 2016
  read : io=4003.5MB, bw=1119.3MB/s, iops=286519, runt=  3577msec

In my test, read is stable. It seems iozone or fs made noise in your test.
Benefit cause by per-cpu on write side is about 10% which is not huge
compared to your previous post.
Hmm, Could you retest to who how the benefit is big?

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

* Re: zram: per-cpu compression streams
  2016-03-28  3:21     ` Minchan Kim
@ 2016-03-30  8:34       ` Sergey Senozhatsky
  2016-03-30 22:12         ` Minchan Kim
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-03-30  8:34 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Sergey Senozhatsky, Andrew Morton, linux-kernel

Hello Minchan,
sorry for long reply.

On (03/28/16 12:21), Minchan Kim wrote:
[..]
> group_reporting
> buffer_compress_percentage=50
> filename=/dev/zram0
> loops=10

I used a bit different script. no `buffer_compress_percentage' option,
because it provide "a mix of random data and zeroes"

buffer_compress_percentage=int
    If this is set, then fio will attempt to provide IO buffer content
    (on WRITEs) that compress to the specified level. Fio does this by
    providing a mix of random data and zeroes

and I also used scramble_buffers=0. but default scramble_buffers is
true, so

scramble_buffers=bool
    If refill_buffers is too costly and the target is using data
    deduplication, then setting this option will slightly modify the IO
    buffer contents to defeat normal de-dupe attempts. This is not
    enough to defeat more clever block compression attempts, but it will
    stop naive dedupe of blocks. Default: true.

hm, but I guess it's not enough; fio probably will have different
data (well, only if we didn't ask it to zero-fill the buffers) for
different tests, causing different zram->zsmalloc behaviour. need
to check it.


> Hmm, Could you retest to who how the benefit is big?

sure. the results are:

- seq-read
- rand-read
- seq-write
- rand-write  (READ + WRITE)
- mixed-seq
- mixed-rand  (READ + WRITE)

TEST        4 streams     8 streams       per-cpu

#jobs1               	           	           
READ:      2665.4MB/s	 2515.2MB/s	 2632.4MB/s
READ:      2258.2MB/s	 2055.2MB/s	 2166.2MB/s
WRITE:     933180KB/s	 894260KB/s	 898234KB/s
WRITE:     765576KB/s	 728154KB/s	 746396KB/s
READ:      563169KB/s	 541004KB/s	 551541KB/s
WRITE:     562660KB/s	 540515KB/s	 551043KB/s
READ:      493656KB/s	 477990KB/s	 488041KB/s
WRITE:     493210KB/s	 477558KB/s	 487600KB/s
#jobs2               	           	           
READ:      5116.7MB/s	 4607.1MB/s	 4401.5MB/s
READ:      4401.5MB/s	 3993.6MB/s	 3831.6MB/s
WRITE:     1539.9MB/s	 1425.5MB/s	 1600.0MB/s
WRITE:     1311.1MB/s	 1228.7MB/s	 1380.6MB/s
READ:      1001.8MB/s	 960799KB/s	 989.63MB/s
WRITE:     998.31MB/s	 957540KB/s	 986.26MB/s
READ:      921439KB/s	 860387KB/s	 899720KB/s
WRITE:     918314KB/s	 857469KB/s	 896668KB/s
#jobs3               	           	           
READ:      6670.9MB/s	 6469.9MB/s	 6548.8MB/s
READ:      5743.4MB/s	 5507.8MB/s	 5608.4MB/s
WRITE:     1923.8MB/s	 1885.9MB/s	 2191.9MB/s
WRITE:     1622.4MB/s	 1605.4MB/s	 1842.2MB/s
READ:      1277.3MB/s	 1295.8MB/s	 1395.2MB/s
WRITE:     1276.9MB/s	 1295.4MB/s	 1394.7MB/s
READ:      1152.6MB/s	 1137.1MB/s	 1216.6MB/s
WRITE:     1152.2MB/s	 1137.6MB/s	 1216.2MB/s
#jobs4               	           	           
READ:      8720.4MB/s	 7301.7MB/s	 7896.2MB/s
READ:      7510.3MB/s	 6690.1MB/s	 6456.2MB/s
WRITE:     2211.6MB/s	 1930.8MB/s	 2713.9MB/s
WRITE:     2002.2MB/s	 1629.8MB/s	 2227.7MB/s
READ:      1657.8MB/s	 1437.1MB/s	 1765.8MB/s
WRITE:     1651.7MB/s	 1432.7MB/s	 1759.3MB/s
READ:      1467.7MB/s	 1201.7MB/s	 1523.5MB/s
WRITE:     1462.3MB/s	 1197.3MB/s	 1517.9MB/s
#jobs5               	           	           
READ:      7791.9MB/s	 6852.7MB/s	 7487.9MB/s
READ:      6214.6MB/s	 6449.6MB/s	 7106.5MB/s
WRITE:     2017.9MB/s	 1978.1MB/s	 2221.5MB/s
WRITE:     1913.1MB/s	 1664.9MB/s	 1985.8MB/s
READ:      1417.6MB/s	 1447.7MB/s	 1558.8MB/s
WRITE:     1419.8MB/s	 1449.3MB/s	 1561.2MB/s
READ:      1336.9MB/s	 1234.1MB/s	 1404.7MB/s
WRITE:     1338.2MB/s	 1236.9MB/s	 1406.8MB/s
#jobs6               	           	           
READ:      8680.9MB/s	 8500.0MB/s	 7116.3MB/s
READ:      7329.4MB/s	 6580.7MB/s	 6476.2MB/s
WRITE:     2121.4MB/s	 1918.6MB/s	 2472.8MB/s
WRITE:     1936.8MB/s	 1826.9MB/s	 2106.8MB/s
READ:      1559.9MB/s	 1506.3MB/s	 1643.6MB/s
WRITE:     1554.7MB/s	 1501.2MB/s	 1637.2MB/s
READ:      1459.7MB/s	 1258.9MB/s	 1502.6MB/s
WRITE:     1454.8MB/s	 1254.6MB/s	 1497.5MB/s
#jobs7               	           	           
READ:      9170.0MB/s	 7905.2MB/s	 8043.9MB/s
READ:      6412.7MB/s	 6792.7MB/s	 6457.8MB/s
WRITE:     2042.4MB/s	 1972.5MB/s	 2400.6MB/s
WRITE:     1938.8MB/s	 1808.7MB/s	 2152.6MB/s
READ:      1634.9MB/s	 1505.8MB/s	 1746.4MB/s
WRITE:     1640.1MB/s	 1511.4MB/s	 1753.7MB/s
READ:      1407.9MB/s	 1239.1MB/s	 1480.8MB/s
WRITE:     1413.8MB/s	 1245.2MB/s	 1486.1MB/s
#jobs8               	           	           
READ:      8563.4MB/s	 8106.7MB/s	 7696.3MB/s
READ:      6909.1MB/s	 5790.5MB/s	 6537.7MB/s
WRITE:     2040.3MB/s	 2061.2MB/s	 2481.7MB/s
WRITE:     1993.5MB/s	 1859.4MB/s	 2171.5MB/s
READ:      1691.6MB/s	 1585.8MB/s	 1749.9MB/s
WRITE:     1686.3MB/s	 1580.1MB/s	 1744.5MB/s
READ:      1478.3MB/s	 1365.4MB/s	 1529.2MB/s
WRITE:     1473.5MB/s	 1361.2MB/s	 1525.3MB/s
#jobs9               	           	           
READ:      9272.8MB/s	 11769MB/s	 8052.7MB/s
READ:      6954.6MB/s	 6375.0MB/s	 7116.3MB/s
WRITE:     2170.3MB/s	 1961.6MB/s	 2487.9MB/s
WRITE:     1865.9MB/s	 1974.2MB/s	 2233.6MB/s
READ:      1663.9MB/s	 1561.1MB/s	 1719.1MB/s
WRITE:     1662.3MB/s	 1560.6MB/s	 1718.4MB/s
READ:      1515.6MB/s	 1379.2MB/s	 1546.2MB/s
WRITE:     1514.2MB/s	 1377.8MB/s	 1544.8MB/s
#jobs10              	           	           
READ:      8737.3MB/s	 7950.4MB/s	 7915.5MB/s
READ:      6884.9MB/s	 6332.8MB/s	 6334.3MB/s
WRITE:     2077.9MB/s	 2005.4MB/s	 2509.5MB/s
WRITE:     1893.3MB/s	 1935.9MB/s	 2155.4MB/s
READ:      1519.2MB/s	 1548.1MB/s	 1622.9MB/s
WRITE:     1519.5MB/s	 1549.2MB/s	 1623.2MB/s
READ:      1383.4MB/s	 1385.2MB/s	 1437.6MB/s
WRITE:     1383.6MB/s	 1385.4MB/s	 1437.8MB/s


	-ss

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

* Re: zram: per-cpu compression streams
  2016-03-30  8:34       ` Sergey Senozhatsky
@ 2016-03-30 22:12         ` Minchan Kim
  2016-03-31  1:26           ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Minchan Kim @ 2016-03-30 22:12 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel

On Wed, Mar 30, 2016 at 05:34:19PM +0900, Sergey Senozhatsky wrote:
> Hello Minchan,
> sorry for long reply.
> 
> On (03/28/16 12:21), Minchan Kim wrote:
> [..]
> > group_reporting
> > buffer_compress_percentage=50
> > filename=/dev/zram0
> > loops=10
> 
> I used a bit different script. no `buffer_compress_percentage' option,
> because it provide "a mix of random data and zeroes"

Normally, zram's compression ratio is 3 or 2 so I used it.
Hmm, isn't it more real practice usecase?
If we don't use buffer_compress_percentage, what's the content in the buffer?

> 
> buffer_compress_percentage=int
>     If this is set, then fio will attempt to provide IO buffer content
>     (on WRITEs) that compress to the specified level. Fio does this by
>     providing a mix of random data and zeroes
> 
> and I also used scramble_buffers=0. but default scramble_buffers is
> true, so
> 
> scramble_buffers=bool
>     If refill_buffers is too costly and the target is using data
>     deduplication, then setting this option will slightly modify the IO
>     buffer contents to defeat normal de-dupe attempts. This is not
>     enough to defeat more clever block compression attempts, but it will
>     stop naive dedupe of blocks. Default: true.
> 
> hm, but I guess it's not enough; fio probably will have different
> data (well, only if we didn't ask it to zero-fill the buffers) for
> different tests, causing different zram->zsmalloc behaviour. need
> to check it.
> 
> 
> > Hmm, Could you retest to who how the benefit is big?
> 
> sure. the results are:
> 
> - seq-read
> - rand-read
> - seq-write
> - rand-write  (READ + WRITE)
> - mixed-seq
> - mixed-rand  (READ + WRITE)
> 
> TEST        4 streams     8 streams       per-cpu
> 
> #jobs1               	           	           
> READ:      2665.4MB/s	 2515.2MB/s	 2632.4MB/s
> READ:      2258.2MB/s	 2055.2MB/s	 2166.2MB/s
> WRITE:     933180KB/s	 894260KB/s	 898234KB/s
> WRITE:     765576KB/s	 728154KB/s	 746396KB/s
> READ:      563169KB/s	 541004KB/s	 551541KB/s
> WRITE:     562660KB/s	 540515KB/s	 551043KB/s
> READ:      493656KB/s	 477990KB/s	 488041KB/s
> WRITE:     493210KB/s	 477558KB/s	 487600KB/s
> #jobs2               	           	           
> READ:      5116.7MB/s	 4607.1MB/s	 4401.5MB/s
> READ:      4401.5MB/s	 3993.6MB/s	 3831.6MB/s
> WRITE:     1539.9MB/s	 1425.5MB/s	 1600.0MB/s
> WRITE:     1311.1MB/s	 1228.7MB/s	 1380.6MB/s
> READ:      1001.8MB/s	 960799KB/s	 989.63MB/s
> WRITE:     998.31MB/s	 957540KB/s	 986.26MB/s
> READ:      921439KB/s	 860387KB/s	 899720KB/s
> WRITE:     918314KB/s	 857469KB/s	 896668KB/s
> #jobs3               	           	           
> READ:      6670.9MB/s	 6469.9MB/s	 6548.8MB/s
> READ:      5743.4MB/s	 5507.8MB/s	 5608.4MB/s
> WRITE:     1923.8MB/s	 1885.9MB/s	 2191.9MB/s
> WRITE:     1622.4MB/s	 1605.4MB/s	 1842.2MB/s
> READ:      1277.3MB/s	 1295.8MB/s	 1395.2MB/s
> WRITE:     1276.9MB/s	 1295.4MB/s	 1394.7MB/s
> READ:      1152.6MB/s	 1137.1MB/s	 1216.6MB/s
> WRITE:     1152.2MB/s	 1137.6MB/s	 1216.2MB/s
> #jobs4               	           	           
> READ:      8720.4MB/s	 7301.7MB/s	 7896.2MB/s
> READ:      7510.3MB/s	 6690.1MB/s	 6456.2MB/s
> WRITE:     2211.6MB/s	 1930.8MB/s	 2713.9MB/s
> WRITE:     2002.2MB/s	 1629.8MB/s	 2227.7MB/s

Your case is 40% win. It's huge, Nice!
I tested with your guide line(i.e., no buffer_compress_percentage,
scramble_buffers=0) but still 10% enhance in my machine.
Hmm,,,

How about if you test my fio job.file in your machine?
Still, it's 40% win?

Also, I want to test again in your exactly same configuration.
Could you tell me zram environment(ie, disksize, compression
algorithm) and share me your job.file of fio?


Thanks.

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

* Re: zram: per-cpu compression streams
  2016-03-30 22:12         ` Minchan Kim
@ 2016-03-31  1:26           ` Sergey Senozhatsky
  2016-03-31  5:53             ` Minchan Kim
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-03-31  1:26 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Sergey Senozhatsky, Andrew Morton, linux-kernel

Hello,

On (03/31/16 07:12), Minchan Kim wrote:
[..]
> > I used a bit different script. no `buffer_compress_percentage' option,
> > because it provide "a mix of random data and zeroes"
> 
> Normally, zram's compression ratio is 3 or 2 so I used it.
> Hmm, isn't it more real practice usecase?

this option guarantees that the supplied to zram data will have
a requested compression ratio? hm, but we never do that in real
life, zram sees random data.

> If we don't use buffer_compress_percentage, what's the content in the buffer?

that's a good question. I quickly looked into the fio source code,
we need to use "buffer_pattern=str" option, I think. so the buffers
will be filled with the same data.

I don't mind to have buffer_compress_percentage as a separate test (set
as a local test option), but I think that using common buffer pattern
adds more confidence when we compare test results.

[..]
> > hm, but I guess it's not enough; fio probably will have different
> > data (well, only if we didn't ask it to zero-fill the buffers) for
> > different tests, causing different zram->zsmalloc behaviour. need
> > to check it.
[..]
> > #jobs4               	           	           
> > READ:      8720.4MB/s	 7301.7MB/s	 7896.2MB/s
> > READ:      7510.3MB/s	 6690.1MB/s	 6456.2MB/s
> > WRITE:     2211.6MB/s	 1930.8MB/s	 2713.9MB/s
> > WRITE:     2002.2MB/s	 1629.8MB/s	 2227.7MB/s
> 
> Your case is 40% win. It's huge, Nice!
> I tested with your guide line(i.e., no buffer_compress_percentage,
> scramble_buffers=0) but still 10% enhance in my machine.
> Hmm,,,
> 
> How about if you test my fio job.file in your machine?
> Still, it's 40% win?

I'll retest with new config.

> Also, I want to test again in your exactly same configuration.
> Could you tell me zram environment(ie, disksize, compression
> algorithm) and share me your job.file of fio?

sure.

3G, lzo


--- my fio-template is

[global]
bs=4k
ioengine=sync
direct=1
size=__SIZE__
numjobs=__JOBS__
group_reporting
filename=/dev/zram0
loops=1
buffer_pattern=0xbadc0ffee
scramble_buffers=0

[seq-read]
rw=read
stonewall

[rand-read]
rw=randread
stonewall

[seq-write]
rw=write
stonewall

[rand-write]
rw=randwrite
stonewall

[mixed-seq]
rw=rw
stonewall

[mixed-rand]
rw=randrw
stonewall


#separate test with
#buffer_compress_percentage=50



--- my create-zram script is as follows.


#!/bin/sh

rmmod zram
modprobe zram

if [ -e /sys/block/zram0/initstate ]; then
        initdone=`cat /sys/block/zram0/initstate`
        if [ $initdone = 1 ]; then
                echo "init done"
                exit 1
        fi
fi

echo 8 > /sys/block/zram0/max_comp_streams

echo lzo > /sys/block/zram0/comp_algorithm
cat /sys/block/zram0/comp_algorithm

cat /sys/block/zram0/max_comp_streams
echo $1 > /sys/block/zram0/disksize





--- and I use it as


#!/bin/sh

DEVICE_SZ=$((3 * 1024 * 1024 * 1024))
FREE_SPACE=$(($DEVICE_SZ / 10))
LOG=/tmp/fio-zram-test
LOG_SUFFIX=$1

function reset_zram
{
        rmmod zram
}

function create_zram
{
        ./create-zram $DEVICE_SZ
}

function main
{
        local j
        local i

        if [ "z$LOG_SUFFIX" = "z" ]; then
                LOG_SUFFIX="UNSET"
        fi

        LOG=$LOG-$LOG_SUFFIX

        for i in {1..10}; do
                reset_zram
                create_zram

                cat fio-test-template | sed s/__JOBS__/$i/ | sed s/__SIZE__/$((($DEVICE_SZ/$i - $FREE_SPACE)/(1024*1024)))M/ > fio-test
                echo "#jobs$i" >> $LOG
                time fio ./fio-test >> $LOG
        done

        reset_zram
}

main




-- then I use this simple script

#!/bin/sh

if [ "z$2" = "z" ]; then
        cat $1 | egrep "#jobs|READ|WRITE" | awk '{printf "%-15s %15s\n", $1, $3}' | sed s/aggrb=// | sed s/,//
else
        cat $1 | egrep "#jobs|READ|WRITE" | awk '{printf " %-15s\n", $3}' | sed s/aggrb=// | sed s/\#jobs[0-9]*// | sed s/,//
fi




as 

	./squeeze.sh fio-zram-test-4-stream > 4s
	./squeeze.sh fio-zram-test-8-stream A > 8s
	./squeeze.sh fio-zram-test-per-cpu A > pc

and

	paste 4s 8s pc > result


	-ss

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

* Re: zram: per-cpu compression streams
  2016-03-31  1:26           ` Sergey Senozhatsky
@ 2016-03-31  5:53             ` Minchan Kim
  2016-03-31  6:34               ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Minchan Kim @ 2016-03-31  5:53 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel

Hello Sergey,

On Thu, Mar 31, 2016 at 10:26:26AM +0900, Sergey Senozhatsky wrote:
> Hello,
> 
> On (03/31/16 07:12), Minchan Kim wrote:
> [..]
> > > I used a bit different script. no `buffer_compress_percentage' option,
> > > because it provide "a mix of random data and zeroes"
> > 
> > Normally, zram's compression ratio is 3 or 2 so I used it.
> > Hmm, isn't it more real practice usecase?
> 
> this option guarantees that the supplied to zram data will have
> a requested compression ratio? hm, but we never do that in real
> life, zram sees random data.

I agree it's hard to create such random read data with benchmark.
One option is that we share swap dump data of real product, for exmaple,
android or webOS and feed it to the benchmark. But as you know, it
cannot cover all of workload, either. So, to just easy test, I wanted
to make represntative compression ratio data and fio provides option
for it via buffer_compress_percentage.
It would be better rather than feeding random data which could make
lots of noise for each test cycle.

> 
> > If we don't use buffer_compress_percentage, what's the content in the buffer?
> 
> that's a good question. I quickly looked into the fio source code,
> we need to use "buffer_pattern=str" option, I think. so the buffers
> will be filled with the same data.
> 
> I don't mind to have buffer_compress_percentage as a separate test (set
> as a local test option), but I think that using common buffer pattern
> adds more confidence when we compare test results.

If we both uses same "buffer_compress_percentage=something", it's
good to compare. The benefit of buffer_compress_percentage is we can
change compression ratio easily in zram testing and see various
test to see what compression ratio or speed affects the system.

>  
> [..]
> > > hm, but I guess it's not enough; fio probably will have different
> > > data (well, only if we didn't ask it to zero-fill the buffers) for
> > > different tests, causing different zram->zsmalloc behaviour. need
> > > to check it.
> [..]
> > > #jobs4               	           	           
> > > READ:      8720.4MB/s	 7301.7MB/s	 7896.2MB/s
> > > READ:      7510.3MB/s	 6690.1MB/s	 6456.2MB/s
> > > WRITE:     2211.6MB/s	 1930.8MB/s	 2713.9MB/s
> > > WRITE:     2002.2MB/s	 1629.8MB/s	 2227.7MB/s
> > 
> > Your case is 40% win. It's huge, Nice!
> > I tested with your guide line(i.e., no buffer_compress_percentage,
> > scramble_buffers=0) but still 10% enhance in my machine.
> > Hmm,,,
> > 
> > How about if you test my fio job.file in your machine?
> > Still, it's 40% win?
> 
> I'll retest with new config.
> 
> > Also, I want to test again in your exactly same configuration.
> > Could you tell me zram environment(ie, disksize, compression
> > algorithm) and share me your job.file of fio?
> 
> sure.

I tested with you suggested parameter.
In my side, win is better compared to my previous test but it seems
your test is so fast. IOW, filesize is small and loops is just 1.
Please test filesize=500m loops=10 or 20.
It can make your test more stable and enhance is 10~20% in my side.
Let's discuss further once test result between us is consistent.

Thanks.

> 
> 3G, lzo
> 
> 
> --- my fio-template is
> 
> [global]
> bs=4k
> ioengine=sync
> direct=1
> size=__SIZE__
> numjobs=__JOBS__
> group_reporting
> filename=/dev/zram0
> loops=1
> buffer_pattern=0xbadc0ffee
> scramble_buffers=0
> 
> [seq-read]
> rw=read
> stonewall
> 
> [rand-read]
> rw=randread
> stonewall
> 
> [seq-write]
> rw=write
> stonewall
> 
> [rand-write]
> rw=randwrite
> stonewall
> 
> [mixed-seq]
> rw=rw
> stonewall
> 
> [mixed-rand]
> rw=randrw
> stonewall
> 
> 
> #separate test with
> #buffer_compress_percentage=50
> 
> 
> 
> --- my create-zram script is as follows.
> 
> 
> #!/bin/sh
> 
> rmmod zram
> modprobe zram
> 
> if [ -e /sys/block/zram0/initstate ]; then
>         initdone=`cat /sys/block/zram0/initstate`
>         if [ $initdone = 1 ]; then
>                 echo "init done"
>                 exit 1
>         fi
> fi
> 
> echo 8 > /sys/block/zram0/max_comp_streams
> 
> echo lzo > /sys/block/zram0/comp_algorithm
> cat /sys/block/zram0/comp_algorithm
> 
> cat /sys/block/zram0/max_comp_streams
> echo $1 > /sys/block/zram0/disksize
> 
> 
> 
> 
> 
> --- and I use it as
> 
> 
> #!/bin/sh
> 
> DEVICE_SZ=$((3 * 1024 * 1024 * 1024))
> FREE_SPACE=$(($DEVICE_SZ / 10))
> LOG=/tmp/fio-zram-test
> LOG_SUFFIX=$1
> 
> function reset_zram
> {
>         rmmod zram
> }
> 
> function create_zram
> {
>         ./create-zram $DEVICE_SZ
> }
> 
> function main
> {
>         local j
>         local i
> 
>         if [ "z$LOG_SUFFIX" = "z" ]; then
>                 LOG_SUFFIX="UNSET"
>         fi
> 
>         LOG=$LOG-$LOG_SUFFIX
> 
>         for i in {1..10}; do
>                 reset_zram
>                 create_zram
> 
>                 cat fio-test-template | sed s/__JOBS__/$i/ | sed s/__SIZE__/$((($DEVICE_SZ/$i - $FREE_SPACE)/(1024*1024)))M/ > fio-test
>                 echo "#jobs$i" >> $LOG
>                 time fio ./fio-test >> $LOG
>         done
> 
>         reset_zram
> }
> 
> main
> 
> 
> 
> 
> -- then I use this simple script
> 
> #!/bin/sh
> 
> if [ "z$2" = "z" ]; then
>         cat $1 | egrep "#jobs|READ|WRITE" | awk '{printf "%-15s %15s\n", $1, $3}' | sed s/aggrb=// | sed s/,//
> else
>         cat $1 | egrep "#jobs|READ|WRITE" | awk '{printf " %-15s\n", $3}' | sed s/aggrb=// | sed s/\#jobs[0-9]*// | sed s/,//
> fi
> 
> 
> 
> 
> as 
> 
> 	./squeeze.sh fio-zram-test-4-stream > 4s
> 	./squeeze.sh fio-zram-test-8-stream A > 8s
> 	./squeeze.sh fio-zram-test-per-cpu A > pc
> 
> and
> 
> 	paste 4s 8s pc > result
> 
> 
> 	-ss

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

* Re: zram: per-cpu compression streams
  2016-03-31  5:53             ` Minchan Kim
@ 2016-03-31  6:34               ` Sergey Senozhatsky
  2016-04-01 15:38                 ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-03-31  6:34 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Sergey Senozhatsky, Andrew Morton, linux-kernel

Hello Minchan,

On (03/31/16 14:53), Minchan Kim wrote:
> Hello Sergey,
>
> > that's a good question. I quickly looked into the fio source code,
> > we need to use "buffer_pattern=str" option, I think. so the buffers
> > will be filled with the same data.
> > 
> > I don't mind to have buffer_compress_percentage as a separate test (set
> > as a local test option), but I think that using common buffer pattern
> > adds more confidence when we compare test results.
> 
> If we both uses same "buffer_compress_percentage=something", it's
> good to compare. The benefit of buffer_compress_percentage is we can
> change compression ratio easily in zram testing and see various
> test to see what compression ratio or speed affects the system.

let's start with "common data" (buffer_pattern=str), not common
compression ratio. buffer_compress_percentage=something is calculated
for which compression algorithm? deflate (zlib)? or it's something else?
we use lzo/lz4, common data is more predictable.

[..]
> > sure.
> 
> I tested with you suggested parameter.
> In my side, win is better compared to my previous test but it seems
> your test is so fast. IOW, filesize is small and loops is just 1.
> Please test filesize=500m loops=10 or 20.

that will require 5G zram, I don't have that much ram on the box so I'll
test later today on another box.

I split the device size between jobs. if I have 10 jobs, then the file
size of each job is DISK_SIZE/10; but in total jobs write/read DEVICE_SZ
bytes. jobs start with large 1 * DEVICE_SZ/1 files and go down to
10 * DEVICE_SZ/10 files.

> It can make your test more stable and enhance is 10~20% in my side.
> Let's discuss further once test result between us is consistent.

	-ss

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

* Re: zram: per-cpu compression streams
  2016-03-31  6:34               ` Sergey Senozhatsky
@ 2016-04-01 15:38                 ` Sergey Senozhatsky
  2016-04-04  0:27                   ` Minchan Kim
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-01 15:38 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky

Hello Minchan,

On (03/31/16 15:34), Sergey Senozhatsky wrote:
> > I tested with you suggested parameter.
> > In my side, win is better compared to my previous test but it seems
> > your test is so fast. IOW, filesize is small and loops is just 1.
> > Please test filesize=500m loops=10 or 20.

fio
- loops=10
- buffer_pattern=0xbadc0ffee

zram 6G. no intel p-state, deadline IO scheduler, no lockdep (no lock debugging).


test            8 streams        per-cpu

#jobs1                         	                
READ:           4118.2MB/s	 4105.3MB/s
READ:           3487.7MB/s	 3624.9MB/s
WRITE:          2197.8MB/s	 2305.1MB/s
WRITE:          1776.2MB/s	 1887.5MB/s
READ:           736589KB/s	 745648KB/s
WRITE:          736353KB/s	 745409KB/s
READ:           679279KB/s	 686559KB/s
WRITE:          679093KB/s	 686371KB/s
#jobs2                         	                
READ:           6924.6MB/s	 7160.2MB/s
READ:           6213.2MB/s	 6247.1MB/s
WRITE:          2510.3MB/s	 3680.1MB/s
WRITE:          2286.2MB/s	 3153.9MB/s
READ:           1163.1MB/s	 1333.7MB/s
WRITE:          1163.4MB/s	 1332.2MB/s
READ:           1122.9MB/s	 1240.3MB/s
WRITE:          1121.9MB/s	 1239.2MB/s
#jobs3                         	                
READ:           10304MB/s	 10424MB/s
READ:           9014.5MB/s	 9014.5MB/s
WRITE:          3883.9MB/s	 5373.8MB/s
WRITE:          3549.1MB/s	 4576.4MB/s
READ:           1704.4MB/s	 1916.8MB/s
WRITE:          1704.9MB/s	 1915.9MB/s
READ:           1603.5MB/s	 1806.8MB/s
WRITE:          1598.8MB/s	 1800.8MB/s
#jobs4                         	                
READ:           13509MB/s	 12792MB/s
READ:           10899MB/s	 11434MB/s
WRITE:          4027.2MB/s	 6272.8MB/s
WRITE:          3902.1MB/s	 5389.2MB/s
READ:           2090.9MB/s	 2344.4MB/s
WRITE:          2085.2MB/s	 2337.1MB/s
READ:           1968.1MB/s	 2185.9MB/s
WRITE:          1969.5MB/s	 2186.4MB/s
#jobs5                         	                
READ:           12634MB/s	 11607MB/s
READ:           9932.7MB/s	 9980.6MB/s
WRITE:          4275.8MB/s	 5844.3MB/s
WRITE:          4210.1MB/s	 5262.3MB/s
READ:           1995.6MB/s	 2211.4MB/s
WRITE:          1988.4MB/s	 2203.4MB/s
READ:           1930.1MB/s	 2191.8MB/s
WRITE:          1929.8MB/s	 2190.3MB/s
#jobs6                         	                
READ:           12270MB/s	 13012MB/s
READ:           11221MB/s	 10815MB/s
WRITE:          4643.4MB/s	 6090.9MB/s
WRITE:          4373.6MB/s	 5772.8MB/s
READ:           2232.6MB/s	 2358.4MB/s
WRITE:          2233.4MB/s	 2359.2MB/s
READ:           2082.6MB/s	 2285.8MB/s
WRITE:          2075.9MB/s	 2278.1MB/s
#jobs7                         	                
READ:           13617MB/s	 14172MB/s
READ:           12290MB/s	 11734MB/s
WRITE:          5077.3MB/s	 6315.7MB/s
WRITE:          4719.4MB/s	 5825.1MB/s
READ:           2379.8MB/s	 2523.7MB/s
WRITE:          2373.7MB/s	 2516.7MB/s
READ:           2287.9MB/s	 2362.4MB/s
WRITE:          2283.9MB/s	 2358.2MB/s
#jobs8                         	                
READ:           15130MB/s	 15533MB/s
READ:           12952MB/s	 13077MB/s
WRITE:          5586.6MB/s	 7108.2MB/s
WRITE:          5233.5MB/s	 6591.3MB/s
READ:           2541.2MB/s	 2709.2MB/s
WRITE:          2544.6MB/s	 2713.2MB/s
READ:           2450.6MB/s	 2590.7MB/s
WRITE:          2449.4MB/s	 2589.3MB/s
#jobs9                         	                
READ:           13480MB/s	 13909MB/s
READ:           12389MB/s	 12000MB/s
WRITE:          5266.8MB/s	 6594.9MB/s
WRITE:          4971.6MB/s	 6442.2MB/s
READ:           2464.9MB/s	 2470.9MB/s
WRITE:          2482.7MB/s	 2488.8MB/s
READ:           2171.9MB/s	 2402.2MB/s
WRITE:          2174.9MB/s	 2405.5MB/s
#jobs10                        	                
READ:           14647MB/s	 14667MB/s
READ:           11765MB/s	 12032MB/s
WRITE:          5248.7MB/s	 6740.4MB/s
WRITE:          4779.8MB/s	 5822.8MB/s
READ:           2448.8MB/s	 2585.3MB/s
WRITE:          2449.4MB/s	 2585.9MB/s
READ:           2290.5MB/s	 2409.1MB/s
WRITE:          2290.2MB/s	 2409.7MB/s

	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-01 15:38                 ` Sergey Senozhatsky
@ 2016-04-04  0:27                   ` Minchan Kim
  2016-04-04  1:17                     ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Minchan Kim @ 2016-04-04  0:27 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Andrew Morton, linux-kernel, Sergey Senozhatsky

Hello Sergey,

On Sat, Apr 02, 2016 at 12:38:29AM +0900, Sergey Senozhatsky wrote:
> Hello Minchan,
> 
> On (03/31/16 15:34), Sergey Senozhatsky wrote:
> > > I tested with you suggested parameter.
> > > In my side, win is better compared to my previous test but it seems
> > > your test is so fast. IOW, filesize is small and loops is just 1.
> > > Please test filesize=500m loops=10 or 20.
> 
> fio
> - loops=10
> - buffer_pattern=0xbadc0ffee
> 
> zram 6G. no intel p-state, deadline IO scheduler, no lockdep (no lock debugging).

We are using rw_page so I/O scheduler is not related.
Anyway, I configured my machine as you said but still see 10~20% enhance. :(
Hmm, could you post your .config?
I want to investigate why such difference happens between our machines.

The reason I want to see such *big enhance* in my machine is that
as you know, with per-cpu, zram's write path will lose blockable section
so it would make upcoming features's implementation hard.

We also should test it in very low memory situation so every write path
retry it(i.e., dobule compression). With it, I want to see how many
performance can drop.

If both test(normal: huge win low memory: small regression) are fine,
we can go per-cpu approach at the cost of giving up blockable section.
:)

Thanks.


> 
> 
> test            8 streams        per-cpu
> 
> #jobs1                         	                
> READ:           4118.2MB/s	 4105.3MB/s
> READ:           3487.7MB/s	 3624.9MB/s
> WRITE:          2197.8MB/s	 2305.1MB/s
> WRITE:          1776.2MB/s	 1887.5MB/s
> READ:           736589KB/s	 745648KB/s

> WRITE:          736353KB/s	 745409KB/s
> READ:           679279KB/s	 686559KB/s
> WRITE:          679093KB/s	 686371KB/s
> #jobs2                         	                
> READ:           6924.6MB/s	 7160.2MB/s
> READ:           6213.2MB/s	 6247.1MB/s
> WRITE:          2510.3MB/s	 3680.1MB/s
> WRITE:          2286.2MB/s	 3153.9MB/s
> READ:           1163.1MB/s	 1333.7MB/s
> WRITE:          1163.4MB/s	 1332.2MB/s
> READ:           1122.9MB/s	 1240.3MB/s
> WRITE:          1121.9MB/s	 1239.2MB/s
> #jobs3                         	                
> READ:           10304MB/s	 10424MB/s
> READ:           9014.5MB/s	 9014.5MB/s
> WRITE:          3883.9MB/s	 5373.8MB/s
> WRITE:          3549.1MB/s	 4576.4MB/s
> READ:           1704.4MB/s	 1916.8MB/s
> WRITE:          1704.9MB/s	 1915.9MB/s
> READ:           1603.5MB/s	 1806.8MB/s
> WRITE:          1598.8MB/s	 1800.8MB/s
> #jobs4                         	                
> READ:           13509MB/s	 12792MB/s
> READ:           10899MB/s	 11434MB/s
> WRITE:          4027.2MB/s	 6272.8MB/s
> WRITE:          3902.1MB/s	 5389.2MB/s
> READ:           2090.9MB/s	 2344.4MB/s
> WRITE:          2085.2MB/s	 2337.1MB/s
> READ:           1968.1MB/s	 2185.9MB/s
> WRITE:          1969.5MB/s	 2186.4MB/s
> #jobs5                         	                
> READ:           12634MB/s	 11607MB/s
> READ:           9932.7MB/s	 9980.6MB/s
> WRITE:          4275.8MB/s	 5844.3MB/s
> WRITE:          4210.1MB/s	 5262.3MB/s
> READ:           1995.6MB/s	 2211.4MB/s
> WRITE:          1988.4MB/s	 2203.4MB/s
> READ:           1930.1MB/s	 2191.8MB/s
> WRITE:          1929.8MB/s	 2190.3MB/s
> #jobs6                         	                
> READ:           12270MB/s	 13012MB/s
> READ:           11221MB/s	 10815MB/s
> WRITE:          4643.4MB/s	 6090.9MB/s
> WRITE:          4373.6MB/s	 5772.8MB/s
> READ:           2232.6MB/s	 2358.4MB/s
> WRITE:          2233.4MB/s	 2359.2MB/s
> READ:           2082.6MB/s	 2285.8MB/s
> WRITE:          2075.9MB/s	 2278.1MB/s
> #jobs7                         	                
> READ:           13617MB/s	 14172MB/s
> READ:           12290MB/s	 11734MB/s
> WRITE:          5077.3MB/s	 6315.7MB/s
> WRITE:          4719.4MB/s	 5825.1MB/s
> READ:           2379.8MB/s	 2523.7MB/s
> WRITE:          2373.7MB/s	 2516.7MB/s
> READ:           2287.9MB/s	 2362.4MB/s
> WRITE:          2283.9MB/s	 2358.2MB/s
> #jobs8                         	                
> READ:           15130MB/s	 15533MB/s
> READ:           12952MB/s	 13077MB/s
> WRITE:          5586.6MB/s	 7108.2MB/s
> WRITE:          5233.5MB/s	 6591.3MB/s
> READ:           2541.2MB/s	 2709.2MB/s
> WRITE:          2544.6MB/s	 2713.2MB/s
> READ:           2450.6MB/s	 2590.7MB/s
> WRITE:          2449.4MB/s	 2589.3MB/s
> #jobs9                         	                
> READ:           13480MB/s	 13909MB/s
> READ:           12389MB/s	 12000MB/s
> WRITE:          5266.8MB/s	 6594.9MB/s
> WRITE:          4971.6MB/s	 6442.2MB/s
> READ:           2464.9MB/s	 2470.9MB/s
> WRITE:          2482.7MB/s	 2488.8MB/s
> READ:           2171.9MB/s	 2402.2MB/s
> WRITE:          2174.9MB/s	 2405.5MB/s
> #jobs10                        	                
> READ:           14647MB/s	 14667MB/s
> READ:           11765MB/s	 12032MB/s
> WRITE:          5248.7MB/s	 6740.4MB/s
> WRITE:          4779.8MB/s	 5822.8MB/s
> READ:           2448.8MB/s	 2585.3MB/s
> WRITE:          2449.4MB/s	 2585.9MB/s
> READ:           2290.5MB/s	 2409.1MB/s
> WRITE:          2290.2MB/s	 2409.7MB/s
> 
> 	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-04  0:27                   ` Minchan Kim
@ 2016-04-04  1:17                     ` Sergey Senozhatsky
  2016-04-18  7:57                       ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-04  1:17 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky

[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]

Hello Minchan,

On (04/04/16 09:27), Minchan Kim wrote:
> Hello Sergey,
> 
> On Sat, Apr 02, 2016 at 12:38:29AM +0900, Sergey Senozhatsky wrote:
> > Hello Minchan,
> > 
> > On (03/31/16 15:34), Sergey Senozhatsky wrote:
> > > > I tested with you suggested parameter.
> > > > In my side, win is better compared to my previous test but it seems
> > > > your test is so fast. IOW, filesize is small and loops is just 1.
> > > > Please test filesize=500m loops=10 or 20.
> > 
> > fio
> > - loops=10
> > - buffer_pattern=0xbadc0ffee
> > 
> > zram 6G. no intel p-state, deadline IO scheduler, no lockdep (no lock debugging).
> 
> We are using rw_page so I/O scheduler is not related.

yes, agree. added it just in case.

> Anyway, I configured my machine as you said but still see 10~20% enhance. :(
> Hmm, could you post your .config?

oh, sorry, completely forgot about it. attached.

> I want to investigate why such difference happens between our machines.
> 
> The reason I want to see such *big enhance* in my machine is that
> as you know, with per-cpu, zram's write path will lose blockable section
> so it would make upcoming features's implementation hard.

I see. well, depending on what new features are about to come in, we
can utilize the same per-cpu mechanism if we are talking about some
sort of buffers, streams, etc.

> We also should test it in very low memory situation so every write path
> retry it(i.e., dobule compression). With it, I want to see how many
> performance can drop.

one of the boxen I use has only 4G of memory, so "re-compressions" do
happen there. I can add a simple counter (just for testing purposes)
to see how often.

> If both test(normal: huge win low memory: small regression) are fine,
> we can go per-cpu approach at the cost of giving up blockable section.
> :)

yep.

	-ss

[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 91899 bytes --]

#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.6.0-rc1 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=28
CONFIG_ARCH_MMAP_RND_BITS_MAX=32
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_HAVE_INTEL_TXT=y
CONFIG_X86_64_SMP=y
CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11"
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_DEBUG_RODATA=y
CONFIG_PGTABLE_LEVELS=4
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION="-dbg"
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME="swordfish"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_FHANDLE=y
# CONFIG_USELIB is not set
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
# CONFIG_NO_HZ is not set
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
CONFIG_RCU_STALL_COMMON=y
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_RCU_EXPEDITE_BOOT is not set
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_CGROUPS=y
# CONFIG_MEMCG is not set
# CONFIG_BLK_CGROUP is not set
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_CFS_BANDWIDTH is not set
CONFIG_RT_GROUP_SCHED=y
# CONFIG_CGROUP_PIDS is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CGROUP_HUGETLB is not set
# CONFIG_CPUSETS is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_CGROUP_PERF is not set
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_CHECKPOINT_RESTORE is not set
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_IPC_NS=y
# CONFIG_USER_NS is not set
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
# CONFIG_RD_LZO is not set
# CONFIG_RD_LZ4 is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_SYSCALL=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y
CONFIG_KALLSYMS_BASE_RELATIVE=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
# CONFIG_PCSPKR_PLATFORM is not set
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
# CONFIG_BPF_SYSCALL is not set
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
# CONFIG_USERFAULTFD is not set
CONFIG_PCI_QUIRKS=y
# CONFIG_MEMBARRIER is not set
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y

#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
CONFIG_SLUB_CPU_PARTIAL=y
# CONFIG_SYSTEM_DATA_VERIFICATION is not set
# CONFIG_PROFILING is not set
CONFIG_TRACEPOINTS=y
CONFIG_KEXEC_CORE=y
CONFIG_HAVE_OPROFILE=y
CONFIG_OPROFILE_NMI_TIMER=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_UPROBES is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_HAVE_CMPXCHG_DOUBLE=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
CONFIG_HAVE_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_CC_STACKPROTECTOR_NONE=y
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set
# CONFIG_CC_STACKPROTECTOR_STRONG is not set
CONFIG_HAVE_CONTEXT_TRACKING=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_SOFT_DIRTY=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
CONFIG_ARCH_MMAP_RND_BITS=28
CONFIG_HAVE_COPY_THREAD_TLS=y
CONFIG_HAVE_STACK_VALIDATION=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
# CONFIG_MODULE_COMPRESS is not set
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLK_DEV_BSG=y
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_CMDLINE_PARSER is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
# CONFIG_MINIX_SUBPARTITION is not set
CONFIG_SOLARIS_X86_PARTITION=y
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_KARMA_PARTITION is not set
CONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
# CONFIG_IOSCHED_CFQ is not set
CONFIG_DEFAULT_DEADLINE=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="deadline"
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
CONFIG_QUEUED_RWLOCKS=y
CONFIG_FREEZER=y

#
# Processor type and features
#
CONFIG_ZONE_DMA=y
CONFIG_SMP=y
CONFIG_X86_FEATURE_NAMES=y
CONFIG_X86_FAST_FEATURE_TESTS=y
# CONFIG_X86_X2APIC is not set
# CONFIG_X86_MPPARSE is not set
# CONFIG_GOLDFISH is not set
# CONFIG_X86_EXTENDED_PLATFORM is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
# CONFIG_IOSF_MBI is not set
CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set
# CONFIG_HYPERVISOR_GUEST is not set
CONFIG_NO_BOOTMEM=y
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set
CONFIG_GENERIC_CPU=y
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_TSC=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_CMOV=y
CONFIG_X86_MINIMUM_CPU_FAMILY=64
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_PROCESSOR_SELECT=y
CONFIG_CPU_SUP_INTEL=y
# CONFIG_CPU_SUP_AMD is not set
# CONFIG_CPU_SUP_CENTAUR is not set
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_DMI=y
# CONFIG_CALGARY_IOMMU is not set
CONFIG_SWIOTLB=y
CONFIG_IOMMU_HELPER=y
# CONFIG_MAXSMP is not set
CONFIG_NR_CPUS=4
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_INTEL=y
# CONFIG_X86_MCE_AMD is not set
CONFIG_X86_MCE_THRESHOLD=y
# CONFIG_X86_MCE_INJECT is not set
CONFIG_X86_THERMAL_VECTOR=y

#
# Performance monitoring
#
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
# CONFIG_PERF_EVENTS_INTEL_RAPL is not set
# CONFIG_PERF_EVENTS_INTEL_CSTATE is not set
# CONFIG_VM86 is not set
# CONFIG_X86_VSYSCALL_EMULATION is not set
# CONFIG_I8K is not set
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
# CONFIG_MICROCODE_AMD is not set
CONFIG_MICROCODE_OLD_INTERFACE=y
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_NUMA is not set
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_SPARSEMEM_MANUAL=y
CONFIG_SPARSEMEM=y
CONFIG_HAVE_MEMORY_PRESENT=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_ARCH_DISCARD_MEMBLOCK=y
CONFIG_MEMORY_ISOLATION=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
# CONFIG_MEMORY_HOTPLUG is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_ZONE_DMA_FLAG=1
CONFIG_BOUNCE=y
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
CONFIG_MEMORY_FAILURE=y
# CONFIG_HWPOISON_INJECT is not set
CONFIG_TRANSPARENT_HUGEPAGE=y
CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
# CONFIG_CLEANCACHE is not set
# CONFIG_FRONTSWAP is not set
# CONFIG_CMA is not set
# CONFIG_ZPOOL is not set
# CONFIG_ZBUD is not set
CONFIG_ZSMALLOC=m
# CONFIG_PGTABLE_MAPPING is not set
CONFIG_ZSMALLOC_STAT=y
CONFIG_GENERIC_EARLY_IOREMAP=y
CONFIG_ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT=y
# CONFIG_IDLE_PAGE_TRACKING is not set
# CONFIG_X86_PMEM_LEGACY is not set
CONFIG_X86_CHECK_BIOS_CORRUPTION=y
CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y
CONFIG_X86_RESERVE_LOW=64
CONFIG_MTRR=y
CONFIG_MTRR_SANITIZER=y
CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0
CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
CONFIG_X86_PAT=y
CONFIG_ARCH_USES_PG_UNCACHED=y
# CONFIG_ARCH_RANDOM is not set
# CONFIG_X86_SMAP is not set
# CONFIG_X86_INTEL_MPX is not set
# CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS is not set
# CONFIG_EFI is not set
CONFIG_SECCOMP=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
CONFIG_SCHED_HRTICK=y
CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set
CONFIG_CRASH_DUMP=y
CONFIG_PHYSICAL_START=0x1000000
CONFIG_RELOCATABLE=y
# CONFIG_RANDOMIZE_BASE is not set
CONFIG_PHYSICAL_ALIGN=0x1000000
CONFIG_HOTPLUG_CPU=y
# CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_LEGACY_VSYSCALL_NATIVE is not set
# CONFIG_LEGACY_VSYSCALL_EMULATE is not set
CONFIG_LEGACY_VSYSCALL_NONE=y
# CONFIG_CMDLINE_BOOL is not set
# CONFIG_MODIFY_LDT_SYSCALL is not set
CONFIG_HAVE_LIVEPATCH=y
# CONFIG_LIVEPATCH is not set
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y

#
# Power management and ACPI options
#
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_SUSPEND_SKIP_SYNC=y
# CONFIG_HIBERNATION is not set
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM=y
CONFIG_PM_DEBUG=y
CONFIG_PM_ADVANCED_DEBUG=y
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not set
# CONFIG_PM_TRACE_RTC is not set
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS_POWER is not set
# CONFIG_ACPI_REV_OVERRIDE_POSSIBLE is not set
# CONFIG_ACPI_EC_DEBUGFS is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
# CONFIG_ACPI_BUTTON is not set
CONFIG_ACPI_VIDEO=y
# CONFIG_ACPI_FAN is not set
# CONFIG_ACPI_DOCK is not set
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
# CONFIG_ACPI_THERMAL is not set
# CONFIG_ACPI_CUSTOM_DSDT is not set
# CONFIG_ACPI_INITRD_TABLE_OVERRIDE is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_PCI_SLOT=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
CONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
# CONFIG_ACPI_NFIT is not set
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
CONFIG_ACPI_APEI=y
CONFIG_ACPI_APEI_GHES=y
CONFIG_ACPI_APEI_PCIEAER=y
CONFIG_ACPI_APEI_MEMORY_FAILURE=y
# CONFIG_ACPI_APEI_EINJ is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_ACPI_EXTLOG is not set
# CONFIG_PMIC_OPREGION is not set
# CONFIG_SFI is not set

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_COMMON=y
# CONFIG_CPU_FREQ_STAT is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

#
# CPU frequency scaling drivers
#
# CONFIG_X86_INTEL_PSTATE is not set
# CONFIG_X86_PCC_CPUFREQ is not set
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_P4_CLOCKMOD is not set

#
# shared options
#
# CONFIG_X86_SPEEDSTEP_LIB is not set

#
# CPU Idle
#
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
CONFIG_INTEL_IDLE=y

#
# Memory power savings
#
# CONFIG_I7300_IDLE is not set

#
# Bus options (PCI etc.)
#
CONFIG_PCI=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCI_DOMAINS=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
CONFIG_PCIEPORTBUS=y
CONFIG_PCIEAER=y
# CONFIG_PCIE_ECRC is not set
# CONFIG_PCIEAER_INJECT is not set
# CONFIG_PCIEASPM is not set
CONFIG_PCIE_PME=y
CONFIG_PCI_BUS_ADDR_T_64BIT=y
CONFIG_PCI_MSI=y
CONFIG_PCI_MSI_IRQ_DOMAIN=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
CONFIG_HT_IRQ=y
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set
CONFIG_PCI_LABEL=y
# CONFIG_HOTPLUG_PCI is not set

#
# PCI host controller drivers
#
# CONFIG_PCIE_DW_PLAT is not set
CONFIG_ISA_DMA_API=y
# CONFIG_ISA_BUS is not set
# CONFIG_PCCARD is not set
# CONFIG_RAPIDIO is not set
# CONFIG_X86_SYSFB is not set

#
# Executable file formats / Emulations
#
CONFIG_BINFMT_ELF=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
CONFIG_COREDUMP=y
# CONFIG_IA32_EMULATION is not set
# CONFIG_X86_X32 is not set
CONFIG_X86_DEV_DMA_OPS=y
CONFIG_PMC_ATOM=y
# CONFIG_VMD is not set
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_NET_IP_TUNNEL is not set
CONFIG_IP_MROUTE=y
# CONFIG_IP_MROUTE_MULTIPLE_TABLES is not set
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
# CONFIG_NET_UDP_TUNNEL is not set
# CONFIG_NET_FOU is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
# CONFIG_TCP_CONG_BIC is not set
CONFIG_TCP_CONG_CUBIC=y
# CONFIG_TCP_CONG_WESTWOOD is not set
# CONFIG_TCP_CONG_HTCP is not set
# CONFIG_TCP_CONG_HSTCP is not set
# CONFIG_TCP_CONG_HYBLA is not set
# CONFIG_TCP_CONG_VEGAS is not set
# CONFIG_TCP_CONG_SCALABLE is not set
# CONFIG_TCP_CONG_LP is not set
# CONFIG_TCP_CONG_VENO is not set
# CONFIG_TCP_CONG_YEAH is not set
# CONFIG_TCP_CONG_ILLINOIS is not set
# CONFIG_TCP_CONG_DCTCP is not set
# CONFIG_TCP_CONG_CDG is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
CONFIG_IPV6=y
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_ROUTE_INFO=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_ILA is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_INET6_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET6_XFRM_MODE_TUNNEL is not set
# CONFIG_INET6_XFRM_MODE_BEET is not set
# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
# CONFIG_IPV6_SIT is not set
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_GRE is not set
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
# CONFIG_IPV6_MROUTE is not set
CONFIG_NETWORK_SECMARK=y
CONFIG_NET_PTP_CLASSIFY=y
CONFIG_NETWORK_PHY_TIMESTAMPING=y
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_NETFILTER_ADVANCED=y

#
# Core Netfilter Configuration
#
# CONFIG_NETFILTER_INGRESS is not set
# CONFIG_NETFILTER_NETLINK_ACCT is not set
# CONFIG_NETFILTER_NETLINK_QUEUE is not set
# CONFIG_NETFILTER_NETLINK_LOG is not set
# CONFIG_NF_CONNTRACK is not set
# CONFIG_NF_TABLES is not set
# CONFIG_NETFILTER_XTABLES is not set
# CONFIG_IP_SET is not set
# CONFIG_IP_VS is not set

#
# IP: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV4 is not set
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
# CONFIG_NF_LOG_IPV4 is not set
# CONFIG_NF_REJECT_IPV4 is not set
# CONFIG_IP_NF_IPTABLES is not set
# CONFIG_IP_NF_ARPTABLES is not set

#
# IPv6: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
# CONFIG_NF_REJECT_IPV6 is not set
# CONFIG_NF_LOG_IPV6 is not set
# CONFIG_IP6_NF_IPTABLES is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_HAVE_NET_DSA=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not set
# CONFIG_IEEE802154 is not set
CONFIG_NET_SCHED=y

#
# Queueing/Scheduling
#
# CONFIG_NET_SCH_CBQ is not set
# CONFIG_NET_SCH_HTB is not set
# CONFIG_NET_SCH_HFSC is not set
# CONFIG_NET_SCH_PRIO is not set
# CONFIG_NET_SCH_MULTIQ is not set
# CONFIG_NET_SCH_RED is not set
# CONFIG_NET_SCH_SFB is not set
# CONFIG_NET_SCH_SFQ is not set
# CONFIG_NET_SCH_TEQL is not set
# CONFIG_NET_SCH_TBF is not set
# CONFIG_NET_SCH_GRED is not set
# CONFIG_NET_SCH_DSMARK is not set
# CONFIG_NET_SCH_NETEM is not set
# CONFIG_NET_SCH_DRR is not set
# CONFIG_NET_SCH_MQPRIO is not set
# CONFIG_NET_SCH_CHOKE is not set
# CONFIG_NET_SCH_QFQ is not set
# CONFIG_NET_SCH_CODEL is not set
CONFIG_NET_SCH_FQ_CODEL=m
# CONFIG_NET_SCH_FQ is not set
# CONFIG_NET_SCH_HHF is not set
# CONFIG_NET_SCH_PIE is not set
# CONFIG_NET_SCH_INGRESS is not set
# CONFIG_NET_SCH_PLUG is not set

#
# Classification
#
# CONFIG_NET_CLS_BASIC is not set
# CONFIG_NET_CLS_TCINDEX is not set
# CONFIG_NET_CLS_ROUTE4 is not set
# CONFIG_NET_CLS_FW is not set
# CONFIG_NET_CLS_U32 is not set
# CONFIG_NET_CLS_RSVP is not set
# CONFIG_NET_CLS_RSVP6 is not set
# CONFIG_NET_CLS_FLOW is not set
# CONFIG_NET_CLS_CGROUP is not set
# CONFIG_NET_CLS_BPF is not set
# CONFIG_NET_CLS_FLOWER is not set
# CONFIG_NET_EMATCH is not set
CONFIG_NET_CLS_ACT=y
# CONFIG_NET_ACT_POLICE is not set
# CONFIG_NET_ACT_GACT is not set
# CONFIG_NET_ACT_MIRRED is not set
# CONFIG_NET_ACT_NAT is not set
# CONFIG_NET_ACT_PEDIT is not set
# CONFIG_NET_ACT_SIMP is not set
# CONFIG_NET_ACT_SKBEDIT is not set
# CONFIG_NET_ACT_CSUM is not set
# CONFIG_NET_ACT_VLAN is not set
# CONFIG_NET_ACT_BPF is not set
# CONFIG_NET_ACT_IFE is not set
CONFIG_NET_SCH_FIFO=y
# CONFIG_DCB is not set
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_MPLS is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not set
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_XPS=y
# CONFIG_SOCK_CGROUP_DATA is not set
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not set
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
# CONFIG_BPF_JIT is not set
CONFIG_NET_FLOW_LIMIT=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not set
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
# CONFIG_LIB80211 is not set

#
# CFG80211 needs to be enabled for MAC80211
#
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_LWTUNNEL is not set
# CONFIG_DST_CACHE is not set
# CONFIG_NET_DEVLINK is not set
CONFIG_MAY_USE_DEVLINK=y
CONFIG_HAVE_BPF_JIT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
# CONFIG_UEVENT_HELPER is not set
CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not set
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
# CONFIG_ALLOW_DEV_COREDUMP is not set
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
CONFIG_REGMAP_MMIO=y
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_FENCE_TRACE is not set

#
# Bus devices
#
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
CONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set

#
# Protocols
#
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
CONFIG_ZRAM=m
CONFIG_ZRAM_LZ4_COMPRESS=y
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SKD is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_RSXX is not set
# CONFIG_BLK_DEV_NVME is not set

#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1780 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_TI_DAC7512 is not set
# CONFIG_BMP085_I2C is not set
# CONFIG_BMP085_SPI is not set
# CONFIG_USB_SWITCH_FSA9480 is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_CB710_CORE is not set

#
# Texas Instruments shared transport line discipline
#
# CONFIG_SENSORS_LIS3_I2C is not set

#
# Altera FPGA firmware download module
#
# CONFIG_ALTERA_STAPL is not set
# CONFIG_INTEL_MEI is not set
# CONFIG_INTEL_MEI_ME is not set
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_VMWARE_VMCI is not set

#
# Intel MIC Bus Driver
#
# CONFIG_INTEL_MIC_BUS is not set

#
# SCIF Bus Driver
#
# CONFIG_SCIF_BUS is not set

#
# VOP Bus Driver
#
# CONFIG_VOP_BUS is not set

#
# Intel MIC Host Driver
#

#
# Intel MIC Card Driver
#

#
# SCIF Driver
#

#
# Intel MIC Coprocessor State Management (COSM) Drivers
#

#
# VOP Driver
#
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_CXL_BASE is not set
# CONFIG_CXL_KERNEL_API is not set
# CONFIG_CXL_EEH is not set
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set

#
# SCSI device support
#
CONFIG_SCSI_MOD=m
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=m
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_MQ_DEFAULT is not set
# CONFIG_SCSI_PROC_FS is not set

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
CONFIG_SCSI_SCAN_ASYNC=y

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
CONFIG_MEGARAID_NEWGEN=y
# CONFIG_MEGARAID_MM is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_ISCI is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=m
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_VERBOSE_ERROR=y
# CONFIG_ATA_ACPI is not set
CONFIG_SATA_PMP=y

#
# Controllers with non-SFF native interface
#
CONFIG_SATA_AHCI=m
CONFIG_SATA_AHCI_PLATFORM=m
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
# CONFIG_ATA_PIIX is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_MII=m
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_MACSEC is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set

#
# CAIF transport drivers
#

#
# Distributed Switch Architecture drivers
#
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set
CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALTEON is not set
# CONFIG_ALTERA_TSE is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_ARC is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_VENDOR_AURORA is not set
# CONFIG_NET_CADENCE is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CISCO is not set
# CONFIG_CX_ECAT is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
# CONFIG_NET_VENDOR_EXAR is not set
# CONFIG_NET_VENDOR_HP is not set
CONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not set
# CONFIG_E1000 is not set
# CONFIG_E1000E is not set
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_FM10K is not set
CONFIG_NET_VENDOR_I825XX=y
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_MARVELL is not set
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_PACKET_ENGINE is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
CONFIG_R8169=m
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
CONFIG_NET_VENDOR_SEEQ=y
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_SFC is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not set
# CONFIG_PHYLIB is not set
# CONFIG_MICREL_KS8995MA is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set

#
# Host-side USB support is needed for USB Network Adapter support
#
CONFIG_USB_NET_DRIVERS=m
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_RTL8152 is not set
# CONFIG_USB_LAN78XX is not set
CONFIG_USB_USBNET=m
# CONFIG_USB_NET_AX8817X is not set
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_USB_NET_CDCETHER=m
# CONFIG_USB_NET_CDC_EEM is not set
# CONFIG_USB_NET_CDC_NCM is not set
# CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
# CONFIG_USB_NET_CDC_MBIM is not set
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_NET_PLUSB is not set
# CONFIG_USB_NET_MCS7830 is not set
CONFIG_USB_NET_RNDIS_HOST=m
# CONFIG_USB_NET_CDC_SUBSET is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
# CONFIG_USB_NET_QMI_WWAN is not set
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_USB_SIERRA_NET is not set
# CONFIG_USB_VL600 is not set
# CONFIG_USB_NET_CH9200 is not set
# CONFIG_WLAN is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_ISDN is not set
# CONFIG_NVM is not set

#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not set

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=m
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
CONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
# CONFIG_RMI4_CORE is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
CONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
CONFIG_SERIO_RAW=y
CONFIG_SERIO_ALTERA_PS2=y
CONFIG_SERIO_PS2MULT=y
CONFIG_SERIO_ARC_PS2=y
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_ROCKETPORT is not set
# CONFIG_CYCLADES is not set
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
# CONFIG_SYNCLINK is not set
# CONFIG_SYNCLINKMP is not set
# CONFIG_SYNCLINK_GT is not set
# CONFIG_NOZOMI is not set
# CONFIG_ISI is not set
# CONFIG_N_HDLC is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
# CONFIG_DEVMEM is not set
# CONFIG_DEVKMEM is not set

#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
CONFIG_SERIAL_8250_PNP=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
# CONFIG_SERIAL_8250_FSL is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_FINTEK is not set
# CONFIG_SERIAL_8250_MID is not set
# CONFIG_SERIAL_8250_MOXA is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_MVEBU_UART is not set
# CONFIG_TTY_PRINTK is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
CONFIG_HPET=y
CONFIG_HPET_MMAP=y
# CONFIG_HPET_MMAP_DEFAULT is not set
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
CONFIG_DEVPORT=y
# CONFIG_XILLYBUS is not set

#
# I2C support
#
CONFIG_I2C=y
CONFIG_ACPI_I2C_OPREGION=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_COMPAT=y
# CONFIG_I2C_CHARDEV is not set
# CONFIG_I2C_MUX is not set
CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_ALGOBIT=y

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
CONFIG_I2C_I801=m
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_ISMT is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y

#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_PXA2XX_PCI is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_ZYNQMP_GQSPI is not set

#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set

#
# PPS support
#
# CONFIG_PPS is not set

#
# PPS generators support
#

#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_PDA_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_SMB347 is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
CONFIG_POWER_RESET=y
# CONFIG_POWER_RESET_RESTART is not set
# CONFIG_POWER_AVS is not set
CONFIG_HWMON=m
# CONFIG_HWMON_VID is not set
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_K10TEMP is not set
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_I5500 is not set
CONFIG_SENSORS_CORETEMP=m
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set
# CONFIG_SENSORS_PC87427 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT6683 is not set
# CONFIG_SENSORS_NCT6775 is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH56XX_COMMON is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS1015 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set

#
# ACPI drivers
#
# CONFIG_SENSORS_ACPI_POWER is not set
# CONFIG_SENSORS_ATK0110 is not set
CONFIG_THERMAL=y
# CONFIG_THERMAL_WRITABLE_TRIPS is not set
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
# CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR is not set
CONFIG_THERMAL_GOV_FAIR_SHARE=y
CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set
# CONFIG_THERMAL_GOV_USER_SPACE is not set
# CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set
# CONFIG_THERMAL_EMULATION is not set
# CONFIG_INTEL_POWERCLAMP is not set
# CONFIG_X86_PKG_TEMP_THERMAL is not set
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
# CONFIG_INT340X_THERMAL is not set
# CONFIG_INTEL_PCH_THERMAL is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y

#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set

#
# Multifunction device drivers
#
CONFIG_MFD_CORE=m
# CONFIG_MFD_AS3711 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CROS_EC is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_HTC_PASIC3 is not set
CONFIG_LPC_ICH=m
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RTSX_PCI is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RTSX_USB is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_RN5T618 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_SMSC is not set
CONFIG_ABX500_CORE=y
# CONFIG_AB3100_CORE is not set
CONFIG_MFD_SYSCON=y
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TPS65218 is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set

#
# Graphics support
#
CONFIG_AGP=y
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_VGA_ARB is not set
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_DRM=y
# CONFIG_DRM_DP_AUX_CHARDEV is not set
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_TTM=y

#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_ADV7511 is not set
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set

#
# ACP Configuration
#
# CONFIG_DRM_AMD_ACP is not set
CONFIG_DRM_NOUVEAU=y
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
CONFIG_DRM_NOUVEAU_BACKLIGHT=y
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_QXL is not set
# CONFIG_DRM_BOCHS is not set
CONFIG_DRM_BRIDGE=y

#
# Display Interface Bridges
#

#
# Frame buffer Devices
#
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYS_FOPS=y
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
CONFIG_FB_BACKLIGHT=y
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_AUO_K190X is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SM712 is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
# CONFIG_LCD_CLASS_DEVICE is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_GENERIC is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_PM8941_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_VGASTATE is not set
CONFIG_HDMI=y

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=800
CONFIG_DUMMY_CONSOLE_ROWS=250
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_LOGO is not set
CONFIG_SOUND=m
# CONFIG_SOUND_OSS_CORE is not set
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
# CONFIG_SND_SEQUENCER is not set
# CONFIG_SND_MIXER_OSS is not set
# CONFIG_SND_PCM_OSS is not set
CONFIG_SND_PCM_TIMER=y
# CONFIG_SND_HRTIMER is not set
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_MAX_CARDS=32
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_PROC_FS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
# CONFIG_SND_RAWMIDI_SEQ is not set
# CONFIG_SND_OPL3_LIB_SEQ is not set
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not set
# CONFIG_SND_EMU10K1_SEQ is not set
CONFIG_SND_DRIVERS=y
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_ALOOP is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
CONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ASIHPI is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SE6X is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set

#
# HD-Audio
#
CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDA_HWDEP is not set
CONFIG_SND_HDA_RECONFIG=y
# CONFIG_SND_HDA_INPUT_BEEP is not set
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=m
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=42
CONFIG_SND_HDA_CORE=m
CONFIG_SND_HDA_PREALLOC_SIZE=4096
# CONFIG_SND_SPI is not set
# CONFIG_SND_USB is not set
# CONFIG_SND_SOC is not set
# CONFIG_SOUND_PRIME is not set

#
# HID support
#
CONFIG_HID=m
# CONFIG_HID_BATTERY_STRENGTH is not set
CONFIG_HIDRAW=y
# CONFIG_UHID is not set
CONFIG_HID_GENERIC=m

#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not set
# CONFIG_HID_APPLEIR is not set
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_BETOP_FF is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_PRODIKEYS is not set
# CONFIG_HID_CMEDIA is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_ELO is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_GEMBIRD is not set
# CONFIG_HID_GFRM is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_ICADE is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LENOVO is not set
# CONFIG_HID_LOGITECH is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PENMOUNT is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PLANTRONICS is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAITEK is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEELSERIES is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_RMI is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_WACOM is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set

#
# USB HID support
#
CONFIG_USB_HID=m
CONFIG_HID_PID=y
CONFIG_USB_HIDDEV=y

#
# USB HID Boot Protocol drivers
#
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set

#
# I2C HID support
#
# CONFIG_I2C_HID is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=m
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=m
# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_DYNAMIC_MINORS=y
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_USB_MON is not set
# CONFIG_USB_WUSB_CBAF is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_XHCI_HCD is not set
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=m
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
# CONFIG_USB_MAX3421_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
# CONFIG_USB_UHCI_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#

#
# also be needed; see USB_STORAGE Help for more info
#
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_REALTEK is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_ONETOUCH is not set
# CONFIG_USB_STORAGE_KARMA is not set
# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set
# CONFIG_USB_STORAGE_ENE_UB6250 is not set
CONFIG_USB_UAS=m

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set

#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set

#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_ISP1301 is not set
CONFIG_USB_GADGET=m
# CONFIG_USB_GADGET_DEBUG is not set
# CONFIG_USB_GADGET_DEBUG_FILES is not set
# CONFIG_USB_GADGET_DEBUG_FS is not set
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2

#
# USB Peripheral Controller
#
# CONFIG_USB_FOTG210_UDC is not set
# CONFIG_USB_GR_UDC is not set
# CONFIG_USB_R8A66597 is not set
# CONFIG_USB_PXA27X is not set
# CONFIG_USB_MV_UDC is not set
# CONFIG_USB_MV_U3D is not set
# CONFIG_USB_M66592 is not set
# CONFIG_USB_BDC_UDC is not set
# CONFIG_USB_AMD5536UDC is not set
# CONFIG_USB_NET2272 is not set
# CONFIG_USB_NET2280 is not set
# CONFIG_USB_GOKU is not set
# CONFIG_USB_EG20T is not set
# CONFIG_USB_DUMMY_HCD is not set
# CONFIG_USB_CONFIGFS is not set
# CONFIG_USB_ZERO is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_G_NCM is not set
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FUNCTIONFS is not set
# CONFIG_USB_MASS_STORAGE is not set
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_CDC_COMPOSITE is not set
# CONFIG_USB_G_ACM_MS is not set
# CONFIG_USB_G_MULTI is not set
# CONFIG_USB_G_HID is not set
# CONFIG_USB_G_DBGP is not set
# CONFIG_UWB is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
CONFIG_EDAC_LEGACY_SYSFS=y
# CONFIG_EDAC_DEBUG is not set
# CONFIG_EDAC_MM_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="n"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_ISL12057 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# CONFIG_RTC_DRV_RV8803 is not set

#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RX6110 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not set
CONFIG_RTC_I2C_AND_SPI=y

#
# SPI and I2C RTC drivers
#
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_PCF2127 is not set

#
# Platform RTC drivers
#
CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set

#
# on-CPU RTC drivers
#

#
# HID Sensor RTC drivers
#
# CONFIG_RTC_DRV_HID_SENSOR_TIME is not set
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
CONFIG_DMA_ACPI=y
# CONFIG_INTEL_IDMA64 is not set
# CONFIG_INTEL_IOATDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not set
# CONFIG_DW_DMAC is not set
# CONFIG_DW_DMAC_PCI is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VFIO is not set
# CONFIG_VIRT_DRIVERS is not set

#
# Virtio drivers
#
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_MMIO is not set

#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set
CONFIG_X86_PLATFORM_DEVICES=y
# CONFIG_ACER_WMI is not set
# CONFIG_ACERHDF is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_DELL_WMI_AIO is not set
# CONFIG_DELL_SMO8800 is not set
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_HP_ACCEL is not set
# CONFIG_HP_WIRELESS is not set
# CONFIG_HP_WMI is not set
# CONFIG_PANASONIC_LAPTOP is not set
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_ASUS_WIRELESS is not set
CONFIG_ACPI_WMI=y
# CONFIG_MSI_WMI is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_TOSHIBA_WMI is not set
# CONFIG_ACPI_CMPC is not set
# CONFIG_INTEL_HID_EVENT is not set
# CONFIG_INTEL_IPS is not set
# CONFIG_IBM_RTL is not set
# CONFIG_SAMSUNG_LAPTOP is not set
CONFIG_MXM_WMI=y
# CONFIG_SAMSUNG_Q10 is not set
# CONFIG_APPLE_GMUX is not set
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_PVPANIC is not set
# CONFIG_INTEL_PMC_IPC is not set
# CONFIG_SURFACE_PRO3_BUTTON is not set
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_CHROME_PLATFORMS is not set

#
# Hardware Spinlock drivers
#

#
# Clock Source drivers
#
CONFIG_CLKEVT_I8253=y
CONFIG_CLKBLD_I8253=y
# CONFIG_ATMEL_PIT is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
# CONFIG_MAILBOX is not set
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y

#
# Generic IOMMU Pagetable Support
#
CONFIG_IOMMU_IOVA=y
# CONFIG_AMD_IOMMU is not set
CONFIG_DMAR_TABLE=y
CONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
CONFIG_INTEL_IOMMU_FLOPPY_WA=y
CONFIG_IRQ_REMAP=y

#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set

#
# Rpmsg drivers
#

#
# SOC (System On Chip) specific Drivers
#
# CONFIG_SUNXI_SRAM is not set
# CONFIG_SOC_TI is not set
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
CONFIG_MEMORY=y
# CONFIG_IIO is not set
# CONFIG_NTB is not set
# CONFIG_VME_BUS is not set
# CONFIG_PWM is not set
CONFIG_ARM_GIC_MAX_NR=1
# CONFIG_IPACK_BUS is not set
CONFIG_RESET_CONTROLLER=y
# CONFIG_FMC is not set

#
# PHY Subsystem
#
CONFIG_GENERIC_PHY=y
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
CONFIG_POWERCAP=y
# CONFIG_MCB is not set

#
# Performance monitor support
#
CONFIG_RAS=y
# CONFIG_THUNDERBOLT is not set

#
# Android
#
# CONFIG_ANDROID is not set
# CONFIG_LIBNVDIMM is not set
# CONFIG_NVMEM is not set
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set

#
# FPGA Configuration Support
#
# CONFIG_FPGA is not set

#
# Firmware Drivers
#
# CONFIG_EDD is not set
# CONFIG_FIRMWARE_MEMMAP is not set
# CONFIG_DELL_RBU is not set
# CONFIG_DCDBAS is not set
# CONFIG_DMIID is not set
# CONFIG_DMI_SYSFS is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT_FIND is not set
# CONFIG_FW_CFG_SYSFS is not set
# CONFIG_GOOGLE_FIRMWARE is not set
CONFIG_UEFI_CPER=y

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
# CONFIG_EXT4_FS_SECURITY is not set
# CONFIG_EXT4_ENCRYPTION is not set
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not set
# CONFIG_FS_DAX is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_FILE_LOCKING=y
# CONFIG_MANDATORY_FILE_LOCKING is not set
# CONFIG_FS_ENCRYPTION is not set
CONFIG_FSNOTIFY=y
# CONFIG_DNOTIFY is not set
CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
# CONFIG_OVERLAY_FS is not set

#
# Caches
#
# CONFIG_FSCACHE is not set

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=m
# CONFIG_MSDOS_FS is not set
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_FAT_DEFAULT_UTF8=y
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
# CONFIG_PROC_CHILDREN is not set
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_CONFIGFS_FS=y
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_LOGFS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
CONFIG_PSTORE=y
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_FTRACE is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=m
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
CONFIG_NLS_CODEPAGE_852=m
CONFIG_NLS_CODEPAGE_855=m
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
CONFIG_NLS_CODEPAGE_866=m
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
CONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
CONFIG_NLS_ISO8859_5=m
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_DLM is not set

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y

#
# printk and dmesg options
#
# CONFIG_PRINTK_TIME is not set
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_DYNAMIC_DEBUG is not set

#
# Compile-time checks and compiler options
#
# CONFIG_DEBUG_INFO is not set
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_PAGE_OWNER is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
CONFIG_ARCH_WANT_FRAME_POINTERS=y
CONFIG_FRAME_POINTER=y
# CONFIG_STACK_VALIDATION is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
CONFIG_DEBUG_KERNEL=y

#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_PAGE_POISONING is not set
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
# CONFIG_DEBUG_PER_CPU_MAPS is not set
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
CONFIG_HAVE_ARCH_KMEMCHECK=y
CONFIG_HAVE_ARCH_KASAN=y
# CONFIG_KASAN is not set
CONFIG_ARCH_HAS_KCOV=y
# CONFIG_KCOV is not set
# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Lockups and Hangs
#
CONFIG_LOCKUP_DETECTOR=y
CONFIG_HARDLOCKUP_DETECTOR=y
CONFIG_BOOTPARAM_HARDLOCKUP_PANIC=y
CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=1
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=21
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
CONFIG_WQ_WATCHDOG=y
CONFIG_PANIC_ON_OOPS=y
CONFIG_PANIC_ON_OOPS_VALUE=1
CONFIG_PANIC_TIMEOUT=71
# CONFIG_SCHED_DEBUG is not set
# CONFIG_SCHED_INFO is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_SCHED_STACK_END_CHECK is not set
# CONFIG_DEBUG_TIMEKEEPING is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_PREEMPT is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_PI_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set

#
# RCU Debugging
#
# CONFIG_PROVE_RCU is not set
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_TORTURE_TEST is not set
# CONFIG_RCU_PERF_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
CONFIG_RCU_CPU_STALL_TIMEOUT=30
# CONFIG_RCU_TRACE is not set
# CONFIG_RCU_EQS_DEBUG is not set
# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS=y
# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is not set
CONFIG_USER_STACKTRACE_SUPPORT=y
CONFIG_NOP_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_FENTRY=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
CONFIG_FTRACE_SYSCALLS=y
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_UPROBE_EVENT is not set
# CONFIG_PROBE_EVENTS is not set
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
# CONFIG_FUNCTION_PROFILER is not set
CONFIG_FTRACE_MCOUNT_RECORD=y
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_MMIOTRACE is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_TRACE_ENUM_MAP_FILE is not set

#
# Runtime Testing
#
# CONFIG_LKDTM is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_PRINTF is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_USER_COPY is not set
# CONFIG_TEST_BPF is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_MEMTEST is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_UBSAN is not set
CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
CONFIG_STRICT_DEVMEM=y
CONFIG_IO_STRICT_DEVMEM=y
CONFIG_X86_VERBOSE_BOOTUP=y
CONFIG_EARLY_PRINTK=y
# CONFIG_EARLY_PRINTK_DBGP is not set
CONFIG_X86_PTDUMP_CORE=y
# CONFIG_X86_PTDUMP is not set
# CONFIG_DEBUG_RODATA_TEST is not set
CONFIG_DEBUG_WX=y
CONFIG_DEBUG_SET_MODULE_RONX=y
# CONFIG_DEBUG_NX_TEST is not set
CONFIG_DOUBLEFAULT=y
# CONFIG_DEBUG_TLBFLUSH is not set
# CONFIG_IOMMU_STRESS is not set
CONFIG_HAVE_MMIOTRACE_SUPPORT=y
CONFIG_IO_DELAY_TYPE_0X80=0
CONFIG_IO_DELAY_TYPE_0XED=1
CONFIG_IO_DELAY_TYPE_UDELAY=2
CONFIG_IO_DELAY_TYPE_NONE=3
CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not set
CONFIG_DEFAULT_IO_DELAY_TYPE=0
# CONFIG_DEBUG_BOOT_PARAMS is not set
# CONFIG_CPA_DEBUG is not set
# CONFIG_OPTIMIZE_INLINING is not set
# CONFIG_DEBUG_ENTRY is not set
# CONFIG_DEBUG_NMI_SELFTEST is not set
# CONFIG_X86_DEBUG_FPU is not set
# CONFIG_PUNIT_ATOM_DEBUG is not set

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
# CONFIG_INTEL_TXT is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_AKCIPHER2=y
# CONFIG_CRYPTO_RSA is not set
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
CONFIG_CRYPTO_GF128MUL=y
# CONFIG_CRYPTO_NULL is not set
CONFIG_CRYPTO_NULL2=y
# CONFIG_CRYPTO_PCRYPT is not set
CONFIG_CRYPTO_WORKQUEUE=y
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_MCRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
# CONFIG_CRYPTO_SEQIV is not set
# CONFIG_CRYPTO_ECHAINIV is not set

#
# Block modes
#
CONFIG_CRYPTO_CBC=y
# CONFIG_CRYPTO_CTR is not set
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_PCBC is not set
CONFIG_CRYPTO_XTS=y
# CONFIG_CRYPTO_KEYWRAP is not set

#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set

#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
CONFIG_CRYPTO_CRC32C_INTEL=m
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_CRC32_PCLMUL is not set
CONFIG_CRYPTO_CRCT10DIF=y
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_POLY1305 is not set
# CONFIG_CRYPTO_POLY1305_X86_64 is not set
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA1_SSSE3 is not set
# CONFIG_CRYPTO_SHA256_SSSE3 is not set
# CONFIG_CRYPTO_SHA512_SSSE3 is not set
# CONFIG_CRYPTO_SHA1_MB is not set
CONFIG_CRYPTO_SHA256=y
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL is not set

#
# Ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_X86_64 is not set
# CONFIG_CRYPTO_AES_NI_INTEL is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_BLOWFISH_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAMELLIA_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST5_AVX_X86_64 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_CAST6_AVX_X86_64 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_DES3_EDE_X86_64 is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SALSA20_X86_64 is not set
# CONFIG_CRYPTO_CHACHA20 is not set
# CONFIG_CRYPTO_CHACHA20_X86_64 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_AVX_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_AVX2_X86_64 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_TWOFISH_X86_64 is not set
# CONFIG_CRYPTO_TWOFISH_X86_64_3WAY is not set
# CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
CONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
# CONFIG_CRYPTO_DRBG_MENU is not set
# CONFIG_CRYPTO_JITTERENTROPY is not set
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set
# CONFIG_CRYPTO_HW is not set

#
# Certificates for signature checking
#
CONFIG_HAVE_KVM=y
# CONFIG_VIRTUALIZATION is not set
CONFIG_BINARY_PRINTF=y

#
# Library routines
#
CONFIG_BITREVERSE=y
# CONFIG_HAVE_ARCH_BITREVERSE is not set
CONFIG_RATIONAL=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_FIND_FIRST_BIT=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_IO=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
# CONFIG_CRC_CCITT is not set
CONFIG_CRC16=y
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_CRC64_ECMA is not set
# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=m
CONFIG_LZ4_DECOMPRESS=m
# CONFIG_XZ_DEC is not set
# CONFIG_XZ_DEC_BCJ is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_CHECK_SIGNATURE=y
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set
CONFIG_NLATTR=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
# CONFIG_IRQ_POLL is not set
CONFIG_FONT_SUPPORT=y
CONFIG_FONTS=y
# CONFIG_FONT_8x8 is not set
# CONFIG_FONT_8x16 is not set
CONFIG_FONT_6x11=y
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_6x10 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_SG_SPLIT is not set
CONFIG_ARCH_HAS_SG_CHAIN=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_ARCH_HAS_MMIO_FLUSH=y

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

* Re: zram: per-cpu compression streams
  2016-04-04  1:17                     ` Sergey Senozhatsky
@ 2016-04-18  7:57                       ` Sergey Senozhatsky
  2016-04-19  8:00                         ` Minchan Kim
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-18  7:57 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Andrew Morton, linux-kernel, Sergey Senozhatsky, Sergey Senozhatsky

Hello Minchan,
sorry, it took me so long to return back to testing.

I collected extended stats (perf), just like you requested.
- 3G zram, lzo; 4 CPU x86_64 box.
- fio with perf stat

		4 streams	 8 streams	 per-cpu
===========================================================
#jobs1                         	                	                
READ:           2520.1MB/s	 2566.5MB/s	 2491.5MB/s
READ:           2102.7MB/s	 2104.2MB/s	 2091.3MB/s
WRITE:          1355.1MB/s	 1320.2MB/s	 1378.9MB/s
WRITE:          1103.5MB/s	 1097.2MB/s	 1122.5MB/s
READ:           434013KB/s	 435153KB/s	 439961KB/s
WRITE:          433969KB/s	 435109KB/s	 439917KB/s
READ:           403166KB/s	 405139KB/s	 403373KB/s
WRITE:          403223KB/s	 405197KB/s	 403430KB/s
#jobs2                         	                	                
READ:           7958.6MB/s	 8105.6MB/s	 8073.7MB/s
READ:           6864.9MB/s	 6989.8MB/s	 7021.8MB/s
WRITE:          2438.1MB/s	 2346.9MB/s	 3400.2MB/s
WRITE:          1994.2MB/s	 1990.3MB/s	 2941.2MB/s
READ:           981504KB/s	 973906KB/s	 1018.8MB/s
WRITE:          981659KB/s	 974060KB/s	 1018.1MB/s
READ:           937021KB/s	 938976KB/s	 987250KB/s
WRITE:          934878KB/s	 936830KB/s	 984993KB/s
#jobs3                         	                	                
READ:           13280MB/s	 13553MB/s	 13553MB/s
READ:           11534MB/s	 11785MB/s	 11755MB/s
WRITE:          3456.9MB/s	 3469.9MB/s	 4810.3MB/s
WRITE:          3029.6MB/s	 3031.6MB/s	 4264.8MB/s
READ:           1363.8MB/s	 1362.6MB/s	 1448.9MB/s
WRITE:          1361.9MB/s	 1360.7MB/s	 1446.9MB/s
READ:           1309.4MB/s	 1310.6MB/s	 1397.5MB/s
WRITE:          1307.4MB/s	 1308.5MB/s	 1395.3MB/s
#jobs4                         	                	                
READ:           20244MB/s	 20177MB/s	 20344MB/s
READ:           17886MB/s	 17913MB/s	 17835MB/s
WRITE:          4071.6MB/s	 4046.1MB/s	 6370.2MB/s
WRITE:          3608.9MB/s	 3576.3MB/s	 5785.4MB/s
READ:           1824.3MB/s	 1821.6MB/s	 1997.5MB/s
WRITE:          1819.8MB/s	 1817.4MB/s	 1992.5MB/s
READ:           1765.7MB/s	 1768.3MB/s	 1937.3MB/s
WRITE:          1767.5MB/s	 1769.1MB/s	 1939.2MB/s
#jobs5                         	                	                
READ:           18663MB/s	 18986MB/s	 18823MB/s
READ:           16659MB/s	 16605MB/s	 16954MB/s
WRITE:          3912.4MB/s	 3888.7MB/s	 6126.9MB/s
WRITE:          3506.4MB/s	 3442.5MB/s	 5519.3MB/s
READ:           1798.2MB/s	 1746.5MB/s	 1935.8MB/s
WRITE:          1792.7MB/s	 1740.7MB/s	 1929.1MB/s
READ:           1727.6MB/s	 1658.2MB/s	 1917.3MB/s
WRITE:          1726.5MB/s	 1657.2MB/s	 1916.6MB/s
#jobs6                         	                	                
READ:           21017MB/s	 20922MB/s	 21162MB/s
READ:           19022MB/s	 19140MB/s	 18770MB/s
WRITE:          3968.2MB/s	 4037.7MB/s	 6620.8MB/s
WRITE:          3643.5MB/s	 3590.2MB/s	 6027.5MB/s
READ:           1871.8MB/s	 1880.5MB/s	 2049.9MB/s
WRITE:          1867.8MB/s	 1877.2MB/s	 2046.2MB/s
READ:           1755.8MB/s	 1710.3MB/s	 1964.7MB/s
WRITE:          1750.5MB/s	 1705.9MB/s	 1958.8MB/s
#jobs7                         	                	                
READ:           21103MB/s	 20677MB/s	 21482MB/s
READ:           18522MB/s	 18379MB/s	 19443MB/s
WRITE:          4022.5MB/s	 4067.4MB/s	 6755.9MB/s
WRITE:          3691.7MB/s	 3695.5MB/s	 5925.6MB/s
READ:           1841.5MB/s	 1933.9MB/s	 2090.5MB/s
WRITE:          1842.7MB/s	 1935.3MB/s	 2091.9MB/s
READ:           1832.4MB/s	 1856.4MB/s	 1971.5MB/s
WRITE:          1822.3MB/s	 1846.2MB/s	 1960.6MB/s
#jobs8                         	                	                
READ:           20463MB/s	 20194MB/s	 20862MB/s
READ:           18178MB/s	 17978MB/s	 18299MB/s
WRITE:          4085.9MB/s	 4060.2MB/s	 7023.8MB/s
WRITE:          3776.3MB/s	 3737.9MB/s	 6278.2MB/s
READ:           1957.6MB/s	 1944.4MB/s	 2109.5MB/s
WRITE:          1959.2MB/s	 1946.2MB/s	 2111.4MB/s
READ:           1900.6MB/s	 1885.7MB/s	 2082.1MB/s
WRITE:          1896.2MB/s	 1881.4MB/s	 2078.3MB/s
#jobs9                         	                	                
READ:           19692MB/s	 19734MB/s	 19334MB/s
READ:           17678MB/s	 18249MB/s	 17666MB/s
WRITE:          4004.7MB/s	 4064.8MB/s	 6990.7MB/s
WRITE:          3724.7MB/s	 3772.1MB/s	 6193.6MB/s
READ:           1953.7MB/s	 1967.3MB/s	 2105.6MB/s
WRITE:          1953.4MB/s	 1966.7MB/s	 2104.1MB/s
READ:           1860.4MB/s	 1897.4MB/s	 2068.5MB/s
WRITE:          1858.9MB/s	 1895.9MB/s	 2066.8MB/s
#jobs10                        	                	                
READ:           19730MB/s	 19579MB/s	 19492MB/s
READ:           18028MB/s	 18018MB/s	 18221MB/s
WRITE:          4027.3MB/s	 4090.6MB/s	 7020.1MB/s
WRITE:          3810.5MB/s	 3846.8MB/s	 6426.8MB/s
READ:           1956.1MB/s	 1994.6MB/s	 2145.2MB/s
WRITE:          1955.9MB/s	 1993.5MB/s	 2144.8MB/s
READ:           1852.8MB/s	 1911.6MB/s	 2075.8MB/s
WRITE:          1855.7MB/s	 1914.6MB/s	 2078.1MB/s


perf stat

				4 streams			8 streams			per-cpu
====================================================================================================================
                                      jobs1 (        )	                  (        )	                  (        )
stalled-cycles-frontend      23,174,811,209 (  38.21%)	   23,220,254,188 (  38.25%)	   23,061,406,918 (  38.34%)
stalled-cycles-backend       11,514,174,638 (  18.98%)	   11,696,722,657 (  19.27%)	   11,370,852,810 (  18.90%)
instructions                 73,925,005,782 (    1.22)	   73,903,177,632 (    1.22)	   73,507,201,037 (    1.22)
branches                     14,455,124,835 ( 756.063)	   14,455,184,779 ( 755.281)	   14,378,599,509 ( 758.546)
branch-misses                    69,801,336 (   0.48%)	       80,225,529 (   0.55%)	       72,044,726 (   0.50%)
                                      jobs2 (        )	                  (        )	                  (        )
stalled-cycles-frontend      49,912,741,782 (  46.11%)	   50,101,189,290 (  45.95%)	   32,874,195,633 (  35.11%)
stalled-cycles-backend       27,080,366,230 (  25.02%)	   27,949,970,232 (  25.63%)	   16,461,222,706 (  17.58%)
instructions                122,831,629,690 (    1.13)	  122,919,846,419 (    1.13)	  121,924,786,775 (    1.30)
branches                     23,725,889,239 ( 692.663)	   23,733,547,140 ( 688.062)	   23,553,950,311 ( 794.794)
branch-misses                    90,733,041 (   0.38%)	       96,320,895 (   0.41%)	       84,561,092 (   0.36%)
                                      jobs3 (        )	                  (        )	                  (        )
stalled-cycles-frontend      66,437,834,608 (  45.58%)	   63,534,923,344 (  43.69%)	   42,101,478,505 (  33.19%)
stalled-cycles-backend       34,940,799,661 (  23.97%)	   34,774,043,148 (  23.91%)	   21,163,324,388 (  16.68%)
instructions                171,692,121,862 (    1.18)	  171,775,373,044 (    1.18)	  170,353,542,261 (    1.34)
branches                     32,968,962,622 ( 628.723)	   32,987,739,894 ( 630.512)	   32,729,463,918 ( 717.027)
branch-misses                   111,522,732 (   0.34%)	      110,472,894 (   0.33%)	       99,791,291 (   0.30%)
                                      jobs4 (        )	                  (        )	                  (        )
stalled-cycles-frontend      98,741,701,675 (  49.72%)	   94,797,349,965 (  47.59%)	   54,535,655,381 (  33.53%)
stalled-cycles-backend       54,642,609,615 (  27.51%)	   55,233,554,408 (  27.73%)	   27,882,323,541 (  17.14%)
instructions                220,884,807,851 (    1.11)	  220,930,887,273 (    1.11)	  218,926,845,851 (    1.35)
branches                     42,354,518,180 ( 592.105)	   42,362,770,587 ( 590.452)	   41,955,552,870 ( 716.154)
branch-misses                   138,093,449 (   0.33%)	      131,295,286 (   0.31%)	      121,794,771 (   0.29%)
                                      jobs5 (        )	                  (        )	                  (        )
stalled-cycles-frontend     116,219,747,212 (  48.14%)	  110,310,397,012 (  46.29%)	   66,373,082,723 (  33.70%)
stalled-cycles-backend       66,325,434,776 (  27.48%)	   64,157,087,914 (  26.92%)	   32,999,097,299 (  16.76%)
instructions                270,615,008,466 (    1.12)	  270,546,409,525 (    1.14)	  268,439,910,948 (    1.36)
branches                     51,834,046,557 ( 599.108)	   51,811,867,722 ( 608.883)	   51,412,576,077 ( 729.213)
branch-misses                   158,197,086 (   0.31%)	      142,639,805 (   0.28%)	      133,425,455 (   0.26%)
                                      jobs6 (        )	                  (        )	                  (        )
stalled-cycles-frontend     138,009,414,492 (  48.23%)	  139,063,571,254 (  48.80%)	   75,278,568,278 (  32.80%)
stalled-cycles-backend       79,211,949,650 (  27.68%)	   79,077,241,028 (  27.75%)	   37,735,797,899 (  16.44%)
instructions                319,763,993,731 (    1.12)	  319,937,782,834 (    1.12)	  316,663,600,784 (    1.38)
branches                     61,219,433,294 ( 595.056)	   61,250,355,540 ( 598.215)	   60,523,446,617 ( 733.706)
branch-misses                   169,257,123 (   0.28%)	      154,898,028 (   0.25%)	      141,180,587 (   0.23%)
                                      jobs7 (        )	                  (        )	                  (        )
stalled-cycles-frontend     162,974,812,119 (  49.20%)	  159,290,061,987 (  48.43%)	   88,046,641,169 (  33.21%)
stalled-cycles-backend       92,223,151,661 (  27.84%)	   91,667,904,406 (  27.87%)	   44,068,454,971 (  16.62%)
instructions                369,516,432,430 (    1.12)	  369,361,799,063 (    1.12)	  365,290,380,661 (    1.38)
branches                     70,795,673,950 ( 594.220)	   70,743,136,124 ( 597.876)	   69,803,996,038 ( 732.822)
branch-misses                   181,708,327 (   0.26%)	      165,767,821 (   0.23%)	      150,109,797 (   0.22%)
                                      jobs8 (        )	                  (        )	                  (        )
stalled-cycles-frontend     185,000,017,027 (  49.30%)	  182,334,345,473 (  48.37%)	   99,980,147,041 (  33.26%)
stalled-cycles-backend      105,753,516,186 (  28.18%)	  107,937,830,322 (  28.63%)	   51,404,177,181 (  17.10%)
instructions                418,153,161,055 (    1.11)	  418,308,565,828 (    1.11)	  413,653,475,581 (    1.38)
branches                     80,035,882,398 ( 592.296)	   80,063,204,510 ( 589.843)	   79,024,105,589 ( 730.530)
branch-misses                   199,764,528 (   0.25%)	      177,936,926 (   0.22%)	      160,525,449 (   0.20%)
                                      jobs9 (        )	                  (        )	                  (        )
stalled-cycles-frontend     210,941,799,094 (  49.63%)	  204,714,679,254 (  48.55%)	  114,251,113,756 (  33.96%)
stalled-cycles-backend      122,640,849,067 (  28.85%)	  122,188,553,256 (  28.98%)	   58,360,041,127 (  17.35%)
instructions                468,151,025,415 (    1.10)	  467,354,869,323 (    1.11)	  462,665,165,216 (    1.38)
branches                     89,657,067,510 ( 585.628)	   89,411,550,407 ( 588.990)	   88,360,523,943 ( 730.151)
branch-misses                   218,292,301 (   0.24%)	      191,701,247 (   0.21%)	      178,535,678 (   0.20%)
                                     jobs10 (        )	                  (        )	                  (        )
stalled-cycles-frontend     233,595,958,008 (  49.81%)	  227,540,615,689 (  49.11%)	  160,341,979,938 (  43.07%)
stalled-cycles-backend      136,153,676,021 (  29.03%)	  133,635,240,742 (  28.84%)	   65,909,135,465 (  17.70%)
instructions                517,001,168,497 (    1.10)	  516,210,976,158 (    1.11)	  511,374,038,613 (    1.37)
branches                     98,911,641,329 ( 585.796)	   98,700,069,712 ( 591.583)	   97,646,761,028 ( 728.712)
branch-misses                   232,341,823 (   0.23%)	      199,256,308 (   0.20%)	      183,135,268 (   0.19%)


per-cpu streams tend to cause significantly less stalled cycles.


perf stat reported execution time

			4 streams	 8 streams	 per-cpu
====================================================================
jobs1
seconds elapsed        20.909073870	20.875670495	20.817838540
jobs2
seconds elapsed        18.529488399	18.720566469	16.356103108
jobs3
seconds elapsed        18.991159531	18.991340812	16.766216066
jobs4
seconds elapsed        19.560643828	19.551323547	16.246621715
jobs5
seconds elapsed        24.746498464	25.221646740	20.696112444
jobs6
seconds elapsed        28.258181828	28.289765505	22.885688857
jobs7
seconds elapsed        32.632490241	31.909125381	26.272753738
jobs8
seconds elapsed        35.651403851	36.027596308	29.108024711
jobs9
seconds elapsed        40.569362365	40.024227989	32.898204012
jobs10
seconds elapsed        44.673112304	43.874898137	35.632952191


quite interesting numbers.




NOTE:
-- fio seems does not attempt to write to device more than disk size, so
   the test don't include 're-compresion path'.

	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-18  7:57                       ` Sergey Senozhatsky
@ 2016-04-19  8:00                         ` Minchan Kim
  2016-04-19  8:08                           ` Sergey Senozhatsky
  2016-04-26 11:23                           ` Sergey Senozhatsky
  0 siblings, 2 replies; 22+ messages in thread
From: Minchan Kim @ 2016-04-19  8:00 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Andrew Morton, linux-kernel, Sergey Senozhatsky

On Mon, Apr 18, 2016 at 04:57:58PM +0900, Sergey Senozhatsky wrote:
> Hello Minchan,
> sorry, it took me so long to return back to testing.
> 
> I collected extended stats (perf), just like you requested.
> - 3G zram, lzo; 4 CPU x86_64 box.
> - fio with perf stat
> 
> 		4 streams	 8 streams	 per-cpu
> ===========================================================
> #jobs1                         	                	                
> READ:           2520.1MB/s	 2566.5MB/s	 2491.5MB/s
> READ:           2102.7MB/s	 2104.2MB/s	 2091.3MB/s
> WRITE:          1355.1MB/s	 1320.2MB/s	 1378.9MB/s
> WRITE:          1103.5MB/s	 1097.2MB/s	 1122.5MB/s
> READ:           434013KB/s	 435153KB/s	 439961KB/s
> WRITE:          433969KB/s	 435109KB/s	 439917KB/s
> READ:           403166KB/s	 405139KB/s	 403373KB/s
> WRITE:          403223KB/s	 405197KB/s	 403430KB/s
> #jobs2                         	                	                
> READ:           7958.6MB/s	 8105.6MB/s	 8073.7MB/s
> READ:           6864.9MB/s	 6989.8MB/s	 7021.8MB/s
> WRITE:          2438.1MB/s	 2346.9MB/s	 3400.2MB/s
> WRITE:          1994.2MB/s	 1990.3MB/s	 2941.2MB/s
> READ:           981504KB/s	 973906KB/s	 1018.8MB/s
> WRITE:          981659KB/s	 974060KB/s	 1018.1MB/s
> READ:           937021KB/s	 938976KB/s	 987250KB/s
> WRITE:          934878KB/s	 936830KB/s	 984993KB/s
> #jobs3                         	                	                
> READ:           13280MB/s	 13553MB/s	 13553MB/s
> READ:           11534MB/s	 11785MB/s	 11755MB/s
> WRITE:          3456.9MB/s	 3469.9MB/s	 4810.3MB/s
> WRITE:          3029.6MB/s	 3031.6MB/s	 4264.8MB/s
> READ:           1363.8MB/s	 1362.6MB/s	 1448.9MB/s
> WRITE:          1361.9MB/s	 1360.7MB/s	 1446.9MB/s
> READ:           1309.4MB/s	 1310.6MB/s	 1397.5MB/s
> WRITE:          1307.4MB/s	 1308.5MB/s	 1395.3MB/s
> #jobs4                         	                	                
> READ:           20244MB/s	 20177MB/s	 20344MB/s
> READ:           17886MB/s	 17913MB/s	 17835MB/s
> WRITE:          4071.6MB/s	 4046.1MB/s	 6370.2MB/s
> WRITE:          3608.9MB/s	 3576.3MB/s	 5785.4MB/s
> READ:           1824.3MB/s	 1821.6MB/s	 1997.5MB/s
> WRITE:          1819.8MB/s	 1817.4MB/s	 1992.5MB/s
> READ:           1765.7MB/s	 1768.3MB/s	 1937.3MB/s
> WRITE:          1767.5MB/s	 1769.1MB/s	 1939.2MB/s
> #jobs5                         	                	                
> READ:           18663MB/s	 18986MB/s	 18823MB/s
> READ:           16659MB/s	 16605MB/s	 16954MB/s
> WRITE:          3912.4MB/s	 3888.7MB/s	 6126.9MB/s
> WRITE:          3506.4MB/s	 3442.5MB/s	 5519.3MB/s
> READ:           1798.2MB/s	 1746.5MB/s	 1935.8MB/s
> WRITE:          1792.7MB/s	 1740.7MB/s	 1929.1MB/s
> READ:           1727.6MB/s	 1658.2MB/s	 1917.3MB/s
> WRITE:          1726.5MB/s	 1657.2MB/s	 1916.6MB/s
> #jobs6                         	                	                
> READ:           21017MB/s	 20922MB/s	 21162MB/s
> READ:           19022MB/s	 19140MB/s	 18770MB/s
> WRITE:          3968.2MB/s	 4037.7MB/s	 6620.8MB/s
> WRITE:          3643.5MB/s	 3590.2MB/s	 6027.5MB/s
> READ:           1871.8MB/s	 1880.5MB/s	 2049.9MB/s
> WRITE:          1867.8MB/s	 1877.2MB/s	 2046.2MB/s
> READ:           1755.8MB/s	 1710.3MB/s	 1964.7MB/s
> WRITE:          1750.5MB/s	 1705.9MB/s	 1958.8MB/s
> #jobs7                         	                	                
> READ:           21103MB/s	 20677MB/s	 21482MB/s
> READ:           18522MB/s	 18379MB/s	 19443MB/s
> WRITE:          4022.5MB/s	 4067.4MB/s	 6755.9MB/s
> WRITE:          3691.7MB/s	 3695.5MB/s	 5925.6MB/s
> READ:           1841.5MB/s	 1933.9MB/s	 2090.5MB/s
> WRITE:          1842.7MB/s	 1935.3MB/s	 2091.9MB/s
> READ:           1832.4MB/s	 1856.4MB/s	 1971.5MB/s
> WRITE:          1822.3MB/s	 1846.2MB/s	 1960.6MB/s
> #jobs8                         	                	                
> READ:           20463MB/s	 20194MB/s	 20862MB/s
> READ:           18178MB/s	 17978MB/s	 18299MB/s
> WRITE:          4085.9MB/s	 4060.2MB/s	 7023.8MB/s
> WRITE:          3776.3MB/s	 3737.9MB/s	 6278.2MB/s
> READ:           1957.6MB/s	 1944.4MB/s	 2109.5MB/s
> WRITE:          1959.2MB/s	 1946.2MB/s	 2111.4MB/s
> READ:           1900.6MB/s	 1885.7MB/s	 2082.1MB/s
> WRITE:          1896.2MB/s	 1881.4MB/s	 2078.3MB/s
> #jobs9                         	                	                
> READ:           19692MB/s	 19734MB/s	 19334MB/s
> READ:           17678MB/s	 18249MB/s	 17666MB/s
> WRITE:          4004.7MB/s	 4064.8MB/s	 6990.7MB/s
> WRITE:          3724.7MB/s	 3772.1MB/s	 6193.6MB/s
> READ:           1953.7MB/s	 1967.3MB/s	 2105.6MB/s
> WRITE:          1953.4MB/s	 1966.7MB/s	 2104.1MB/s
> READ:           1860.4MB/s	 1897.4MB/s	 2068.5MB/s
> WRITE:          1858.9MB/s	 1895.9MB/s	 2066.8MB/s
> #jobs10                        	                	                
> READ:           19730MB/s	 19579MB/s	 19492MB/s
> READ:           18028MB/s	 18018MB/s	 18221MB/s
> WRITE:          4027.3MB/s	 4090.6MB/s	 7020.1MB/s
> WRITE:          3810.5MB/s	 3846.8MB/s	 6426.8MB/s
> READ:           1956.1MB/s	 1994.6MB/s	 2145.2MB/s
> WRITE:          1955.9MB/s	 1993.5MB/s	 2144.8MB/s
> READ:           1852.8MB/s	 1911.6MB/s	 2075.8MB/s
> WRITE:          1855.7MB/s	 1914.6MB/s	 2078.1MB/s
> 
> 
> perf stat
> 
> 				4 streams			8 streams			per-cpu
> ====================================================================================================================
>                                       jobs1 (        )	                  (        )	                  (        )
> stalled-cycles-frontend      23,174,811,209 (  38.21%)	   23,220,254,188 (  38.25%)	   23,061,406,918 (  38.34%)
> stalled-cycles-backend       11,514,174,638 (  18.98%)	   11,696,722,657 (  19.27%)	   11,370,852,810 (  18.90%)
> instructions                 73,925,005,782 (    1.22)	   73,903,177,632 (    1.22)	   73,507,201,037 (    1.22)
> branches                     14,455,124,835 ( 756.063)	   14,455,184,779 ( 755.281)	   14,378,599,509 ( 758.546)
> branch-misses                    69,801,336 (   0.48%)	       80,225,529 (   0.55%)	       72,044,726 (   0.50%)
>                                       jobs2 (        )	                  (        )	                  (        )
> stalled-cycles-frontend      49,912,741,782 (  46.11%)	   50,101,189,290 (  45.95%)	   32,874,195,633 (  35.11%)
> stalled-cycles-backend       27,080,366,230 (  25.02%)	   27,949,970,232 (  25.63%)	   16,461,222,706 (  17.58%)
> instructions                122,831,629,690 (    1.13)	  122,919,846,419 (    1.13)	  121,924,786,775 (    1.30)
> branches                     23,725,889,239 ( 692.663)	   23,733,547,140 ( 688.062)	   23,553,950,311 ( 794.794)
> branch-misses                    90,733,041 (   0.38%)	       96,320,895 (   0.41%)	       84,561,092 (   0.36%)
>                                       jobs3 (        )	                  (        )	                  (        )
> stalled-cycles-frontend      66,437,834,608 (  45.58%)	   63,534,923,344 (  43.69%)	   42,101,478,505 (  33.19%)
> stalled-cycles-backend       34,940,799,661 (  23.97%)	   34,774,043,148 (  23.91%)	   21,163,324,388 (  16.68%)
> instructions                171,692,121,862 (    1.18)	  171,775,373,044 (    1.18)	  170,353,542,261 (    1.34)
> branches                     32,968,962,622 ( 628.723)	   32,987,739,894 ( 630.512)	   32,729,463,918 ( 717.027)
> branch-misses                   111,522,732 (   0.34%)	      110,472,894 (   0.33%)	       99,791,291 (   0.30%)
>                                       jobs4 (        )	                  (        )	                  (        )
> stalled-cycles-frontend      98,741,701,675 (  49.72%)	   94,797,349,965 (  47.59%)	   54,535,655,381 (  33.53%)
> stalled-cycles-backend       54,642,609,615 (  27.51%)	   55,233,554,408 (  27.73%)	   27,882,323,541 (  17.14%)
> instructions                220,884,807,851 (    1.11)	  220,930,887,273 (    1.11)	  218,926,845,851 (    1.35)
> branches                     42,354,518,180 ( 592.105)	   42,362,770,587 ( 590.452)	   41,955,552,870 ( 716.154)
> branch-misses                   138,093,449 (   0.33%)	      131,295,286 (   0.31%)	      121,794,771 (   0.29%)
>                                       jobs5 (        )	                  (        )	                  (        )
> stalled-cycles-frontend     116,219,747,212 (  48.14%)	  110,310,397,012 (  46.29%)	   66,373,082,723 (  33.70%)
> stalled-cycles-backend       66,325,434,776 (  27.48%)	   64,157,087,914 (  26.92%)	   32,999,097,299 (  16.76%)
> instructions                270,615,008,466 (    1.12)	  270,546,409,525 (    1.14)	  268,439,910,948 (    1.36)
> branches                     51,834,046,557 ( 599.108)	   51,811,867,722 ( 608.883)	   51,412,576,077 ( 729.213)
> branch-misses                   158,197,086 (   0.31%)	      142,639,805 (   0.28%)	      133,425,455 (   0.26%)
>                                       jobs6 (        )	                  (        )	                  (        )
> stalled-cycles-frontend     138,009,414,492 (  48.23%)	  139,063,571,254 (  48.80%)	   75,278,568,278 (  32.80%)
> stalled-cycles-backend       79,211,949,650 (  27.68%)	   79,077,241,028 (  27.75%)	   37,735,797,899 (  16.44%)
> instructions                319,763,993,731 (    1.12)	  319,937,782,834 (    1.12)	  316,663,600,784 (    1.38)
> branches                     61,219,433,294 ( 595.056)	   61,250,355,540 ( 598.215)	   60,523,446,617 ( 733.706)
> branch-misses                   169,257,123 (   0.28%)	      154,898,028 (   0.25%)	      141,180,587 (   0.23%)
>                                       jobs7 (        )	                  (        )	                  (        )
> stalled-cycles-frontend     162,974,812,119 (  49.20%)	  159,290,061,987 (  48.43%)	   88,046,641,169 (  33.21%)
> stalled-cycles-backend       92,223,151,661 (  27.84%)	   91,667,904,406 (  27.87%)	   44,068,454,971 (  16.62%)
> instructions                369,516,432,430 (    1.12)	  369,361,799,063 (    1.12)	  365,290,380,661 (    1.38)
> branches                     70,795,673,950 ( 594.220)	   70,743,136,124 ( 597.876)	   69,803,996,038 ( 732.822)
> branch-misses                   181,708,327 (   0.26%)	      165,767,821 (   0.23%)	      150,109,797 (   0.22%)
>                                       jobs8 (        )	                  (        )	                  (        )
> stalled-cycles-frontend     185,000,017,027 (  49.30%)	  182,334,345,473 (  48.37%)	   99,980,147,041 (  33.26%)
> stalled-cycles-backend      105,753,516,186 (  28.18%)	  107,937,830,322 (  28.63%)	   51,404,177,181 (  17.10%)
> instructions                418,153,161,055 (    1.11)	  418,308,565,828 (    1.11)	  413,653,475,581 (    1.38)
> branches                     80,035,882,398 ( 592.296)	   80,063,204,510 ( 589.843)	   79,024,105,589 ( 730.530)
> branch-misses                   199,764,528 (   0.25%)	      177,936,926 (   0.22%)	      160,525,449 (   0.20%)
>                                       jobs9 (        )	                  (        )	                  (        )
> stalled-cycles-frontend     210,941,799,094 (  49.63%)	  204,714,679,254 (  48.55%)	  114,251,113,756 (  33.96%)
> stalled-cycles-backend      122,640,849,067 (  28.85%)	  122,188,553,256 (  28.98%)	   58,360,041,127 (  17.35%)
> instructions                468,151,025,415 (    1.10)	  467,354,869,323 (    1.11)	  462,665,165,216 (    1.38)
> branches                     89,657,067,510 ( 585.628)	   89,411,550,407 ( 588.990)	   88,360,523,943 ( 730.151)
> branch-misses                   218,292,301 (   0.24%)	      191,701,247 (   0.21%)	      178,535,678 (   0.20%)
>                                      jobs10 (        )	                  (        )	                  (        )
> stalled-cycles-frontend     233,595,958,008 (  49.81%)	  227,540,615,689 (  49.11%)	  160,341,979,938 (  43.07%)
> stalled-cycles-backend      136,153,676,021 (  29.03%)	  133,635,240,742 (  28.84%)	   65,909,135,465 (  17.70%)
> instructions                517,001,168,497 (    1.10)	  516,210,976,158 (    1.11)	  511,374,038,613 (    1.37)
> branches                     98,911,641,329 ( 585.796)	   98,700,069,712 ( 591.583)	   97,646,761,028 ( 728.712)
> branch-misses                   232,341,823 (   0.23%)	      199,256,308 (   0.20%)	      183,135,268 (   0.19%)
> 
> 
> per-cpu streams tend to cause significantly less stalled cycles.

Great!

So, based on your experiment, the reason I couldn't see such huge win
in my mahcine is cache size difference(i.e., yours is twice than mine,
IIRC.) and my perf stat didn't show such big difference.
If I have a time, I will test it in bigger machine.
> 
> 
> perf stat reported execution time
> 
> 			4 streams	 8 streams	 per-cpu
> ====================================================================
> jobs1
> seconds elapsed        20.909073870	20.875670495	20.817838540
> jobs2
> seconds elapsed        18.529488399	18.720566469	16.356103108
> jobs3
> seconds elapsed        18.991159531	18.991340812	16.766216066
> jobs4
> seconds elapsed        19.560643828	19.551323547	16.246621715
> jobs5
> seconds elapsed        24.746498464	25.221646740	20.696112444
> jobs6
> seconds elapsed        28.258181828	28.289765505	22.885688857
> jobs7
> seconds elapsed        32.632490241	31.909125381	26.272753738
> jobs8
> seconds elapsed        35.651403851	36.027596308	29.108024711
> jobs9
> seconds elapsed        40.569362365	40.024227989	32.898204012
> jobs10
> seconds elapsed        44.673112304	43.874898137	35.632952191
> 
> 
> quite interesting numbers.
> 
> 
> 
> 
> NOTE:
> -- fio seems does not attempt to write to device more than disk size, so
>    the test don't include 're-compresion path'.

I'm convinced now with your data. Super thanks!
However, as you know, we need data how bad it is in heavy memory pressure.
Maybe, you can test it with fio and backgound memory hogger,

Thanks for the test, Sergey!

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

* Re: zram: per-cpu compression streams
  2016-04-19  8:00                         ` Minchan Kim
@ 2016-04-19  8:08                           ` Sergey Senozhatsky
  2016-04-26 11:23                           ` Sergey Senozhatsky
  1 sibling, 0 replies; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-19  8:08 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky

Hello Minchan,

On (04/19/16 17:00), Minchan Kim wrote:
> Great!
> 
> So, based on your experiment, the reason I couldn't see such huge win
> in my mahcine is cache size difference(i.e., yours is twice than mine,
> IIRC.) and my perf stat didn't show such big difference.
> If I have a time, I will test it in bigger machine.

quite possible it's due to the cache size.

[..]
> > NOTE:
> > -- fio seems does not attempt to write to device more than disk size, so
> >    the test don't include 're-compresion path'.
> 
> I'm convinced now with your data. Super thanks!
> However, as you know, we need data how bad it is in heavy memory pressure.
> Maybe, you can test it with fio and backgound memory hogger,

yeah, sure, will work on it.

> Thanks for the test, Sergey!

thanks!

	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-19  8:00                         ` Minchan Kim
  2016-04-19  8:08                           ` Sergey Senozhatsky
@ 2016-04-26 11:23                           ` Sergey Senozhatsky
  2016-04-27  7:29                             ` Minchan Kim
  1 sibling, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-26 11:23 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky

Hello Minchan,

On (04/19/16 17:00), Minchan Kim wrote:
[..]
> I'm convinced now with your data. Super thanks!
> However, as you know, we need data how bad it is in heavy memory pressure.
> Maybe, you can test it with fio and backgound memory hogger,

it's really hard to produce stable test results when the system
is under mem pressure.

first, I modified zram to export the re-compression number
(put cpu stream and re-try handler allocation)

mm_stat for numjobs{1..10}. the number of re-compressions is in "< NUM>" format

3221225472 3221225472 3221225472        0 3221229568        0        0 <    6421>
3221225472 3221225472 3221225472        0 3221233664        0        0 <    6998>
3221225472 2912157607 2952802304        0 2952814592        0       84 <    7271>
3221225472 2893479936 2899120128        0 2899136512        0      156 <    8260>
3221217280 2886040814 2899099648        0 2899128320        0       78 <    8297>
3221225472 2880045056 2885693440        0 2885718016        0       54 <    7794>
3221213184 2877431364 2883756032        0 2883801088        0      144 <    7336>
3221225472 2873229312 2876096512        0 2876133376        0       28 <    8699>
3221213184 2870728008 2871693312        0 2871730176        0       30 <    8189>
2899095552 2899095552 2899095552        0 2899136512    78643        0 <    7485>

as we can see, the number of re-compressions can vary from 6421 to 8699.


the test:

-- 4 GB x86_64 box
-- zram 3GB, lzo
-- mem-hogger pre-faults 3GB of pages before the fio test
-- fio test has been modified to have 11% compression ratio (to increase the
                                                  chances of re-compressions)
   -- buffer_compress_percentage=11
   -- scramble_buffers=0


considering buffer_compress_percentage=11, the box was under somewhat
heavy pressure.

now, the results


fio stats

                4 streams        8 streams       per cpu
===========================================================
#jobs1                         	                	                
READ:           2411.4MB/s	 2430.4MB/s	 2440.4MB/s
READ:           2094.8MB/s	 2002.7MB/s	 2034.5MB/s
WRITE:          141571KB/s	 140334KB/s	 143542KB/s
WRITE:          712025KB/s	 706111KB/s	 745256KB/s
READ:           531014KB/s	 525250KB/s	 537547KB/s
WRITE:          530960KB/s	 525197KB/s	 537492KB/s
READ:           473577KB/s	 470320KB/s	 476880KB/s
WRITE:          473645KB/s	 470387KB/s	 476948KB/s
#jobs2                         	                	                
READ:           7897.2MB/s	 8031.4MB/s	 7968.9MB/s
READ:           6864.9MB/s	 6803.2MB/s	 6903.4MB/s
WRITE:          321386KB/s	 314227KB/s	 313101KB/s
WRITE:          1275.3MB/s	 1245.6MB/s	 1383.5MB/s
READ:           1035.5MB/s	 1021.9MB/s	 1098.4MB/s
WRITE:          1035.6MB/s	 1021.1MB/s	 1098.6MB/s
READ:           972014KB/s	 952321KB/s	 987.66MB/s
WRITE:          969792KB/s	 950144KB/s	 985.40MB/s
#jobs3                         	                	                
READ:           13260MB/s	 13260MB/s	 13222MB/s
READ:           11636MB/s	 11636MB/s	 11755MB/s
WRITE:          511500KB/s	 507730KB/s	 504959KB/s
WRITE:          1646.1MB/s	 1673.9MB/s	 1755.5MB/s
READ:           1389.5MB/s	 1387.2MB/s	 1479.6MB/s
WRITE:          1387.6MB/s	 1385.3MB/s	 1477.4MB/s
READ:           1286.8MB/s	 1289.1MB/s	 1377.3MB/s
WRITE:          1284.8MB/s	 1287.1MB/s	 1374.9MB/s
#jobs4                         	                	                
READ:           19851MB/s	 20244MB/s	 20344MB/s
READ:           17732MB/s	 17835MB/s	 18097MB/s
WRITE:          667776KB/s	 655599KB/s	 693464KB/s
WRITE:          2041.2MB/s	 2072.6MB/s	 2474.1MB/s
READ:           1770.1MB/s	 1781.7MB/s	 2035.5MB/s
WRITE:          1765.8MB/s	 1777.3MB/s	 2030.5MB/s
READ:           1641.6MB/s	 1672.4MB/s	 1892.5MB/s
WRITE:          1643.2MB/s	 1674.2MB/s	 1894.4MB/s
#jobs5                         	                	                
READ:           19468MB/s	 18484MB/s	 18439MB/s
READ:           17594MB/s	 17757MB/s	 17716MB/s
WRITE:          843266KB/s	 859627KB/s	 867928KB/s
WRITE:          1927.1MB/s	 2041.8MB/s	 2168.9MB/s
READ:           1718.6MB/s	 1771.7MB/s	 1963.5MB/s
WRITE:          1712.7MB/s	 1765.6MB/s	 1956.8MB/s
READ:           1705.3MB/s	 1663.6MB/s	 1767.3MB/s
WRITE:          1704.3MB/s	 1662.6MB/s	 1766.2MB/s
#jobs6                         	                	                
READ:           21583MB/s	 21685MB/s	 21483MB/s
READ:           19160MB/s	 18432MB/s	 18618MB/s
WRITE:          986276KB/s	 1004.2MB/s	 981.11MB/s
WRITE:          2013.6MB/s	 1922.5MB/s	 2429.1MB/s
READ:           1797.1MB/s	 1678.9MB/s	 2038.8MB/s
WRITE:          1794.8MB/s	 1675.9MB/s	 2035.2MB/s
READ:           1678.2MB/s	 1632.5MB/s	 1917.4MB/s
WRITE:          1673.9MB/s	 1627.6MB/s	 1911.6MB/s
#jobs7                         	                	                
READ:           20697MB/s	 21677MB/s	 21062MB/s
READ:           18781MB/s	 18667MB/s	 19338MB/s
WRITE:          1074.6MB/s	 1099.8MB/s	 1105.3MB/s
WRITE:          2100.7MB/s	 2010.3MB/s	 2598.7MB/s
READ:           1783.2MB/s	 1710.2MB/s	 2027.8MB/s
WRITE:          1784.3MB/s	 1712.1MB/s	 2029.6MB/s
READ:           1690.8MB/s	 1620.6MB/s	 1893.6MB/s
WRITE:          1681.4MB/s	 1611.7MB/s	 1883.7MB/s
#jobs8                         	                	                
READ:           19883MB/s	 20827MB/s	 20395MB/s
READ:           18562MB/s	 18178MB/s	 17822MB/s
WRITE:          1240.5MB/s	 1307.3MB/s	 1331.7MB/s
WRITE:          2132.1MB/s	 2143.6MB/s	 2564.9MB/s
READ:           1841.1MB/s	 1831.1MB/s	 2111.4MB/s
WRITE:          1843.1MB/s	 1833.1MB/s	 2113.4MB/s
READ:           1795.4MB/s	 1778.6MB/s	 2029.3MB/s
WRITE:          1791.4MB/s	 1774.5MB/s	 2024.5MB/s
#jobs9                         	                	                
READ:           18834MB/s	 19470MB/s	 19402MB/s
READ:           17988MB/s	 18118MB/s	 18531MB/s
WRITE:          1339.4MB/s	 1441.2MB/s	 1512.6MB/s
WRITE:          2102.4MB/s	 2111.9MB/s	 2478.8MB/s
READ:           1754.5MB/s	 1777.3MB/s	 2050.2MB/s
WRITE:          1753.9MB/s	 1776.7MB/s	 2049.5MB/s
READ:           1686.4MB/s	 1698.2MB/s	 1931.6MB/s
WRITE:          1684.1MB/s	 1696.8MB/s	 1929.1MB/s
#jobs10                        	                	                
READ:           19128MB/s	 19517MB/s	 19592MB/s
READ:           18177MB/s	 17544MB/s	 18221MB/s
WRITE:          1397.1MB/s	 1567.4MB/s	 1683.2MB/s
WRITE:          2151.9MB/s	 2205.1MB/s	 2642.6MB/s
READ:           1879.2MB/s	 1907.3MB/s	 2223.2MB/s
WRITE:          1878.5MB/s	 1906.2MB/s	 2222.8MB/s
READ:           1835.7MB/s	 1837.9MB/s	 2131.4MB/s
WRITE:          1838.6MB/s	 1840.8MB/s	 2134.8MB/s


perf stats

                             4 streams                     8 streams                       per cpu
====================================================================================================================
jobs1
stalled-cycles-frontend      52,219,601,943 (  55.87%)	   53,406,899,652 (  56.33%)	   49,944,625,376 (  56.27%)
stalled-cycles-backend       23,194,739,214 (  24.82%)	   24,397,423,796 (  25.73%)	   22,782,579,660 (  25.67%)
instructions                 86,078,512,819 (    0.92)	   86,235,354,709 (    0.91)	   80,378,845,354 (    0.91)
branches                     15,732,850,506 ( 532.108)	   15,743,473,327 ( 522.592)	   14,725,420,241 ( 523.425)
branch-misses                   104,546,578 (   0.66%)	      107,847,818 (   0.69%)	      106,343,602 (   0.72%)
jobs2
stalled-cycles-frontend     118,614,605,521 (  59.74%)	  113,520,838,279 (  59.94%)	  104,301,243,221 (  59.06%)
stalled-cycles-backend       59,490,170,824 (  29.96%)	   56,518,872,622 (  29.84%)	   50,161,702,782 (  28.40%)
instructions                169,663,993,572 (    0.85)	  160,959,388,344 (    0.85)	  153,541,182,646 (    0.87)
branches                     31,859,926,551 ( 497.945)	   30,132,524,256 ( 494.660)	   28,579,927,064 ( 503.079)
branch-misses                   164,531,311 (   0.52%)	      163,509,596 (   0.54%)	      145,472,902 (   0.51%)
jobs3
stalled-cycles-frontend     153,932,401,104 (  60.86%)	  158,470,334,291 (  60.81%)	  150,767,641,835 (  59.21%)
stalled-cycles-backend       77,023,824,597 (  30.45%)	   79,673,952,089 (  30.57%)	   72,693,245,174 (  28.55%)
instructions                197,452,119,661 (    0.78)	  204,116,060,906 (    0.78)	  207,832,729,315 (    0.82)
branches                     36,579,918,543 ( 404.660)	   37,980,582,651 ( 406.326)	   39,091,715,974 ( 428.559)
branch-misses                   214,292,753 (   0.59%)	      215,861,282 (   0.57%)	      203,320,703 (   0.52%)
jobs4
stalled-cycles-frontend     237,223,396,661 (  64.22%)	  227,572,336,186 (  64.37%)	  202,100,979,033 (  61.41%)
stalled-cycles-backend      129,935,296,918 (  35.17%)	  124,957,172,193 (  35.34%)	  103,626,575,103 (  31.49%)
instructions                270,083,196,348 (    0.73)	  257,652,752,109 (    0.73)	  259,773,237,031 (    0.79)
branches                     52,120,828,566 ( 391.426)	   49,121,254,042 ( 385.647)	   49,896,944,076 ( 420.532)
branch-misses                   260,480,947 (   0.50%)	      254,957,745 (   0.52%)	      239,402,681 (   0.48%)
jobs5
stalled-cycles-frontend     257,778,703,389 (  64.89%)	  265,688,762,182 (  65.13%)	  229,916,792,090 (  61.41%)
stalled-cycles-backend      142,090,098,727 (  35.77%)	  147,101,411,510 (  36.06%)	  117,081,586,471 (  31.27%)
instructions                291,859,438,730 (    0.73)	  298,380,653,546 (    0.73)	  302,840,047,693 (    0.81)
branches                     55,111,567,225 ( 385.905)	   56,316,470,332 ( 383.545)	   57,500,842,324 ( 428.083)
branch-misses                   270,056,201 (   0.49%)	      269,400,845 (   0.48%)	      258,495,925 (   0.45%)
jobs6
stalled-cycles-frontend     311,626,093,277 (  65.61%)	  314,291,595,576 (  65.77%)	  249,524,291,273 (  61.39%)
stalled-cycles-backend      174,358,063,361 (  36.71%)	  177,312,195,233 (  37.10%)	  126,508,172,269 (  31.13%)
instructions                345,271,436,105 (    0.73)	  346,679,577,246 (    0.73)	  333,258,054,473 (    0.82)
branches                     65,298,537,641 ( 381.664)	   65,995,652,812 ( 383.717)	   62,730,160,550 ( 428.999)
branch-misses                   313,241,654 (   0.48%)	      307,876,772 (   0.47%)	      282,570,360 (   0.45%)
jobs7
stalled-cycles-frontend     333,896,608,350 (  64.68%)	  349,165,441,969 (  64.85%)	  276,185,831,513 (  59.95%)
stalled-cycles-backend      186,083,638,772 (  36.05%)	  197,000,957,906 (  36.59%)	  138,835,486,733 (  30.14%)
instructions                388,707,023,219 (    0.75)	  404,347,465,692 (    0.75)	  394,078,203,426 (    0.86)
branches                     71,999,476,930 ( 387.008)	   76,197,698,685 ( 392.759)	   73,195,649,665 ( 440.914)
branch-misses                   328,598,294 (   0.46%)	      323,895,230 (   0.43%)	      298,205,996 (   0.41%)
jobs8
stalled-cycles-frontend     378,806,234,772 (  66.73%)	  369,453,970,323 (  66.55%)	  313,738,845,641 (  62.55%)
stalled-cycles-backend      211,732,966,238 (  37.30%)	  207,691,463,546 (  37.41%)	  161,120,924,768 (  32.12%)
instructions                406,674,721,912 (    0.72)	  401,922,649,599 (    0.72)	  405,830,823,213 (    0.81)
branches                     75,637,492,422 ( 369.371)	   74,287,789,757 ( 371.226)	   75,967,291,039 ( 420.260)
branch-misses                   355,733,892 (   0.47%)	      328,972,387 (   0.44%)	      318,203,258 (   0.42%)
jobs9
stalled-cycles-frontend     422,712,242,907 (  66.39%)	  417,293,429,710 (  66.14%)	  343,703,467,466 (  61.35%)
stalled-cycles-backend      239,356,726,574 (  37.59%)	  231,725,068,834 (  36.73%)	  172,101,321,805 (  30.72%)
instructions                465,964,470,967 (    0.73)	  468,561,486,803 (    0.74)	  474,119,504,255 (    0.85)
branches                     86,724,291,348 ( 377.755)	   86,534,438,758 ( 380.374)	   88,431,722,886 ( 437.939)
branch-misses                   385,706,052 (   0.44%)	      360,946,347 (   0.42%)	      337,858,267 (   0.38%)
jobs10
stalled-cycles-frontend     451,844,797,592 (  67.24%)	  435,099,070,573 (  67.18%)	  352,877,428,118 (  62.18%)
stalled-cycles-backend      255,533,666,521 (  38.03%)	  249,295,276,734 (  38.49%)	  179,754,582,074 (  31.67%)
instructions                472,331,884,636 (    0.70)	  458,948,698,965 (    0.71)	  464,131,768,633 (    0.82)
branches                     88,848,212,769 ( 366.556)	   85,330,239,413 ( 365.282)	   86,837,838,069 ( 424.329)
branch-misses                   398,856,497 (   0.45%)	      359,532,394 (   0.42%)	      333,821,387 (   0.38%)



perf reported execution time

                       4 streams        8 streams       per cpu
====================================================================
seconds elapsed        41.359653597	43.131195776	40.961640812
seconds elapsed        37.778174380	38.681792299	38.368529861
seconds elapsed        38.367149768	39.368008799	37.687545579
seconds elapsed        40.402963748	39.177529033	36.205357101
seconds elapsed        44.145428970	43.251655348	41.810848146
seconds elapsed        49.344988495	49.951048242	44.270045250
seconds elapsed        53.865398777	54.271392367	48.824173559
seconds elapsed        57.028770416	56.228105290	51.332017545
seconds elapsed        62.931350164	61.251237873	55.977463074
seconds elapsed        67.088285633	63.544376242	57.690998344


	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-26 11:23                           ` Sergey Senozhatsky
@ 2016-04-27  7:29                             ` Minchan Kim
  2016-04-27  7:43                               ` Sergey Senozhatsky
  2016-04-27  8:54                               ` Sergey Senozhatsky
  0 siblings, 2 replies; 22+ messages in thread
From: Minchan Kim @ 2016-04-27  7:29 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Andrew Morton, linux-kernel, Sergey Senozhatsky

Hello Sergey,

On Tue, Apr 26, 2016 at 08:23:05PM +0900, Sergey Senozhatsky wrote:
> Hello Minchan,
> 
> On (04/19/16 17:00), Minchan Kim wrote:
> [..]
> > I'm convinced now with your data. Super thanks!
> > However, as you know, we need data how bad it is in heavy memory pressure.
> > Maybe, you can test it with fio and backgound memory hogger,
> 
> it's really hard to produce stable test results when the system
> is under mem pressure.
> 
> first, I modified zram to export the re-compression number
> (put cpu stream and re-try handler allocation)
> 
> mm_stat for numjobs{1..10}. the number of re-compressions is in "< NUM>" format
> 
> 3221225472 3221225472 3221225472        0 3221229568        0        0 <    6421>
> 3221225472 3221225472 3221225472        0 3221233664        0        0 <    6998>
> 3221225472 2912157607 2952802304        0 2952814592        0       84 <    7271>
> 3221225472 2893479936 2899120128        0 2899136512        0      156 <    8260>
> 3221217280 2886040814 2899099648        0 2899128320        0       78 <    8297>
> 3221225472 2880045056 2885693440        0 2885718016        0       54 <    7794>
> 3221213184 2877431364 2883756032        0 2883801088        0      144 <    7336>
> 3221225472 2873229312 2876096512        0 2876133376        0       28 <    8699>
> 3221213184 2870728008 2871693312        0 2871730176        0       30 <    8189>
> 2899095552 2899095552 2899095552        0 2899136512    78643        0 <    7485>

It would be great when we see the below ratio for each test.

        1-compression : 2(re)-compression

> 
> as we can see, the number of re-compressions can vary from 6421 to 8699.
> 
> 
> the test:
> 
> -- 4 GB x86_64 box
> -- zram 3GB, lzo
> -- mem-hogger pre-faults 3GB of pages before the fio test
> -- fio test has been modified to have 11% compression ratio (to increase the
>                                                   chances of re-compressions)

Could you test concurrent mem hogger with fio rather than pre-fault before fio test
in next submit?

>    -- buffer_compress_percentage=11
>    -- scramble_buffers=0
> 
> 
> considering buffer_compress_percentage=11, the box was under somewhat
> heavy pressure.
> 
> now, the results

Yeb, Even, recompression case is fater than old but want to see more heavy memory
pressure case and the ratio I mentioned above.

If the result is still good, please send public patch with number.
Thanks for looking this, Sergey!

> 
> 
> fio stats
> 
>                 4 streams        8 streams       per cpu
> ===========================================================
> #jobs1                         	                	                
> READ:           2411.4MB/s	 2430.4MB/s	 2440.4MB/s
> READ:           2094.8MB/s	 2002.7MB/s	 2034.5MB/s
> WRITE:          141571KB/s	 140334KB/s	 143542KB/s
> WRITE:          712025KB/s	 706111KB/s	 745256KB/s
> READ:           531014KB/s	 525250KB/s	 537547KB/s
> WRITE:          530960KB/s	 525197KB/s	 537492KB/s
> READ:           473577KB/s	 470320KB/s	 476880KB/s
> WRITE:          473645KB/s	 470387KB/s	 476948KB/s
> #jobs2                         	                	                
> READ:           7897.2MB/s	 8031.4MB/s	 7968.9MB/s
> READ:           6864.9MB/s	 6803.2MB/s	 6903.4MB/s
> WRITE:          321386KB/s	 314227KB/s	 313101KB/s
> WRITE:          1275.3MB/s	 1245.6MB/s	 1383.5MB/s
> READ:           1035.5MB/s	 1021.9MB/s	 1098.4MB/s
> WRITE:          1035.6MB/s	 1021.1MB/s	 1098.6MB/s
> READ:           972014KB/s	 952321KB/s	 987.66MB/s
> WRITE:          969792KB/s	 950144KB/s	 985.40MB/s
> #jobs3                         	                	                
> READ:           13260MB/s	 13260MB/s	 13222MB/s
> READ:           11636MB/s	 11636MB/s	 11755MB/s
> WRITE:          511500KB/s	 507730KB/s	 504959KB/s
> WRITE:          1646.1MB/s	 1673.9MB/s	 1755.5MB/s
> READ:           1389.5MB/s	 1387.2MB/s	 1479.6MB/s
> WRITE:          1387.6MB/s	 1385.3MB/s	 1477.4MB/s
> READ:           1286.8MB/s	 1289.1MB/s	 1377.3MB/s
> WRITE:          1284.8MB/s	 1287.1MB/s	 1374.9MB/s
> #jobs4                         	                	                
> READ:           19851MB/s	 20244MB/s	 20344MB/s
> READ:           17732MB/s	 17835MB/s	 18097MB/s
> WRITE:          667776KB/s	 655599KB/s	 693464KB/s
> WRITE:          2041.2MB/s	 2072.6MB/s	 2474.1MB/s
> READ:           1770.1MB/s	 1781.7MB/s	 2035.5MB/s
> WRITE:          1765.8MB/s	 1777.3MB/s	 2030.5MB/s
> READ:           1641.6MB/s	 1672.4MB/s	 1892.5MB/s
> WRITE:          1643.2MB/s	 1674.2MB/s	 1894.4MB/s
> #jobs5                         	                	                
> READ:           19468MB/s	 18484MB/s	 18439MB/s
> READ:           17594MB/s	 17757MB/s	 17716MB/s
> WRITE:          843266KB/s	 859627KB/s	 867928KB/s
> WRITE:          1927.1MB/s	 2041.8MB/s	 2168.9MB/s
> READ:           1718.6MB/s	 1771.7MB/s	 1963.5MB/s
> WRITE:          1712.7MB/s	 1765.6MB/s	 1956.8MB/s
> READ:           1705.3MB/s	 1663.6MB/s	 1767.3MB/s
> WRITE:          1704.3MB/s	 1662.6MB/s	 1766.2MB/s
> #jobs6                         	                	                
> READ:           21583MB/s	 21685MB/s	 21483MB/s
> READ:           19160MB/s	 18432MB/s	 18618MB/s
> WRITE:          986276KB/s	 1004.2MB/s	 981.11MB/s
> WRITE:          2013.6MB/s	 1922.5MB/s	 2429.1MB/s
> READ:           1797.1MB/s	 1678.9MB/s	 2038.8MB/s
> WRITE:          1794.8MB/s	 1675.9MB/s	 2035.2MB/s
> READ:           1678.2MB/s	 1632.5MB/s	 1917.4MB/s
> WRITE:          1673.9MB/s	 1627.6MB/s	 1911.6MB/s
> #jobs7                         	                	                
> READ:           20697MB/s	 21677MB/s	 21062MB/s
> READ:           18781MB/s	 18667MB/s	 19338MB/s
> WRITE:          1074.6MB/s	 1099.8MB/s	 1105.3MB/s
> WRITE:          2100.7MB/s	 2010.3MB/s	 2598.7MB/s
> READ:           1783.2MB/s	 1710.2MB/s	 2027.8MB/s
> WRITE:          1784.3MB/s	 1712.1MB/s	 2029.6MB/s
> READ:           1690.8MB/s	 1620.6MB/s	 1893.6MB/s
> WRITE:          1681.4MB/s	 1611.7MB/s	 1883.7MB/s
> #jobs8                         	                	                
> READ:           19883MB/s	 20827MB/s	 20395MB/s
> READ:           18562MB/s	 18178MB/s	 17822MB/s
> WRITE:          1240.5MB/s	 1307.3MB/s	 1331.7MB/s
> WRITE:          2132.1MB/s	 2143.6MB/s	 2564.9MB/s
> READ:           1841.1MB/s	 1831.1MB/s	 2111.4MB/s
> WRITE:          1843.1MB/s	 1833.1MB/s	 2113.4MB/s
> READ:           1795.4MB/s	 1778.6MB/s	 2029.3MB/s
> WRITE:          1791.4MB/s	 1774.5MB/s	 2024.5MB/s
> #jobs9                         	                	                
> READ:           18834MB/s	 19470MB/s	 19402MB/s
> READ:           17988MB/s	 18118MB/s	 18531MB/s
> WRITE:          1339.4MB/s	 1441.2MB/s	 1512.6MB/s
> WRITE:          2102.4MB/s	 2111.9MB/s	 2478.8MB/s
> READ:           1754.5MB/s	 1777.3MB/s	 2050.2MB/s
> WRITE:          1753.9MB/s	 1776.7MB/s	 2049.5MB/s
> READ:           1686.4MB/s	 1698.2MB/s	 1931.6MB/s
> WRITE:          1684.1MB/s	 1696.8MB/s	 1929.1MB/s
> #jobs10                        	                	                
> READ:           19128MB/s	 19517MB/s	 19592MB/s
> READ:           18177MB/s	 17544MB/s	 18221MB/s
> WRITE:          1397.1MB/s	 1567.4MB/s	 1683.2MB/s
> WRITE:          2151.9MB/s	 2205.1MB/s	 2642.6MB/s
> READ:           1879.2MB/s	 1907.3MB/s	 2223.2MB/s
> WRITE:          1878.5MB/s	 1906.2MB/s	 2222.8MB/s
> READ:           1835.7MB/s	 1837.9MB/s	 2131.4MB/s
> WRITE:          1838.6MB/s	 1840.8MB/s	 2134.8MB/s
> 
> 
> perf stats
> 
>                              4 streams                     8 streams                       per cpu
> ====================================================================================================================
> jobs1
> stalled-cycles-frontend      52,219,601,943 (  55.87%)	   53,406,899,652 (  56.33%)	   49,944,625,376 (  56.27%)
> stalled-cycles-backend       23,194,739,214 (  24.82%)	   24,397,423,796 (  25.73%)	   22,782,579,660 (  25.67%)
> instructions                 86,078,512,819 (    0.92)	   86,235,354,709 (    0.91)	   80,378,845,354 (    0.91)
> branches                     15,732,850,506 ( 532.108)	   15,743,473,327 ( 522.592)	   14,725,420,241 ( 523.425)
> branch-misses                   104,546,578 (   0.66%)	      107,847,818 (   0.69%)	      106,343,602 (   0.72%)
> jobs2
> stalled-cycles-frontend     118,614,605,521 (  59.74%)	  113,520,838,279 (  59.94%)	  104,301,243,221 (  59.06%)
> stalled-cycles-backend       59,490,170,824 (  29.96%)	   56,518,872,622 (  29.84%)	   50,161,702,782 (  28.40%)
> instructions                169,663,993,572 (    0.85)	  160,959,388,344 (    0.85)	  153,541,182,646 (    0.87)
> branches                     31,859,926,551 ( 497.945)	   30,132,524,256 ( 494.660)	   28,579,927,064 ( 503.079)
> branch-misses                   164,531,311 (   0.52%)	      163,509,596 (   0.54%)	      145,472,902 (   0.51%)
> jobs3
> stalled-cycles-frontend     153,932,401,104 (  60.86%)	  158,470,334,291 (  60.81%)	  150,767,641,835 (  59.21%)
> stalled-cycles-backend       77,023,824,597 (  30.45%)	   79,673,952,089 (  30.57%)	   72,693,245,174 (  28.55%)
> instructions                197,452,119,661 (    0.78)	  204,116,060,906 (    0.78)	  207,832,729,315 (    0.82)
> branches                     36,579,918,543 ( 404.660)	   37,980,582,651 ( 406.326)	   39,091,715,974 ( 428.559)
> branch-misses                   214,292,753 (   0.59%)	      215,861,282 (   0.57%)	      203,320,703 (   0.52%)
> jobs4
> stalled-cycles-frontend     237,223,396,661 (  64.22%)	  227,572,336,186 (  64.37%)	  202,100,979,033 (  61.41%)
> stalled-cycles-backend      129,935,296,918 (  35.17%)	  124,957,172,193 (  35.34%)	  103,626,575,103 (  31.49%)
> instructions                270,083,196,348 (    0.73)	  257,652,752,109 (    0.73)	  259,773,237,031 (    0.79)
> branches                     52,120,828,566 ( 391.426)	   49,121,254,042 ( 385.647)	   49,896,944,076 ( 420.532)
> branch-misses                   260,480,947 (   0.50%)	      254,957,745 (   0.52%)	      239,402,681 (   0.48%)
> jobs5
> stalled-cycles-frontend     257,778,703,389 (  64.89%)	  265,688,762,182 (  65.13%)	  229,916,792,090 (  61.41%)
> stalled-cycles-backend      142,090,098,727 (  35.77%)	  147,101,411,510 (  36.06%)	  117,081,586,471 (  31.27%)
> instructions                291,859,438,730 (    0.73)	  298,380,653,546 (    0.73)	  302,840,047,693 (    0.81)
> branches                     55,111,567,225 ( 385.905)	   56,316,470,332 ( 383.545)	   57,500,842,324 ( 428.083)
> branch-misses                   270,056,201 (   0.49%)	      269,400,845 (   0.48%)	      258,495,925 (   0.45%)
> jobs6
> stalled-cycles-frontend     311,626,093,277 (  65.61%)	  314,291,595,576 (  65.77%)	  249,524,291,273 (  61.39%)
> stalled-cycles-backend      174,358,063,361 (  36.71%)	  177,312,195,233 (  37.10%)	  126,508,172,269 (  31.13%)
> instructions                345,271,436,105 (    0.73)	  346,679,577,246 (    0.73)	  333,258,054,473 (    0.82)
> branches                     65,298,537,641 ( 381.664)	   65,995,652,812 ( 383.717)	   62,730,160,550 ( 428.999)
> branch-misses                   313,241,654 (   0.48%)	      307,876,772 (   0.47%)	      282,570,360 (   0.45%)
> jobs7
> stalled-cycles-frontend     333,896,608,350 (  64.68%)	  349,165,441,969 (  64.85%)	  276,185,831,513 (  59.95%)
> stalled-cycles-backend      186,083,638,772 (  36.05%)	  197,000,957,906 (  36.59%)	  138,835,486,733 (  30.14%)
> instructions                388,707,023,219 (    0.75)	  404,347,465,692 (    0.75)	  394,078,203,426 (    0.86)
> branches                     71,999,476,930 ( 387.008)	   76,197,698,685 ( 392.759)	   73,195,649,665 ( 440.914)
> branch-misses                   328,598,294 (   0.46%)	      323,895,230 (   0.43%)	      298,205,996 (   0.41%)
> jobs8
> stalled-cycles-frontend     378,806,234,772 (  66.73%)	  369,453,970,323 (  66.55%)	  313,738,845,641 (  62.55%)
> stalled-cycles-backend      211,732,966,238 (  37.30%)	  207,691,463,546 (  37.41%)	  161,120,924,768 (  32.12%)
> instructions                406,674,721,912 (    0.72)	  401,922,649,599 (    0.72)	  405,830,823,213 (    0.81)
> branches                     75,637,492,422 ( 369.371)	   74,287,789,757 ( 371.226)	   75,967,291,039 ( 420.260)
> branch-misses                   355,733,892 (   0.47%)	      328,972,387 (   0.44%)	      318,203,258 (   0.42%)
> jobs9
> stalled-cycles-frontend     422,712,242,907 (  66.39%)	  417,293,429,710 (  66.14%)	  343,703,467,466 (  61.35%)
> stalled-cycles-backend      239,356,726,574 (  37.59%)	  231,725,068,834 (  36.73%)	  172,101,321,805 (  30.72%)
> instructions                465,964,470,967 (    0.73)	  468,561,486,803 (    0.74)	  474,119,504,255 (    0.85)
> branches                     86,724,291,348 ( 377.755)	   86,534,438,758 ( 380.374)	   88,431,722,886 ( 437.939)
> branch-misses                   385,706,052 (   0.44%)	      360,946,347 (   0.42%)	      337,858,267 (   0.38%)
> jobs10
> stalled-cycles-frontend     451,844,797,592 (  67.24%)	  435,099,070,573 (  67.18%)	  352,877,428,118 (  62.18%)
> stalled-cycles-backend      255,533,666,521 (  38.03%)	  249,295,276,734 (  38.49%)	  179,754,582,074 (  31.67%)
> instructions                472,331,884,636 (    0.70)	  458,948,698,965 (    0.71)	  464,131,768,633 (    0.82)
> branches                     88,848,212,769 ( 366.556)	   85,330,239,413 ( 365.282)	   86,837,838,069 ( 424.329)
> branch-misses                   398,856,497 (   0.45%)	      359,532,394 (   0.42%)	      333,821,387 (   0.38%)
> 
> 
> 
> perf reported execution time
> 
>                        4 streams        8 streams       per cpu
> ====================================================================
> seconds elapsed        41.359653597	43.131195776	40.961640812
> seconds elapsed        37.778174380	38.681792299	38.368529861
> seconds elapsed        38.367149768	39.368008799	37.687545579
> seconds elapsed        40.402963748	39.177529033	36.205357101
> seconds elapsed        44.145428970	43.251655348	41.810848146
> seconds elapsed        49.344988495	49.951048242	44.270045250
> seconds elapsed        53.865398777	54.271392367	48.824173559
> seconds elapsed        57.028770416	56.228105290	51.332017545
> seconds elapsed        62.931350164	61.251237873	55.977463074
> seconds elapsed        67.088285633	63.544376242	57.690998344
> 
> 
> 	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-27  7:29                             ` Minchan Kim
@ 2016-04-27  7:43                               ` Sergey Senozhatsky
  2016-04-27  7:55                                 ` Minchan Kim
  2016-04-27  8:54                               ` Sergey Senozhatsky
  1 sibling, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-27  7:43 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky

Hello,

On (04/27/16 16:29), Minchan Kim wrote:
[..]
> > the test:
> > 
> > -- 4 GB x86_64 box
> > -- zram 3GB, lzo
> > -- mem-hogger pre-faults 3GB of pages before the fio test
> > -- fio test has been modified to have 11% compression ratio (to increase the
> >                                                   chances of re-compressions)
> 
> Could you test concurrent mem hogger with fio rather than pre-fault before fio test
> in next submit?

this test will not prove anything, unfortunately. I performed it;
and it's impossible to guarantee even remotely stable results.
mem-hogger process can spend on pre-fault from 41 to 81 seconds;
so I'm quite sceptical about the actual value of this test.

> > considering buffer_compress_percentage=11, the box was under somewhat
> > heavy pressure.
> > 
> > now, the results
> 
> Yeb, Even, recompression case is fater than old but want to see more heavy memory
> pressure case and the ratio I mentioned above.

I did quite heavy testing over the last 7 days, with numerous OOM kills
and OOM panics.

	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-27  7:43                               ` Sergey Senozhatsky
@ 2016-04-27  7:55                                 ` Minchan Kim
  2016-04-27  8:10                                   ` Sergey Senozhatsky
  0 siblings, 1 reply; 22+ messages in thread
From: Minchan Kim @ 2016-04-27  7:55 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Andrew Morton, linux-kernel, Sergey Senozhatsky

On Wed, Apr 27, 2016 at 04:43:35PM +0900, Sergey Senozhatsky wrote:
> Hello,
> 
> On (04/27/16 16:29), Minchan Kim wrote:
> [..]
> > > the test:
> > > 
> > > -- 4 GB x86_64 box
> > > -- zram 3GB, lzo
> > > -- mem-hogger pre-faults 3GB of pages before the fio test
> > > -- fio test has been modified to have 11% compression ratio (to increase the
> > >                                                   chances of re-compressions)
> > 
> > Could you test concurrent mem hogger with fio rather than pre-fault before fio test
> > in next submit?
> 
> this test will not prove anything, unfortunately. I performed it;
> and it's impossible to guarantee even remotely stable results.
> mem-hogger process can spend on pre-fault from 41 to 81 seconds;
> so I'm quite sceptical about the actual value of this test.
> 
> > > considering buffer_compress_percentage=11, the box was under somewhat
> > > heavy pressure.
> > > 
> > > now, the results
> > 
> > Yeb, Even, recompression case is fater than old but want to see more heavy memory
> > pressure case and the ratio I mentioned above.
> 
> I did quite heavy testing over the last 7 days, with numerous OOM kills
> and OOM panics.

Okay, I think it's worth to merge enough and see the result.
Please send formal patch which has recompression stat. ;-)

Thanks.

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

* Re: zram: per-cpu compression streams
  2016-04-27  7:55                                 ` Minchan Kim
@ 2016-04-27  8:10                                   ` Sergey Senozhatsky
  0 siblings, 0 replies; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-27  8:10 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky

On (04/27/16 16:55), Minchan Kim wrote:
[..]
> > > Could you test concurrent mem hogger with fio rather than pre-fault before fio test
> > > in next submit?
> > 
> > this test will not prove anything, unfortunately. I performed it;
> > and it's impossible to guarantee even remotely stable results.
> > mem-hogger process can spend on pre-fault from 41 to 81 seconds;
> > so I'm quite sceptical about the actual value of this test.
> > 
> > > > considering buffer_compress_percentage=11, the box was under somewhat
> > > > heavy pressure.
> > > > 
> > > > now, the results
> > > 
> > > Yeb, Even, recompression case is fater than old but want to see more heavy memory
> > > pressure case and the ratio I mentioned above.
> > 
> > I did quite heavy testing over the last 7 days, with numerous OOM kills
> > and OOM panics.
> 
> Okay, I think it's worth to merge enough and see the result.
> Please send formal patch which has recompression stat. ;-)


correction: those 41-81s spikes in mem-hogger were observed under
different scenario: 10GB zram with 6GB mem-hogger on a 4GB system.

I'll do another round of tests (with parallel mem-hogger pre-fault
and 4GB/4GB zram/mem-hogger split) and collect the number that you
asked for.

thanks!

	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-27  7:29                             ` Minchan Kim
  2016-04-27  7:43                               ` Sergey Senozhatsky
@ 2016-04-27  8:54                               ` Sergey Senozhatsky
  2016-04-27  9:01                                 ` Sergey Senozhatsky
  1 sibling, 1 reply; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-27  8:54 UTC (permalink / raw)
  To: Minchan Kim
  Cc: Sergey Senozhatsky, Andrew Morton, linux-kernel, Sergey Senozhatsky


Hello,

more tests. I did only 8streams vs per-cpu this time. the changes
to the test are:
-- mem-hogger now per-faults pages in parallel with fio
-- mem-hogger alloc size increased from 3GB to 4GB.

the system couldn't survive 4GB/4GB zram(buffer_compress_percentage=11)/mem-hogger
split (OOM), so I executed the 3GB/4GB test (close to system's OOM edge).

-- 4 GB x86_64
-- 3 GB zram lzo

firts, the mm_stat.    <num_writes / num_recompressions>

8 streams (base kernel):

3221225472 3221225472 3221225472        0 3221229568        0        0 < 2752460/       0>
3221225472 3221225472 3221225472        0 3221233664        0        0 < 5504124/       0>
3221225472 2912157607 2952802304        0 2952826880        0       81 < 8253369/       0>
3221225472 2893479936 2899120128        0 2899136512        0      147 <11003056/       0>
3221217280 2886040814 2899103744        0 2899128320        0       26 <13748450/       0>
3221225472 2880045056 2885693440        0 2885718016        0      180 <16503120/       0>
3221213184 2877431364 2883756032        0 2883809280        0      132 <19259891/       0>
3221225472 2873229312 2876096512        0 2876133376        0       16 <22016512/       0>
3221213184 2870728008 2871693312        0 2871726080        0       24 <24768909/       0>
2899095552 2899095552 2899095552        0 2899132416    78643        0 <27523600/       0>

per-cpu:

3221225472 3221225472 3221225472        0 3221229568        0        0 < 2752460/    8180>
3221225472 3221225472 3221225472        0 3221233664        0        0 < 5504124/   10523>
3221225472 2912157607 2952802304        0 2952814592        0      117 < 8253369/    9451>
3221225472 2893479936 2899120128        0 2899136512        0      129 <11003056/    9395>
3221217280 2886040814 2899103744        0 2899128320        0       51 <13748450/   10879>
3221225472 2880045056 2885693440        0 2885718016        0      126 <16503120/   10300>
3221213184 2877431364 2883772416        0 2883801088        0      252 <19259891/   10509>
3221225472 2873229312 2876100608        0 2876133376        0       14 <22016512/   11081>
3221213184 2870728008 2871693312        0 2871730176        0       54 <24768909/   10770>
2899095552 2899095552 2899095552        0 2899136512    78643        0 <27523600/   10231>


mem-hogger pre-fault times

8 streams (base kernel):

[431] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f3f5d38a010 <+   6.031550428>
[470] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7fa29d414010 <+   5.242295692>
[514] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f4a7eac8010 <+   5.485469454>
[563] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f07da76b010 <+   5.563647658>
[619] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7ff5efc26010 <+   5.516866208>
[681] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f8fb896d010 <+   5.535275748>
[751] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7fb2ac6fa010 <+   4.594626366>
[825] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f355f9a0010 <+   5.075849029>
[905] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7feb16715010 <+   4.696363680>
[991] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f3a1b9f4010 <+   5.292365453>


per-cpu:

[413] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7fe8058f5010 <+   5.513944292>
[451] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f65fe753010 <+   4.742384977>
[494] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7fb99a05c010 <+   5.394711696>
[542] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f0d61c81010 <+   5.021011664>
[598] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f9abdeb6010 <+   5.094722019>
[660] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7fb192ae9010 <+   4.943961060>
[728] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f7313aeb010 <+   5.437872456>
[802] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f25ffdeb010 <+   5.422829590>
[881] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f60daa8e010 <+   4.806425351>
[970] single-alloc:  INFO: Allocated 0x100000000 bytes at address 0x7f384cf04010 <+   4.982513395>


so, pre-fault time range is somewhat big. for example, from 4.696363680 to 6.031550428 seconds.



fio
                8 streams        per-cpu
===========================================
#jobs1                         	                
READ:           2507.8MB/s	 2526.4MB/s
READ:           2043.1MB/s	 1970.6MB/s
WRITE:          127100KB/s	 139160KB/s
WRITE:          724488KB/s	 733440KB/s
READ:           534624KB/s	 540967KB/s
WRITE:          534569KB/s	 540912KB/s
READ:           471165KB/s	 477459KB/s
WRITE:          471233KB/s	 477527KB/s
#jobs2                         	                
READ:           8041.1MB/s	 7866.9MB/s
READ:           6751.7MB/s	 6692.9MB/s
WRITE:          268372KB/s	 268269KB/s
WRITE:          1197.5MB/s	 1331.3MB/s
READ:           997.75MB/s	 1057.6MB/s
WRITE:          997.91MB/s	 1057.7MB/s
READ:           934518KB/s	 992852KB/s
WRITE:          932382KB/s	 990582KB/s
#jobs3                         	                
READ:           13318MB/s	 13454MB/s
READ:           11463MB/s	 11491MB/s
WRITE:          449903KB/s	 448791KB/s
WRITE:          1582.8MB/s	 1782.3MB/s
READ:           1337.5MB/s	 1449.1MB/s
WRITE:          1335.6MB/s	 1447.2MB/s
READ:           1241.3MB/s	 1345.7MB/s
WRITE:          1239.6MB/s	 1343.6MB/s
#jobs4                         	                
READ:           19948MB/s	 20013MB/s
READ:           17732MB/s	 17479MB/s
WRITE:          630690KB/s	 495078KB/s
WRITE:          1843.2MB/s	 2226.9MB/s
READ:           1603.4MB/s	 1846.8MB/s
WRITE:          1599.4MB/s	 1842.2MB/s
READ:           1547.7MB/s	 1740.7MB/s
WRITE:          1549.2MB/s	 1742.4MB/s
#jobs5                         	                
READ:           18800MB/s	 4792.6MB/s
READ:           16659MB/s	 16898MB/s
WRITE:          777796KB/s	 721363KB/s
WRITE:          1771.9MB/s	 2138.7MB/s
READ:           1517.9MB/s	 1837.8MB/s
WRITE:          1512.6MB/s	 1831.5MB/s
READ:           1501.4MB/s	 1784.1MB/s
WRITE:          1500.5MB/s	 1783.9MB/s
#jobs6                         	                
READ:           20827MB/s	 20571MB/s
READ:           19382MB/s	 19505MB/s
WRITE:          850618KB/s	 776148KB/s
WRITE:          1886.2MB/s	 2127.7MB/s
READ:           1685.3MB/s	 1864.8MB/s
WRITE:          1682.4MB/s	 1860.8MB/s
READ:           1598.3MB/s	 1727.9MB/s
WRITE:          1593.5MB/s	 1722.6MB/s
#jobs7                         	                
READ:           21547MB/s	 21000MB/s
READ:           18814MB/s	 18715MB/s
WRITE:          1008.5MB/s	 991.56MB/s
WRITE:          1922.5MB/s	 2232.9MB/s
READ:           1640.3MB/s	 1795.2MB/s
WRITE:          1641.3MB/s	 1796.4MB/s
READ:           1578.2MB/s	 1763.2MB/s
WRITE:          1569.5MB/s	 1753.5MB/s
#jobs8                         	                
READ:           20277MB/s	 20916MB/s
READ:           17952MB/s	 18340MB/s
WRITE:          1186.1MB/s	 1170.6MB/s
WRITE:          1955.8MB/s	 2347.6MB/s
READ:           1686.5MB/s	 1936.7MB/s
WRITE:          1688.3MB/s	 1938.8MB/s
READ:           1610.3MB/s	 1894.7MB/s
WRITE:          1606.6MB/s	 1890.4MB/s
#jobs9                         	                
READ:           20108MB/s	 19361MB/s
READ:           18012MB/s	 18177MB/s
WRITE:          1355.1MB/s	 1325.7MB/s
WRITE:          1948.5MB/s	 2305.6MB/s
READ:           1662.4MB/s	 1892.6MB/s
WRITE:          1661.9MB/s	 1891.5MB/s
READ:           1605.5MB/s	 1812.4MB/s
WRITE:          1604.2MB/s	 1810.7MB/s
#jobs10                        	                
READ:           20039MB/s	 19455MB/s
READ:           18028MB/s	 17716MB/s
WRITE:          1465.3MB/s	 1486.7MB/s
WRITE:          2007.2MB/s	 2317.5MB/s
READ:           1755.3MB/s	 2005.9MB/s
WRITE:          1754.3MB/s	 2003.1MB/s
READ:           1691.2MB/s	 1874.8MB/s
WRITE:          1694.7MB/s	 1877.7MB/s


perf stat

                             8 streams                     per-cpu
====================================================================================
jobs1
stalled-cycles-frontend      56,052,305,338 (  55.05%)	   58,803,628,418 (  55.33%)
stalled-cycles-backend       24,355,709,967 (  23.92%)	   25,413,107,301 (  23.91%)
instructions                 96,175,143,640 (    0.94)	  100,364,109,185 (    0.94)
branches                     18,009,998,853 ( 559.201)	   18,513,273,860 ( 550.828)
branch-misses                   111,500,123 (   0.62%)	      106,011,616 (   0.57%)
jobs2
stalled-cycles-frontend     126,012,750,354 (  59.31%)	  123,465,054,991 (  57.62%)
stalled-cycles-backend       61,866,277,568 (  29.12%)	   58,959,838,855 (  27.52%)
instructions                183,736,567,135 (    0.86)	  193,832,846,843 (    0.90)
branches                     34,879,279,141 ( 506.137)	   36,700,776,757 ( 530.136)
branch-misses                   175,122,665 (   0.50%)	      165,057,491 (   0.45%)
jobs3
stalled-cycles-frontend     175,428,933,301 (  60.40%)	  160,530,802,385 (  58.59%)
stalled-cycles-backend       87,409,032,068 (  30.10%)	   76,093,143,994 (  27.77%)
instructions                231,949,985,071 (    0.80)	  229,875,149,073 (    0.84)
branches                     44,034,175,160 ( 423.325)	   43,578,595,543 ( 443.250)
branch-misses                   237,974,300 (   0.54%)	      216,380,848 (   0.50%)
jobs4
stalled-cycles-frontend     265,519,049,536 (  64.46%)	  221,049,841,649 (  61.81%)
stalled-cycles-backend      146,538,881,296 (  35.57%)	  113,774,053,039 (  31.82%)
instructions                298,241,854,695 (    0.72)	  278,000,866,874 (    0.78)
branches                     59,531,800,053 ( 400.919)	   55,096,944,109 ( 427.816)
branch-misses                   285,108,083 (   0.48%)	      260,972,185 (   0.47%)
jobs5
stalled-cycles-frontend     290,281,266,141 (  64.97%)	  260,946,337,232 (  61.99%)
stalled-cycles-backend      161,884,390,707 (  36.23%)	  137,154,776,973 (  32.58%)
instructions                326,306,594,233 (    0.73)	  334,011,271,525 (    0.79)
branches                     63,904,071,806 ( 398.348)	   65,664,365,815 ( 434.393)
branch-misses                   293,793,049 (   0.46%)	      279,794,621 (   0.43%)
jobs6
stalled-cycles-frontend     344,523,942,841 (  65.53%)	  287,955,119,151 (  61.88%)
stalled-cycles-backend      193,660,445,380 (  36.84%)	  150,866,799,639 (  32.42%)
instructions                381,794,200,792 (    0.73)	  375,547,185,965 (    0.81)
branches                     74,623,783,129 ( 394.258)	   73,649,248,349 ( 441.644)
branch-misses                   358,005,680 (   0.48%)	      306,143,187 (   0.42%)
jobs7
stalled-cycles-frontend     369,290,213,422 (  64.74%)	  319,117,228,349 (  61.21%)
stalled-cycles-backend      206,236,039,426 (  36.16%)	  168,934,948,019 (  32.40%)
instructions                427,549,938,405 (    0.75)	  429,752,151,831 (    0.82)
branches                     82,174,130,236 ( 400.051)	   83,110,458,913 ( 442.306)
branch-misses                   354,517,174 (   0.43%)	      332,430,584 (   0.40%)
jobs8
stalled-cycles-frontend     409,541,894,683 (  66.76%)	  349,581,824,315 (  62.51%)
stalled-cycles-backend      229,256,571,129 (  37.37%)	  181,622,273,772 (  32.47%)
instructions                437,816,833,182 (    0.71)	  450,389,502,564 (    0.81)
branches                     84,525,812,473 ( 382.128)	   87,501,121,276 ( 434.210)
branch-misses                   372,309,759 (   0.44%)	      349,523,647 (   0.40%)
jobs9
stalled-cycles-frontend     442,628,204,560 (  65.90%)	  380,475,695,919 (  61.52%)
stalled-cycles-backend      251,927,332,399 (  37.51%)	  199,303,426,179 (  32.22%)
instructions                491,437,868,336 (    0.73)	  511,514,729,028 (    0.83)
branches                     93,730,386,271 ( 386.978)	   98,645,937,110 ( 442.304)
branch-misses                   401,101,757 (   0.43%)	      368,882,924 (   0.37%)
jobs10
stalled-cycles-frontend     478,576,939,331 (  67.41%)	  408,498,109,428 (  63.43%)
stalled-cycles-backend      274,043,625,756 (  38.60%)	  219,162,314,972 (  34.03%)
instructions                495,607,125,031 (    0.70)	  505,149,872,644 (    0.78)
branches                     95,885,616,294 ( 374.483)	   99,094,367,930 ( 426.624)
branch-misses                   418,267,387 (   0.44%)	      392,516,508 (   0.40%)


perf reported execution time

                       8 streams        per-cpu
====================================================
seconds elapsed        51.128322985	47.600230868
seconds elapsed        49.309895468	48.291538090
seconds elapsed        47.075673742	46.068406557
seconds elapsed        47.816933840	52.966896478
seconds elapsed        54.345548549	50.918853799
seconds elapsed        58.613938093	58.130571913
seconds elapsed        62.799745992	60.086779664
seconds elapsed        65.664854260	61.414515686
seconds elapsed        71.340920175	67.717224950
seconds elapsed        74.169664807	69.485210016


	-ss

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

* Re: zram: per-cpu compression streams
  2016-04-27  8:54                               ` Sergey Senozhatsky
@ 2016-04-27  9:01                                 ` Sergey Senozhatsky
  0 siblings, 0 replies; 22+ messages in thread
From: Sergey Senozhatsky @ 2016-04-27  9:01 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Minchan Kim, Andrew Morton, linux-kernel, Sergey Senozhatsky

On (04/27/16 17:54), Sergey Senozhatsky wrote:
> #jobs4                         	                
> READ:           19948MB/s	 20013MB/s
> READ:           17732MB/s	 17479MB/s
> WRITE:          630690KB/s	 495078KB/s
> WRITE:          1843.2MB/s	 2226.9MB/s
> READ:           1603.4MB/s	 1846.8MB/s
> WRITE:          1599.4MB/s	 1842.2MB/s
> READ:           1547.7MB/s	 1740.7MB/s
> WRITE:          1549.2MB/s	 1742.4MB/s

> jobs4
> stalled-cycles-frontend     265,519,049,536 (  64.46%)	  221,049,841,649 (  61.81%)
> stalled-cycles-backend      146,538,881,296 (  35.57%)	  113,774,053,039 (  31.82%)
> instructions                298,241,854,695 (    0.72)	  278,000,866,874 (    0.78)
> branches                     59,531,800,053 ( 400.919)	   55,096,944,109 ( 427.816)
> branch-misses                   285,108,083 (   0.48%)	      260,972,185 (   0.47%)

> seconds elapsed        47.816933840	52.966896478

per-cpu in general looks better in this test (jobs4): less stalls, less
branches, less misses, better fio speeds (except for WRITE: 630690KB/s  495078KB/s).
the system was under pressure, so quite possible that it took more time to kill the
process, thus execution time is in favor of 8 streams test.

	-ss

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

end of thread, other threads:[~2016-04-27  9:00 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-23  8:12 zram: per-cpu compression streams Sergey Senozhatsky
2016-03-24 23:41 ` Minchan Kim
2016-03-25  1:47   ` Sergey Senozhatsky
2016-03-28  3:21     ` Minchan Kim
2016-03-30  8:34       ` Sergey Senozhatsky
2016-03-30 22:12         ` Minchan Kim
2016-03-31  1:26           ` Sergey Senozhatsky
2016-03-31  5:53             ` Minchan Kim
2016-03-31  6:34               ` Sergey Senozhatsky
2016-04-01 15:38                 ` Sergey Senozhatsky
2016-04-04  0:27                   ` Minchan Kim
2016-04-04  1:17                     ` Sergey Senozhatsky
2016-04-18  7:57                       ` Sergey Senozhatsky
2016-04-19  8:00                         ` Minchan Kim
2016-04-19  8:08                           ` Sergey Senozhatsky
2016-04-26 11:23                           ` Sergey Senozhatsky
2016-04-27  7:29                             ` Minchan Kim
2016-04-27  7:43                               ` Sergey Senozhatsky
2016-04-27  7:55                                 ` Minchan Kim
2016-04-27  8:10                                   ` Sergey Senozhatsky
2016-04-27  8:54                               ` Sergey Senozhatsky
2016-04-27  9:01                                 ` Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).