草庐IT

task_info

全部标签

Git 和讨厌的 "error: cannot lock existing info/refs fatal"

从远程git存储库克隆后(在bettercodes)我做了一些改变,promise并试图push:gitpushoriginmaster错误:error:cannotlockexistinginfo/refsfatal:git-http-pushfailed这种情况涉及已经存在的存储库。我之前做的是:gitconfig–globalhttp.sslVerifyfalsegit初始化gitremoteadd[url]git克隆更改数据gitcommit在“bettercodes”我无法访问gitlog。我正在使用Windows。详细的错误是:C:\MyWorkStuff\Projects

linux - struct task_struct中的字段 'on_cpu'和struct thread_info中的字段 'cpu'是什么意思?

我想知道Linux系统中当前进程运行在哪个cpu上,我有两个选择—获取structtask_struct或中的字段on_cpu获取结构thread_info中的字段cpu。我写了一个内核模块程序来探测这两个字段,并得到结果如下:[3991.419185]thefield'on_cpu'intask_structis:1[3991.419187]thefield'cpu'inthread_infois:0[3991.419199]thefield'on_cpu'intask_structis:1[3991.419200]thefield'cpu'inthread_infois:0[399

linux - "Warning: You need to have Ruby and Sass installed and in your PATH for this task to work."

当我尝试grunt:serve时,我收到了这个警告。Warning:Running"sass:server"(sass)taskWarning:YouneedtohaveRubyandSassinstalledandinyourPATHforthistasktowork.Moreinfo:https://github.com/gruntjs/grunt-contrib-sassUse--forcetocontinue.所以我尝试了whichruby​​和whichsass。在/usr/bin/ruby中找到了ruby​​,但在我的任何路径文件夹中都没有找到sass。我在/usr/bin

linux - task_struct 存储在哪里?

Task_struct用于内核保存进程的必要信息。由于该结构,内核可以暂停一个进程,并在一段时间后继续执行它。但我的问题是:这个task_struct存储在内存中的什么地方(我读过内核堆栈,是在虚拟地址空间的内核空间中的那个吗?)?挂起进程后,内核在哪里保存指向该结构和该结构的指针?如果您在描述的地方提供一些资源引用,我将不胜感激。附言。我忘了说这个问题是关于Linux内核的。 最佳答案 Linux内核通过kmem_cache设施分配一个task_struct。例如在fork.c中有一段代码负责分配任务结构:#definealloc

c - 为什么在获取进程的子进程时使用兄弟列表来获取 task_struct

内核task_struct如下所示。我对两个成员更感兴趣,即children和sibling,所以我从这个内核结构中删除了其他元素。structtask_struct{//somedataelements.structlist_headchildren;/*listofmychildren*/structlist_headsibling;/*linkageinmyparent'schildrenlist*///somedatamembers};“children”是进程子进程的task_struct的双向循环链表。如果我想从当前进程访问子进程,我必须使用宏“list_for_each”

c++ - 为什么文件命令声明该可执行文件包含 "debug_info"

我发现file>=5.30或gcc>=6.3改变了它的行为。当我编译像hello-world这样的基本程序时,file的输出表明elf-executable包含某种“debug_info”。来源:#includeusingnamespacestd;intmain(intargc,char*argv[]){cout编译:$g++-ohellohello.cpp#notice,nooption"-g"检查:$filehello#pleasescrolltotherighthand-side,itisattheveryendhello:ELF64-bitLSBexecutable,x86-6

linux - d2 : not getting any backtrace info

我正在使用gtkd包装器生成器,遇到了一个std.conv异常,我根本无法设法获得任何符号调试信息。我用调试符号编译:$dmd-gc-debugutils/HTODConvert.dutils/WrapperIF.dutils/funct.dutils/DefReader.dutils/GtkWrapper.dutils/HtmlStrip.dutils/IndentedStringBuilder.dutils/convparms.dutils/GtkDClass.d-ofgtkwrap但是回溯只是一个内存地址列表:std.conv.ConvException@/usr/include

Python 3.5 setup.py egg_info 失败,错误代码为 1 [Linux]

我和一个friend正在尝试通过DigitalOcean设置一个discord机器人。但是,当我们运行命令“sudo-Hpip3.5install--upgrade-rrequirements.txt”或类似的命令时,它总是以相同的错误结束。我们已经尝试安装python,它已经是最新的。这是日志。Youmayneedtousesudotoinstalldependencies.root@discord-bot:~/RadioOP#sudo-Hpip3.5install--upgrade-rrequirements.txt征集https://github.com/Rapptz/disco

linux - 理解从进程内核栈中获取task_struct指针

现在我正在阅读RobertLove所著的《Linux内核开发3d版》一书。他在那里写了thread_info结构,它包含指向task_struct结构的指针,据我所知,它位于进程内核堆栈的底部或顶部(取决于体系结构)。直到最近我才熟悉Linux内核API,也不知道current()方法的存在。书中有一段关于current()方法实际工作原理的摘录:Onx86,currentiscalculatedbymaskingoutthe13least-significantbitsofthestackpointertoobtainthethread_infostructure.Thisisdon

linux - GNU malloc_info() : get really allocated memory?

我正在尝试调查大型多线程服务器的内存使用情况。根据mallinfo(),我得到arena=350M和fordblks=290M,这表明大部分空间实际上在malloc()内部被浪费了.malloc_info()函数提供了一个很好的XML数据结构,应该是不言自明的。不过,有人能给我解释一下吗是堆0特别的?是所有其他人所在的主要舞台吗?是block已分配、空闲/可用或两者兼而有之?什么是元素?使用mmap()/sbrk()分配的内存?什么是元素?可用内存?那呢??作为开始,我希望能够根据malloc()绘制应用程序分配的总内存,即所有已分配但尚未释放的内存。认为。