我有一个远程VPS,它安装了ubuntu服务器10.04 (出于某种原因,托管公司还没有安装12.04 )
最近,我将硬件从专用机器降级为VPS,并在将其更新到12.04之后,将已安装软件包的列表转移到新的VPS。
问题是VPS仍然在运行,旧内核也在运行,我尝试过更新它,但它似乎不想运行一个较新的内核,我认为这可能是grub的问题,所以我运行了update-grub:
Found linux image: /boot/vmlinuz-3.8.0-39-generic
Found initrd image: /boot/initrd.img-3.8.0-39-generic
/usr/sbin/
我试图编辑文件constraint_0_power_limit_uw下的/sys/class/powercap/intel-rapl/intel-rapl:0。当我试图编辑它时,我得到
e514: write error (file system full?) in linux' error even if you file system is not full?
消息,即使我的文件系统没有满。我附上了df -h的输出。
我该如何解决这个问题?
df -h的输出:
📷
在安装Linux时,我只提到了一个文件系统(/dev/sda1 1 -> ext4 -> / )。但是对于dev、run、proc,sys正在创建可从mount推断的附加FS。
$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=12138104k,nr_inodes=3
这里是我的问题:我想从运行在Linux内核空间中的代码中对数据文件的一部分进行内存映射。我想稍后也从Linux内核空间中运行的代码中撤销相同的内存映射。如何执行这些操作?它们与在用户空间中使用mmap(2)/munmap(2)有何不同?
我试图在没有用户进程的内核空间中做到这一点。
我浏览了网络搜索和Linux内核书籍,包括Bovet和Cesati的"Understanding the Linux Kernel“。一本好书,但没有回答我的问题。