Coder Social home page Coder Social logo

houzuoguo / saptune Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 2.0 142 KB

Comprehensive system tuning management for SAP solutions

License: GNU General Public License v3.0

Go 97.00% Shell 0.39% Roff 2.60%
sap linux tuning os suse sles sap-hana sap-solutions sap-netweaver go

saptune's Introduction

Build Status

saptune

The utility adjusts system parameters such as kernel parameters and resource limits to allow running various SAP solutions at satisfactory performance. The utility is first made available on SP2 release of SLES4SAP 12, and it can be used in place of sapconf. The utility is not yet officially released for ordinary SLES, though it may also function on SLES.

RPM package

You may find a ready-made RPM spec file at https://build.opensuse.org/package/show/SUSE:SLE-12-SP2:GA/saptune

saptune's People

Contributors

angelabriel avatar dmacvicar avatar houzuoguo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

saptune's Issues

Summary of issues from SLES 15

  • Page cache limit fails to be set (1557506).
  • UUID daemon socket can be manually started and stopped, however saptune fails to control it (1984787).
  • noop is not a valid block IO scheduler in a KVM guest (2161991, ASE).
  • net.ipv4.tcp_tw_recycle is not present (SUSE-GUIDE-02).

saptune and customer-specific customizations

I'm trying to understand some issues with saptune on SLES12SP3 where /etc/security/limits.conf are apparently getting reset to default values of 32800 even after specific values are set. I'm trying to figure out a way to see how I can track these changes. System auditing at this point seems to be the best idea.

I started examining the code and wondered about hard-coded values like the ones seen below:

81 // Raise maximum file descriptors to at least 32800
82 for _, val := range []*system.SecurityLimitInt{&newPrepare.LimitNofileSapsysSoft, &newPrepare.LimitNofileSapsysHard, &newPrepare.LimitNofileSdbaSoft, &newPrepare.LimitNofileSdba Hard, &newPrepare.LimitNofileDbaSoft, &newPrepare.LimitNofileDbaHard} {
83 switch *val {
84 case system.SecurityLimitUnlimitedValue:
85 // nothing to do, value remain untouched
86 default:
87 if *val < 32800 {
88 *val = 32800
89 }
90 }
91 }

Would it not make sense to have these sorts of hard-coded values (and others) in some sort of table, external to saptune so that changes could be made without recompiling the program? It almost seems like a 'meta' solution or note would make this more flexible in the long term.

I admit that I don't know much about the design but I found it curious and was just trying to understand some more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.