ICode9

精准搜索请尝试: 精确搜索
  • gdb的一些不太容易记得的用法2022-02-24 13:34:14

    基本的gdb使用 1.  Note: You can also modify variables' values by set <var> = <value> 2.  The command to set a simple watchpoint (a write watchpoint, i.e you are notified when the value is written) is watch <var> 3. Remember that GDB come

  • CPU Cache2022-02-21 17:02:38

    A CPU cache is a hardware cache used by the central processing unit (CPU) of a computer to reduce the average cost (time or energy) to access data from the main memory. A cache is a smaller, faster memory, located closer to a processor core, which stores

  • 实战:k8s之服务质量-2022.2.202022-02-20 15:34:47

    目录 文章目录 目录实验环境实验软件1、服务质量2、资源限制3、QoS 分类1.Guaranteed(有保证的)2.Burstable(不稳定的)3.Best-Effort(尽最大努力) 4、QoS 解析

  • Core dump2022-02-18 09:35:20

    抄点不一样的:https://wiki.archlinux.org/title/Core_dump $ pgrep -f firefox 2071 firefox $ gdb -p 2071 (gdb) generate-core-file Saved corefile core.2071 (gdb) quit In computing, a core/memory/crash/system dump consists of the recorded state of the working mem

  • Intellij IDEA out of memory问题2022-02-17 12:02:24

    Intellij IDEA一启动就弹出如下:    解决:     1、进入IDEA的安装目录进入bin目录下,找到如下两个文件      2、查看你的IDEA的属性,确定用的是32位还是64位的启动器         3、用记事本打开相应的idea.exe.vmoptions 文件,修改第二行 -Xmx的大小(64位默认是750)  

  • Managing Heap Memory2022-02-17 09:00:07

       The Windows subsystem on Windows NT provides high-level memory management functions that make it easy for applications to build dynamic data structures, provide compatibility with previous versions of Windows, and create buffers and temporary placehold

  • Flink HA Yarn2022-02-16 03:00:35

    前提安装和启动好zookeeper,hadoop (1) yarn-site.xml <?xml version="1.0"?> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy

  • Java内存模型(Java Memory Model,JMM)2022-02-14 19:03:40

    为什么要有Java内存模型 可见性,由缓存导致的可见性问题。 有序性,由编译优化导致的有序性问题。 原子性,由线程切换导致的原子性问题。 Java内存模型就是为了解决可见性和有序性问题。 什么是Java内存模型(JMM) 注意:JVM内存模型与Java内存模型是两个不一样的东西。 JVM内存模型:

  • iSula+k8s实践记录4----Job和cronJob2022-02-11 09:33:41

    apiVersion: batch/v1beta1kind: CronJobmetadata:  name: webserverspec:  schedule: "*/2 * * * *"  successfulJobsHistoryLimit: 3   ###计划任务执行完成后,容器并不会被删除,这里指定的值为保留多少个容器,其余的会被自动删除  startingDeadlineSeconds: 120    ###后面

  • Docker Desktop 限制WSL2内存、cup占用过高2022-02-10 09:35:45

    windows用户: 在用户目录(比如:C:\Users\lc)下建立一个新文件,叫做.wslconfig修改文件内容为: [wsl2]processors=4memory=8GBswap=8GBlocalhostForwarding=true processors:最大核数,配置为电脑最大核数的一半 memory:最大内存数,配置为电脑最大内存的一半 swap:和memory一样 重启wsl2 ws

  • grafana数据选择长周期时显示不全Internal Server Error 500 错误2022-02-09 16:00:56

    grafana数据选择长周期时显示不全Internal Server Error 500 错误。数据源方式为zabbix api /var/log/httpd/error_log 显示 [Wed Feb 09 14:03:01.807784 2022] [proxy_fcgi:error] [pid 17251] [client 192.168.137.105:40088] AH01071: Got error 'PHP message: PHP Fatal err

  • The Shared_ptr Class(memory header)2022-02-08 22:03:12

    Initialization 1.A default initialized smart pointer holds a null pointer. shared_ptr<vector<string>> p; // shared_ptr that can point at a vector of string. 2.Using make_shared function allocates and initializes an object in dynamic memeory

  • 玩碎JAVA之volatile与Memory Barriers2022-02-08 20:02:01

    大师们的原文,确实比其他文章讲的透彻的很多! JSR-133原文 JSR-133 FAQ The JSR-133 Cookbook for Compiler Writers volatile修饰的字段,适用于一个线程写,多个线程读的情况,不适用于多个线程写的情况,不然也会有安全性的问题。 volatile有2层语义: 可见性;禁止指令重排; 以下段落来

  • JVM诊断及工具笔记(3) 使用pmap 定位一次Jvm Native Memory泄漏2022-02-01 21:33:42

    这次要说的点依旧不大,主要想给大家讲的是如果发现 Flink on Yarn 定位Native Memory超出限制一个排查思路加上第二篇文章讲的Direct Memory相关。第四篇我大概率会讲一个堆内存相关的案例。 背景 这次问题发生是在18年,我们开始调研Flink。当时运维帮忙搭建了一个不大的hadoop集

  • 有趣的Cache创新@HotChips'332022-01-29 16:33:06

      姚伟峰 有趣的Cache创新@HotChips’33 AMD - Zen 3 V-Cache(Vertical Cache) L3 Fabric Intel - CPU and GPU Rambo Cache IBM - Telum Virtual Cache References 当前流行的计算架构(包括CPU、GPU等)大多数还是follow冯-诺依曼架构(如下)。 冯-诺依

  • 硬件内存模型 Hardware Memory Models2022-01-29 00:03:47

    硬件内存模型 Hardware Memory Models (Memory Models, Part 1) Posted on Tuesday, June 29, 2021. 简介:童话的终结 很久以前,当人们还在写单线程程序的时候,让程序跑的更快的一个最有效的办法就是什么也不做,因为下一代硬件和编译器的优化会使得程序更快但行为不发生改变。在

  • beats-metricbeat2022-01-28 20:32:04

      下载https://www.elastic.co/cn/downloads/beats/metricbeat#ga-release   修改配置文件 metricbeat.yml        运行 #帮助 metricbeat --help 启动 metricbeat run 创建索引 xxx 系统指标采集汇总 指标类型 指标 指标含义 cpu system.cpu.total.pct cp

  • MySQL存储引擎2022-01-28 18:34:40

    InnoDB存储引擎 InnoDB是MySQL数据库的一种存储引擎。InnoDB给MySQL的表提供了事务、回滚、崩溃修复能力和多版本并发控制的事务安全。MySQL从3.23.34a开始就包含InnoDB存储引擎。InnoDB是MySQL第一个提供外键约束的表引擎,而且InnoDB对事务处理的能力也是MySQL对其他存储引擎所无

  • linux vmstat命令2022-01-26 15:04:04

    https://access.redhat.com/solutions/1160343 Procs r: The number of processes waiting for run time. b: The number of processes in uninterruptible sleep. Memory swpd: the amount of virtual memory used. free: the amount of idle memory. bu

  • python psutil as_dict()获取进程信息2022-01-25 21:58:47

    psutil · PyPI import psutil p=psutil.Process(0) p.as_dict(attrs=['pid']) psutil.process_iter(['pid'])  常见进程信息关键字 { 'memory_maps': [ ], 'create_time': 1643117006.619562, 'pid': 8776, 'memory_

  • JMM(Java Memory Model) Java内存模型2022-01-25 10:00:50

      Java内存模型的抽象结构 局部变量(Local Variables),方法定义参数(Java语言规范称之为FormalMethod Parameters)和异常处理器参数(Exception HandlerParameters)不会在线程之间共享,不会有内存可见性问题,也不受内存模型的影响。 实例域、静态域和数组元素都存储在堆内存中,堆内存在线程

  • Linux concurrency - 2.barrier2022-01-23 17:33:44

    现在的compiler与CPU为了最佳化执行效能,必要时可能重新安排执行程式的流程顺序。 1.compiler最佳化可依据CPU的instruction issue数目,执行的latency cycles以及程式流程,在不影响程式上下文结果下重排或简化程式。 2.硬件设计最佳化: multiple issue of instructions:一个cycle可以

  • k8s中计算资源策略2022-01-19 14:31:42

    文章转载自:https://www.kuboard.cn/learning/k8s-advanced/policy/lr.html 默认情况下,容器在 Kubernetes 集群上运行时,不受 计算资源 的限制。使用 Resource quota,集群管理员可以针对名称空间限定资源的使用情况。在名称空间内部,一个 Pod(或容器)的资源消耗不受限制。此时的顾虑在于

  • ulimit命令2022-01-18 22:02:14

    参数说明: -a All current limits are reported -b The maximum socket buffer size -c The maximum size of core files created -d The maximum size of a process's data segment -e The maximum scheduling priority ( "nice" ) -f The maximum s

  • Linux笔记-oom时anon rss和total vm的含义2022-01-18 14:31:26

    dmesg 命令: https://blog.51cto.com/yangzhiming/2343192 https://stackoverflow.com/questions/18845857/what-does-anon-rss-and-total-vm-mean 查看oom信息 dmesg命令: 友好的显示log时间信息: dmesg -T 清空dmesg: dmesg -c 查看OOM: dmesg -T | grep "Out of memory" As I un

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有