AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-368823

Mark Kang's questions

Martin Hope
Mark K
Asked: 2023-11-17 14:59:36 +0800 CST

如果 grub 和 sysctl 中的内核参数冲突怎么办?

  • 5

例如,如果我在 grub 命令中设置,并且也在sysctl config 中oops=panic设置?kernel.panic_on_oops=0例如:在/etc/sysctl.d/中

会发生什么?

这两个参数是否映射到内核中的相同功能/特性?

为什么不使用相同的变量名?

boot
  • 1 个回答
  • 37 Views
Martin Hope
Mark K
Asked: 2023-10-20 09:19:09 +0800 CST

仅在调用 mtrr_type_lookup() 后检查统一

  • 5

为什么检查机制要改变?因为MTRR代码升级?还是之前检查的时候出了问题?

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/x86/mm/pgtable.c?h=v6.5.7&id=12f0dd8df14285a5604f35ed3af8b8c33e8fd97f

x86/mm: Only check uniform after calling mtrr_type_lookup()
Today pud_set_huge() and pmd_set_huge() test for the MTRR type to be
WB or INVALID after calling mtrr_type_lookup().

Those tests can be dropped as the only reason not to use a large mapping
would be uniform being 0.

Any MTRR type can be accepted as long as it applies to the whole memory
range covered by the mapping, as the alternative would only be to map
the same region with smaller pages instead, using the same PAT type as
for the large mapping.
kernel
  • 1 个回答
  • 21 Views
Martin Hope
Mark K
Asked: 2023-08-01 13:34:55 +0800 CST

PXE 启动有操作系统映像大小 1GB 的限制吗?

  • 9

根据我的经验,如果操作系统映像太大,PXE 启动将会失败。

我不确定哪个尺寸是限制。

参考: https://www.syslinux.org/archives/2002-March/000249.html

iPXE 是否解决了图像大小限制问题?

boot
  • 1 个回答
  • 757 Views
Martin Hope
Mark K
Asked: 2023-03-31 15:40:58 +0800 CST

如何通知 Windows 某事已完成?

  • 4

我的 Linux 服务器会随机上传一些文件到 Windows 服务器。

但 Windows 服务器不知道 Linux 服务器何时完成上传。

有什么方法可以通知Windows?

linux
  • 3 个回答
  • 43 Views
Martin Hope
Mark K
Asked: 2023-03-29 19:52:59 +0800 CST

如何让用户只能读取文件?

  • 6

我每天都有一些新文件要发布。

我的同事需要通过 sftp/scp 到我的 Linux 服务器来复制这些文件。

我不希望他做任何文件删除/移动/执行...等等,他唯一能做的就是将文件复制(scp/sftp)回来。

最好的是他不能切换目录。

有什么方法可以做到这一点?

permissions
  • 1 个回答
  • 68 Views
Martin Hope
Mark K
Asked: 2023-03-29 16:20:13 +0800 CST

如何在没有密码和使用不同用户名的情况下使用 ssh?

  • 7

我知道对于相同的用户名,我们可以这样做:

  1. ssh-keygen
  2. ssh-copy-id

跳过输入密码。

但是,据我了解,这适用于具有相同用户名的远程服务器和客户端服务器。

但是,远程服务器中的用户名在我的客户端服务器中并不存在。我怎样才能ssh-copy-id在这里跳过输入密码?

例如:我需要做如下事情:

mark@client:~$ ssh jack@ip_of_remote_server
ssh
  • 1 个回答
  • 292 Views
Martin Hope
Mark K
Asked: 2023-03-29 14:12:32 +0800 CST

任何“猫”彩色工具?[复制]

  • 5
这个问题在这里已经有了答案:
如何在文件上显示语法高亮显示? (5 个答案)
终端中的语法突出显示 (9 个答案)
17 小时前关闭。

我有时候cat是ac文件或者是json文件,没有五颜六色的格式文字。是否有任何命令行工具可以像在 ex: gedit 中那样显示彩色格式文本?

software-rec
  • 1 个回答
  • 60 Views
Martin Hope
Mark K
Asked: 2023-03-23 15:33:39 +0800 CST

为什么传感器输出的CPU核心数不连续?

  • 5

命令中核心编号为0,4,8,.......39 sensors。

为什么不是 0,1,2,3,4.......?

foo@foo-linux:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +73.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:        +46.0°C  (high = +80.0°C, crit = +100.0°C)
Core 4:        +50.0°C  (high = +80.0°C, crit = +100.0°C)
Core 8:        +52.0°C  (high = +80.0°C, crit = +100.0°C)
Core 12:       +47.0°C  (high = +80.0°C, crit = +100.0°C)
Core 16:       +73.0°C  (high = +80.0°C, crit = +100.0°C)
Core 20:       +50.0°C  (high = +80.0°C, crit = +100.0°C)
Core 24:       +58.0°C  (high = +80.0°C, crit = +100.0°C)
Core 28:       +52.0°C  (high = +80.0°C, crit = +100.0°C)
Core 36:       +48.0°C  (high = +80.0°C, crit = +100.0°C)
Core 37:       +48.0°C  (high = +80.0°C, crit = +100.0°C)
Core 38:       +48.0°C  (high = +80.0°C, crit = +100.0°C)
Core 39:       +48.0°C  (high = +80.0°C, crit = +100.0°C)

再次更新

这是第 12 代 Intel(R) Core(TM) i7-12700

这是一台 PC,而不是服务器,只有一个 CPU 插槽。

更新

foo@foo-linux:~$ cat /proc/cpuinfo | grep -i apicid
apicid      : 0
initial apicid  : 0
apicid      : 1
initial apicid  : 1
apicid      : 8
initial apicid  : 8
apicid      : 9
initial apicid  : 9
apicid      : 16
initial apicid  : 16
apicid      : 17
initial apicid  : 17
apicid      : 24
initial apicid  : 24
apicid      : 25
initial apicid  : 25
apicid      : 32
initial apicid  : 32
apicid      : 33
initial apicid  : 33
apicid      : 40
initial apicid  : 40
apicid      : 41
initial apicid  : 41
apicid      : 48
initial apicid  : 48
apicid      : 49
initial apicid  : 49
apicid      : 56
initial apicid  : 56
apicid      : 57
initial apicid  : 57
apicid      : 72
initial apicid  : 72
apicid      : 74
initial apicid  : 74
apicid      : 76
initial apicid  : 76
apicid      : 78
initial apicid  : 78
cpu
  • 2 个回答
  • 52 Views
Martin Hope
Mark K
Asked: 2022-12-14 19:54:15 +0800 CST

可以暂停控制台操作吗?

  • 5

我有很多工作在不同的控制台上运行。

他们几乎占据了所有的CPU使用率,导致我很难控制系统(响应时间很慢)

有什么办法可以暂停这些控制台?或任何其他方式?

#更新

我实际上是在许多不同的控制台中构建 Yocto,似乎很难调整特定的进程,并且在构建 Yocto 时,有许多不同的进程在运行,它们可能会反复结束并启动另一个新进程。

cpu
  • 2 个回答
  • 43 Views
Martin Hope
Mark Kang
Asked: 2022-10-31 23:51:27 +0800 CST

软链接会将文件名作为第一个参数传递给目标?

  • 5

https://github.com/adurbin/iotools

原来的用法是:

./iotools rdmsr x xxxxx

当我这样做时:

ln -sf iotools rdmsr

那么我可以这样做:

rdmsr x xxxxx

为什么??

因为在进行软链接时,它会将文件名作为第一个参数传递?

symlink
  • 1 个回答
  • 23 Views
Martin Hope
Mark Kang
Asked: 2022-09-15 17:46:17 +0800 CST

没有CONFIG_PREEMPT,内核不能抢占?

  • 1

我检查了 CentOS 8/Redhat 8 和 Ubuntu 22.04,它们的默认内核设置 CONFIG_PREEMPT 都没有设置:

CONFIG_PREEMPT is not set

在我的理解中,内核应该能够默认抢占。不是吗?

linux kernel
  • 1 个回答
  • 35 Views
Martin Hope
Mark Kang
Asked: 2022-02-09 19:27:00 +0800 CST

内核配置,CONFIG_CRYPTO_RSA,这个配置是干什么用的?

  • 0

我检查了:

https://cateee.net/lkddb/web-lkddb/CRYPTO_RSA.html

帮助文本是:

RSA 公钥算法的通用实现。

此驱动程序是否用于加密硬件设备,例如:来自 Intel/AMD CPU?

kernel-modules encryption
  • 1 个回答
  • 36 Views
Martin Hope
Mark Kang
Asked: 2022-02-09 17:58:30 +0800 CST

request_module: kmod_concurrent_max (0) 接近 0 (max_modprobes: 50),对于模块 xxxxxx,节流

  • 0

我看到这个日志:

request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module foo, throttling...

我不明白这是什么意思?

自动加载太多模块?

drivers kernel-modules
  • 1 个回答
  • 442 Views
Martin Hope
Mark Kang
Asked: 2021-12-24 17:59:51 +0800 CST

如果用户没有登录,是否会执行 cron 作业?

  • -1

我设置了 crontab 来运行日常工作。

有时它会失败并且永远在同一个目录中循环/工作。

第二天,crontab 将在同一目录中运行相同的脚本。

预计每天晚上完成工作,但现在一天没完成,就会和第二天的工作混为一谈。

我计划在每日 cron 作业(下午 5 点)之前(每天)重新启动(例如:下午 4 点),是否会在重新启动后执行 cron 作业而无需用户登录?

#Note 很明显,问题出在脚本(以及脚本正在做什么)而不是关于 crontab。

cron
  • 1 个回答
  • 49 Views
Martin Hope
Mark Kang
Asked: 2021-12-17 17:36:45 +0800 CST

呼叫跟踪中的数字 +0x71/0x420 是什么意思?

  • 0

看到呼叫跟踪时,

WARNING: CPU: 1 PID: 0 at arch/x86/kernel/cpu/mce/core.c:1490 mcheck_cpu_init+0x71/0x420

1490 是源代码行号。

+0x71/0x420这里呢?

kernel
  • 1 个回答
  • 130 Views
Martin Hope
Mark Kang
Asked: 2021-10-30 21:12:50 +0800 CST

进行 fio 测试和热插拔移除 SSD

  • 0

当磁盘在使用时,例如:做fio测试(随机写入),同时移除PCIe SSD。

由于系统支持热插拔,我是否应该期望没有任何 I/O 错误?

disk performance
  • 1 个回答
  • 31 Views
Martin Hope
Mark Kang
Asked: 2021-10-08 03:29:12 +0800 CST

systemd-networkd-wait-online.service 检查连接或硬件准备好了吗?

  • 0

在systemd中,有一个服务: systemd-networkd-wait-online.service

它是否检查 Internet 连接是否已准备好或 NIC HW 是否已准备好进行 Internet 连接?

networking systemd
  • 1 个回答
  • 339 Views
Martin Hope
Mark Kang
Asked: 2019-08-27 17:23:54 +0800 CST

linux如何把SMBIOS信息放到/dev/mem?

  • 2

我检查了 dmidecode 源代码。

我看到了这个:

int fd=open("/dev/mem", O_RDONLY);
long fp=0xE0000L;

看起来 Linux 已经将 SMBIOS 信息复制到内存了?

linux drivers
  • 1 个回答
  • 359 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve