Welcome to Centmin Mod Community
Register Now

Xenforo optimize image on XenForo, issues

Discussion in 'Forum software usage' started by upgrade81, Apr 1, 2018.

  1. upgrade81

    upgrade81 Premium Member Premium Member

    107
    5
    18
    Sep 5, 2016
    Italy
    Ratings:
    +6
    Local Time:
    6:08 PM
    1.13.8
    10
    Hi guys I got this:
    [Nobita] Image Optimizer for XF 1.5.x

    to optimize the 45GB of images I have.
    The only problem is that it is very slow (see this screen and the time on the right)
    The script is correctly configured, in fact it optimizes the images but it is extremely slow to move forward.
    I tried various configurations, 1 minute 10 20 and up to 100 images per process, nothing ..

    I also heard the developer but besides telling me to insert the deferrer.php in the linux cron he did not tell me anything else ...
    grabilla.g27448.png

    Does any of you use it or have similar problems?
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,704
    7,465
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,476
    Local Time:
    2:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah will be slow never used that add on but image optimisation can be slow for 45GB worth of images
     
  3. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    12:08 AM
    1.11
    10.2
    Or you rent a faster CPU server, something like: Intel i7-7700K OC - 4c/8t - 4.7GHz /5GHz.
     
  4. upgrade81

    upgrade81 Premium Member Premium Member

    107
    5
    18
    Sep 5, 2016
    Italy
    Ratings:
    +6
    Local Time:
    6:08 PM
    1.13.8
    10
    I think I have not explained it correctly.
    it is not a problem of slowness of the processor.

    the problem is that it is slow to start the various optimizations.
    The internal cron is slow as you see from the photo even setting it every minute 1 image makes it when he wants ..
     
  5. eva2000

    eva2000 Administrator Staff Member

    33,704
    7,465
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,476
    Local Time:
    2:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    That's what @RoldanLT is talking about processing image optimisations via PHP is slower due to cpu time (if there's no underlying disk i/o performance issues). So having a faster high cpu clocked processor will speed up the time each image optimisation takes. Generally, the higher the cpu clock the processor operates at, the faster most things in nginx, php and mariadb mysql run.

    you can find out your cpu clock speed and details via lscpu command i.e.
    Code (Text):
    lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                2
    On-line CPU(s) list:   0,1
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             2
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 79
    Model name:            Intel(R) Xeon(R) CPU E5-2687W v4 @ 3.00GHz
    Stepping:              1
    CPU MHz:               2999.996
    BogoMIPS:              5999.99
    Hypervisor vendor:     KVM
    Virtualization type:   full
    L1d cache:             32K
    L1i cache:             32K
    L2 cache:              4096K
    L3 cache:              16384K
    NUMA node0 CPU(s):     0,1
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt arat
    
     
  6. upgrade81

    upgrade81 Premium Member Premium Member

    107
    5
    18
    Sep 5, 2016
    Italy
    Ratings:
    +6
    Local Time:
    6:08 PM
    1.13.8
    10
    i have four of this core:

    Code (Text):
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                4
    On-line CPU(s) list:   0-3
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             4
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 63
    Model name:            Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz
    Stepping:              2
    CPU MHz:               3499.996
    BogoMIPS:              6999.99
    Hypervisor vendor:     KVM
    Virtualization type:   full
    L1d cache:             32K
    L1i cache:             32K
    L2 cache:              4096K
    NUMA node0 CPU(s):     0-3
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt
    

    as you can see also configuring the addon to run every 5 minutes the optimization of 10 images skips entire hours (zero images) and then wake up when you want and make 3 or 5 images. He meanwhile makes a cup of coffee? :)
     

    Attached Files:

  7. eva2000

    eva2000 Administrator Staff Member

    33,704
    7,465
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,476
    Local Time:
    2:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    Then probably is the script and how it's setup to run. You'd have to ask developer of the script as I have never used this addon you're using.
     
    • Agree Agree x 1
..