senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Notices by Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io), page 13

  1. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 12:14:29 JST Masanori Ogino ???? Masanori Ogino ????

    GNU GuileのEmacs Lispフロントエンドにコントリビュートして(はぁと)

    In conversation Thursday, 28-Feb-2019 12:14:29 JST from mstdn.maud.io permalink
  2. 日下夏稀 (kb10uy@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 12:13:29 JST 日下夏稀 日下夏稀

    Emacs Lispそのものを実装してしまえばいいのでは?(無理)

    In conversation Thursday, 28-Feb-2019 12:13:29 JST from mstdn.maud.io permalink Repeated by omasanori@mstdn.maud.io
  3. 日下夏稀 (kb10uy@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 12:13:04 JST 日下夏稀 日下夏稀

    CorvusSKKなんかはLisp関数のサポートがわりと強いんだけど他だとだいたいエスケープぐらいしか対応してなかったりして悲しいんだよね

    In conversation Thursday, 28-Feb-2019 12:13:04 JST from mstdn.maud.io permalink Repeated by omasanori@mstdn.maud.io
  4. 日下夏稀 (kb10uy@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 12:09:58 JST 日下夏稀 日下夏稀

    おたくなので ddskk がちゃんとEmacs Lispで実装されているということと Lisp 辞書のフルサポートが保証されているのは ddskk だけみたいな点で使ってみたいという思いがある

    In conversation Thursday, 28-Feb-2019 12:09:58 JST from mstdn.maud.io permalink Repeated by omasanori@mstdn.maud.io
  5. のなか (nonaka@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 11:53:34 JST のなか のなか

    まあ、エンタープライズサーバに使うのならメモリ使用量はプランニングしているはずだから、それで必要なスワップ領域は算出されてるでしょ

    In conversation Thursday, 28-Feb-2019 11:53:34 JST from mstdn.maud.io permalink Repeated by omasanori@mstdn.maud.io
  6. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 12:04:04 JST Masanori Ogino ???? Masanori Ogino ????

    Data Driven Analysis: /tmp on tmpfs | Ubuntu blog https://blog.ubuntu.com/2016/01/20/data-driven-analysis-tmp-on-tmpfs

    Canonicalのサーバー502台を対象に/tmpをtmpfsにしてもRAMが足りるかどうかを調べた話

    In conversation Thursday, 28-Feb-2019 12:04:04 JST from mstdn.maud.io permalink

    Attachments


  7. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 11:59:37 JST Masanori Ogino ???? Masanori Ogino ????
    in reply to

    "Of course, there are scenarios when different behaviour is desired. When aware of the behaviour, such swap configurations are ok, as well as running the system without any swap. Such a system is supported by us as well - but the customer should know the behaviour in the above situations."

    In conversation Thursday, 28-Feb-2019 11:59:37 JST from mstdn.maud.io permalink
  8. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 11:58:44 JST Masanori Ogino ???? Masanori Ogino ????

    Do we really need swap on modern systems? https://www.redhat.com/en/blog/do-we-really-need-swap-modern-systems

    "Our size recommendation for most modern systems is ‘a part of the physical RAM’, for example, 20%. With this, the painfully slow phase of operation in our example will not last as long, and the OOM kicks in earlier."

    もちろんハイバネーションしないという前提だし、Red Hatの顧客の "most modern systems"はかなり大きなシステムが主だろうから、個人のノートPCで同じ設定にするのが妥当かというのは別の話になる

    In conversation Thursday, 28-Feb-2019 11:58:44 JST from mstdn.maud.io permalink

    Attachments

    1. Do we really need swap on modern systems?
      Introduction: Important termsLet’s get on the same page regarding some terms. Virtual Memory Management (VMM) is code in the kernel which, among other things, helps us to present each process with its own virtual address space. Overcommitment means that processes can request more memory from the kernel than we have available physically and as swap. Please note that this is only allowing us to request more, writing to more than available is not possible. A page is a piece of memory. Paging is the operation of making a copy of a page, for example to a swap device. Swapping is the usage of swap devices, so making copies of pages between physical memory and a swap device. Thrashing is when swapping uses more resources than the other processes on the system. Overview: When is swap used?Swap is used to give processes room, even when the physical RAM of the system is already used up. In a normal system configuration, when a system faces memory pressure, swap is used, and later when the memory pressure disappears and the system returns to normal operation, swap is no longer used. In this typical situation, swap helped through the time of memory shortage, at the cost of reduced performance while swapping. Pages that were stored in swap are not moved back into RAM unless they are accessed/requested. This is the reason that many counters show swapped pages, although the system might already be in a state where no active swapping is happening.Let’s look at typical speed scales of RAM, SSD and rotating disks. A typical reference to RAM is in the area of 100ns, accessing data on a SSD 150μs (so 1500 times of the RAM) and accessing data on a rotating disk 10ms (so 100.000 times the RAM).Let’s look at the behaviour of a system with 2GB of RAM, a 2GB swap device, and a hard disk. Just after boot, system processes are using only a few dozens of MB of RAM. This illustration was created with Performance Co-Pilot, which is part of Red Hat Enterprise Linux. A just booted system, most memory is free. Now we start processes, requesting and writing to only a small part of RAM, and reading data from disk. As our RAM would otherwise be unused, the kernel is using it to cache the data we are reading. If data is requested a second time, it is available from the cache. Now we start processes, writing to more RAM. The kernel will now sacrifice the RAM used for disk caching and hand it out to the processes. Once the processes are requesting more memory than we have physically available, the kernel starts to utilize the swap. The process itself sees no difference - just that the swap is by orders of magnitudes slower than physical RAM. If processes attempt to write to more memory than available including swap, the Out of Memory (OOM) handler has to decide for a process, and kill it. The details: How is swap used?In the past, some application vendors recommended swap of a size equal to the RAM, or even twice the RAM. Now let us imagine the above-mentioned system with 2GB of RAM and 2GB of swap. A database on the system was by mistake configured for a system with 5GB of RAM. Once the physical memory is used up, swap gets used. As the swap disk is much slower than RAM, the performance goes down, and thrashing occurs. At this point, even logins into the system might become impossible. As more and more memory gets written to, eventually both physical- and swap memory are completely exhausted and the OOM killer kicks in, killing one or more processes. In our case, quite a lot of swap is available, so the time of poor performance is long.Now, let us imagine the above situation with no swap configured. As the system runs out of RAM, it has no swap to hand out. There is almost no time frame of reduced performance - the OOM kicks in immediately. So in this case: The admins have no timeframe to react and possibly take countermeasures to maybe solve the issue without the application losing data. They might decide to reset the system themselves. The admin teams get a notification after the incident and can then only analyze the issue. Our size recommendation for most modern systems is ‘a part of the physical RAM’, for example, 20%. With this, the painfully slow phase of operation in our example will not last as long, and the OOM kicks in earlier.Of course, there are scenarios when different behaviour is desired. When aware of the behaviour, such swap configurations are ok, as well as running the system without any swap. Such a system is supported by us as well - but the customer should know the behaviour in the above situations. How much swap is recommended nowadays?This depends on the desired behaviour of the system, but configuring an amount of 20% of the RAM as swap is usually a good idea. More details are in this solution document.Can I run without swap? Is further tuning possible?Systems without swap can make sense and are supported by Red Hat - just be sure the behaviour of such a system under memory pressure is what you want. In most environments, a bit of swap makes sense. /proc/meminfo Committed_AS field shows how much memory processes have requested. Using sysctl, we can enable/disable overcommit, and configure how much overcommit should be allowed. The defaults need to be changed only in rare cases, and after properly testing the new settings. The RHEL Performance Tuning Guide has details. A solution document with details regarding the likeliness of swapping - for example in changing vm.swappiness. This also requires good testing with your applications. Without swap, the system will call the OOM when the memory is exhausted. You can prioritize which processes get killed first in configuring oom_adj_score. If you write an application, want to lock pages into RAM and prevent them from getting swapped, mlock() can be used. If you design your applications to regularly use swap, make sure to use faster devices, like SSD - starting with Red Hat Enterprise Linux 7.1, ‘swapon --discard’ can be used to send TRIM to SSD devices, to discard the device contents on swapon. The Storage Administration Guide has also a section on swap configuration. Christian Horn is a Red Hat AMC TAM in Tokyo. AMC refers to the Red Hat Advanced Mission Critical program, where partners together with Red Hat provide support for systems which are especially essential for companies and business. In his work as Linux Engineer/Architect in Germany since 2001, later as Red Hat TAM in Germany and Japan, he has been involved in issues around swap and performance with customers and partners. Innovation is only possible because of the people behind it. Join us at Red Hat Summit, May 2-4, to hear from TAMs and other Red Hat experts in person! Register now for only US$1,000 using code CEE17.A Red Hat Technical Account Manager (TAM) is a specialized product expert who works collaboratively with IT organizations to strategically plan for successful deployments and help realize optimal performance and growth. The TAM is part of Red Hat’s world class Customer Experience and Engagement organization and provides proactive advice and guidance to help you identify and address potential problems before they occur. Should a problem arise, your TAM will own the issue and engage the best resources to resolve it as quickly as possible with minimal disruption to your business.
  9. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 11:49:22 JST Masanori Ogino ???? Masanori Ogino ????

    マニュアルじゃなくてブログでこう書いてる背景を説明してた(URL失念)んですけど、RAMが何百GBもあるシステムでそれと同じか2倍のRAMを取っていると、メモリぱくぱくなうしているプロセスがOOM Killerで死ぬ前のスラッシングがより長く(RAMとスワップを使い切るまで)続くのでかえってよくないという話だった

    In conversation Thursday, 28-Feb-2019 11:49:22 JST from mstdn.maud.io permalink
  10. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 11:42:11 JST Masanori Ogino ???? Masanori Ogino ????

    第14章 swap領域 - Red Hat Customer Portal https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace#tb-recommended-system-swap-space

    この辺を読むと、Red Hatの見解では今どきの「人権」環境だとRAMの容量と同量のスワップを必ずしも用意しなくてもいい(用意するなという意味ではない)ことになっている

    In conversation Thursday, 28-Feb-2019 11:42:11 JST from mstdn.maud.io permalink

    Attachments


  11. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 11:37:09 JST Masanori Ogino ???? Masanori Ogino ????

    スワップ、Red Hat方面ではそこまで大きく取らない方がいいという話になっている

    In conversation Thursday, 28-Feb-2019 11:37:09 JST from mstdn.maud.io permalink
  12. あくらふ→淡路島 (aqraf@m.aqr.af@m.aqr.af)'s status on Thursday, 28-Feb-2019 11:10:47 JST あくらふ→淡路島 あくらふ→淡路島

    白キートップのレガシーな感じがたまらない

    In conversation Thursday, 28-Feb-2019 11:10:47 JST from m.aqr.af permalink Repeated by omasanori@mstdn.maud.io

    Attachments


    1. https://mstdn.maud.io/system/media_attachments/files/003/098/578/original/ccd4c9432a599c88.png
  13. パンッ!て手を叩いたらさつまいもの天ぷらが出てくる研究 (ikr7@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 01:26:45 JST パンッ!て手を叩いたらさつまいもの天ぷらが出てくる研究 パンッ!て手を叩いたらさつまいもの天ぷらが出てくる研究

    「プログラミングの勉強がしたくて情報系に来たが、学んだのは CS だった」というのは(我々の観測範囲では)ありがちな話だけど、法学部では「法律を学びたくて法学部に来たが、学んだのは法学だった」みたいな話があるらしい

    In conversation Thursday, 28-Feb-2019 01:26:45 JST from mstdn.maud.io permalink Repeated by omasanori@mstdn.maud.io
  14. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 01:25:55 JST Masanori Ogino ???? Masanori Ogino ????

    2018年は毎日500億以上のアプリをスキャン、「Google Playプロテクト」をAndroidセキュリティ&プライバシーチームが解説 - ケータイ Watch https://k-tai.watch.impress.co.jp/docs/news/1172033.html

    In conversation Thursday, 28-Feb-2019 01:25:55 JST from mstdn.maud.io permalink

    Attachments

    1. 2018年は毎日500億以上のアプリをスキャン、「Google Playプロテクト」をAndroidセキュリティ&プライバシーチームが解説
      from ケータイ Watch
       米グーグルは26日、アプリ開発者向けの公式ブログ「Android Developers Blog」で、Androidスマートフォンやタブレットのためのセキュリティ保護機能「Google Playプロテクト」に関する取り組みを紹介した。
  15. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 01:09:51 JST Masanori Ogino ???? Masanori Ogino ????

    p5.js/license.txt at master · processing/p5.js https://github.com/processing/p5.js/blob/master/license.txt

    In conversation Thursday, 28-Feb-2019 01:09:51 JST from mstdn.maud.io permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: avatars2.githubusercontent.com
      processing/p5.js
      from GitHub
      p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Proces...
  16. zgock999@mstdn.maud.io's status on Thursday, 28-Feb-2019 01:08:02 JST zgock999 zgock999

    ちとp5.jsとprocessingについて調べてるんだけど、ライセンスがLGPLであるとしているところとGPLであるとしているところがあって頭パーンしてる(公式を見ろそれはそうであるけど公式でライセンス書いてあるところが見つけられない老害であった

    https://p5js.org/

    In conversation Thursday, 28-Feb-2019 01:08:02 JST from mstdn.maud.io permalink Repeated by omasanori@mstdn.maud.io
  17. :archlinux: Nie :sabakan: (nieein56@mstdn.tamag.org)'s status on Thursday, 28-Feb-2019 01:04:12 JST :archlinux: Nie :sabakan: :archlinux: Nie :sabakan:

    自己評価が低いとやる気が起きないと知って以来、「〇〇に(機能)実装した!!!!!ワイすごい!!!!!」と「ほげーエラー吐いた!!!!!直す!!!!!」と「エラー直した!!!!!やっぱワイすごい!!!!!」を繰り返すように意識している

    In conversation Thursday, 28-Feb-2019 01:04:12 JST from mstdn.tamag.org permalink Repeated by omasanori@mstdn.maud.io
  18. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 01:05:36 JST Masanori Ogino ???? Masanori Ogino ????

    後に08小隊も観ましたが(そういう問題ではない)

    In conversation Thursday, 28-Feb-2019 01:05:36 JST from mstdn.maud.io permalink
  19. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 01:04:43 JST Masanori Ogino ???? Masanori Ogino ????

    HoloLens 2はSnapdragon 850だそうですね

    In conversation Thursday, 28-Feb-2019 01:04:43 JST from mstdn.maud.io permalink
  20. Masanori Ogino ???? (omasanori@mstdn.maud.io@mstdn.maud.io)'s status on Thursday, 28-Feb-2019 01:03:31 JST Masanori Ogino ???? Masanori Ogino ????

    私(ガンダムはGガンしか観たことがないのだけれども)(その意味するところがわかっているので言わない)

    In conversation Thursday, 28-Feb-2019 01:03:31 JST from mstdn.maud.io permalink
  • After
  • Before

User actions

    Masanori Ogino ????

    Masanori Ogino ????

    <p>Please pay attention to random failures.</p>

    Tags
    • (None)
    WebSub

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          330
          Member since
          15 May 2018
          Notices
          3735
          Daily average
          1

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.